1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

2147 Commits

Author SHA1 Message Date
Günther Deschner
1dcb32424d Remove unused creds_client_check and creds_client_step.
Guenther
2008-02-17 03:08:42 +01:00
Günther Deschner
3b0135d57e Use new IDL based PAC structures in clikrb5.c
Guenther
2008-02-17 02:11:59 +01:00
Günther Deschner
bf860ae1ac Use netr_SamInfo3 in samlogon cache and use ndr functions for storing the blob.
Guenther
2008-02-17 02:11:59 +01:00
Günther Deschner
33f91c8944 Use rpccli_netr_ServerPasswordSet in "just_change_the_password()".
Guenther
2008-02-16 16:04:01 +01:00
Günther Deschner
2fb73a3545 Remove unused creds_server_check and creds_server_step.
Guenther
2008-02-16 15:14:04 +01:00
Günther Deschner
c0b1a87658 Replace DOM_CHAL with "struct netr_Credential" where we can right now.
This allows to remove some more old netlogon client calls.

Guenther
2008-02-15 23:57:54 +01:00
Günther Deschner
ea0bf74918 Add netlogon_creds_server_check and netlogon_creds_server_step.
Guenther
2008-02-15 20:58:34 +01:00
Günther Deschner
41d33a2507 Add netlogon_creds_client_check and netlogon_creds_client_step.
Guenther
2008-02-15 14:04:55 +01:00
Jeremy Allison
e3e08c6e7d Allow the mechOID to be written separately.
Jeremy.
2008-02-14 11:29:54 -08:00
Günther Deschner
a25e7ffbca Use rpccli_lsa_EnumTrustDom all over the place.
Guenther
2008-02-13 00:29:37 +01:00
Volker Lendecke
eadd15c936 Add a missing return
If I'm not completely blind, we should return here. Not doing it here seems not
to be a major flaw, as far as I can see we're only missing the error code. This
might account for some of the very unhelpful NT_STATUS_UNSUCCESSFUL error
messages people see during joins.

All with stake in Samba client, please check!
2008-02-11 18:37:58 +01:00
Jeremy Allison
99424bba7b We don't need the extra null termination - we've
already got this in the cli_receive_trans calls.
Jeremy.
2008-02-08 22:02:00 -08:00
Jeremy Allison
2e27309401 Make clilist work again with OS/2 (kukks help!).
Jeremy.
2008-02-08 19:02:49 -08:00
Jeremy Allison
101f194795 From kukks - prevent crashes if finfo.name == NULL.
Jeremy.
2008-02-08 18:44:33 -08:00
Jeremy Allison
dcd77dd4f4 Try and fix length and finfo calls for older clients. Working
on issues reported by kukks.
Jeremy.
2008-02-08 11:22:53 -08:00
Jeremy Allison
3ca58b792f Fix bug reported on IRC enumerating shares with OS/2.
Report and fix from kukks (thanks once again !).
Jeremy.
2008-02-08 10:07:05 -08:00
Karolin Seeger
2bec0a1fb7 Fix some typos.
Karolin
2008-02-08 10:05:32 +01:00
Volker Lendecke
ba771bd858 Convert receive_smb_raw to NTSTATUS 2008-02-02 11:03:23 +01:00
Volker Lendecke
90554799af read_socket_with_timeout_ntstatus->read_socket_with_timeout 2008-02-02 11:03:22 +01:00
Volker Lendecke
f9c8ac83ff Get rid of read_socket_with_timeout 2008-02-02 11:03:22 +01:00
Günther Deschner
fd490d236b Eliminate remote tree of dsgetdcname (which will happen in libnetapi then).
Guenther
2008-01-29 15:09:56 +01:00
Tim Potter
ec367f307d Adding missing calls to va_end().
Just a small commit to get a handle on this git thingy.  This patch
fixes some missing calls to va_end() to match various calls to va_start()
and VA_COPY().

Tim.
2008-01-27 09:33:42 +01:00
Günther Deschner
cb1ff32eff Add WERR_INVALID_COMPUTER_NAME.
Guenther
2008-01-24 23:41:59 +01:00
Derrell Lipman
4c08725a42 Merge branch 'setxattr-dos-mode' into v3-2-test 2008-01-23 20:50:24 -05:00
Derrell Lipman
54abf7d0e5 Allow clearing all settable DOS mode bits. A mode value of zero is ignored by
Windows.  If the requested mode is zero, we instead send the appropriate one
of 0x80 (NORMAL) or 0x10 (DIRECTORY).

Thanks Jeremy!

Derrell
2008-01-23 20:44:54 -05:00
Jeremy Allison
2df0cdaafd Don't leak memory in error path.
Jeremy.
2008-01-23 15:23:16 -08:00
Jeremy Allison
090061b73a Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
Jeremy.
2008-01-23 15:00:40 -08:00
Andreas Schneider
5f60ed4af6 Fix Windows 2008 (Longhorn) join.
During 'net ads join' the cli->desthost is a hostname (e.g.
rupert.galaxy.site). Check if we have a hostname and use only the
first part, the machine name, of the string.
2008-01-23 14:57:45 -08:00
Andreas Schneider
5aadfcdaac Windows 2008 (Longhorn) auth2 flag fixes.
Interop fixes for AD specific flags. Original patch from Todd Stetcher.
2008-01-23 14:55:22 -08:00
Volker Lendecke
7101026061 read_socket_with_timeout has timeout=0 handling 2008-01-23 17:09:10 +01:00
Derrell Lipman
843e1694cf Fix typo that disabled setting group id. Thanks, Henrik. 2008-01-18 14:22:49 -05:00
Volker Lendecke
3fa0cf3fe5 Add the "allinfo" command to smbclient
Modeled after the Samba4 allinfo command
2008-01-18 11:08:17 +01:00
Michael Adam
7aec862ddc Add and correct some WERROR codes.
Michael
2008-01-18 01:10:55 +01:00
Derrell Lipman
67c415661f Fix bug 5185: repeated calls to smbc_getxattr() lose sid-name mapping
If we're going to cache connections to IPC$, we'd better also cache the policy
handle and not use a stack-based handle that's invalid on subsequent calls.

Derrell
2008-01-17 11:49:17 -05:00
Derrell Lipman
b4282fbd6d Fix stat results to be consistent between smbc_stat and smbc_fstat.
We create a kludged inode based on the checksum of the path.  We therefore
need to use the same (full) path when calculating it in both smbc_stat() and
smbc_fstat().

If struct stat has an rdev field, set it to zero.

Derrell
2008-01-17 09:29:13 -05:00
Jeremy Allison
df3c464839 Fix bug found by Derrell - windows returns an read return
offset of zero if return size is zero. Should fix testread
libsmbclient code.
Jeremy.
2008-01-16 17:33:19 -08:00
Günther Deschner
57dc747136 Make resolve_ads() static.
Guenther
2008-01-16 16:06:15 +01:00
Derrell Lipman
f963d57096 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2008-01-16 00:45:06 +00:00
Jeremy Allison
5467db3883 Fix the API exported for auth_functions. Ensure we call
passing 3 fstrings/sizeof(fstrings) as 3.0.x did. Found
by Derrell. Derrell please test !
Thanks,
Jeremy.
2008-01-15 16:13:11 -08:00
Kai Blin
ecbe08897c libsmb: Do not upper-case target name on NTLMv2 hash generation
This makes our NTLMv2 hash generation compatible to the Davenport example
and fixes a bug when ntlm_auth is called with a non-upper-case --domain
parameter and client ntlmv2 auth = yes

Jerry, please consider for 3.2.0
2008-01-15 19:29:08 +01:00
Derrell Lipman
3a61e663e5 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test 2008-01-15 13:58:47 +00:00
Jeremy Allison
ef9b278b62 Windows insists on write sizes < max_xmit on signed connections.
Jeremy.
2008-01-14 13:46:06 -08:00
Derrell Lipman
913c335d21 Fix smbc_listxattr() and friends (bug #5189)
When the capability of using full names for DOS attributes was added, a bug
was introduced which caused the wrong number of bytes to be returned.  This
patch to smbc_listxattr_ctx() fixes the problem.

Thanks to Jack Schmidt for this patch.

Derrell
2008-01-13 17:10:06 -05:00
Jeremy Allison
2e75f3ecdf Fix CID 470. resolve_order can't be NULL here so simplify code.
Jeremy.
2008-01-12 00:05:07 -08:00
Günther Deschner
19a980f520 As long as DsGetDcName is not part of libnetapi, lowercase the fn name.
Guenther
2008-01-11 15:32:20 +01:00
Michael Adam
b4a37a66bb Fix a memleak found by the IBM checker.
Michael
2008-01-09 22:25:52 +01:00
Jeremy Allison
eea07b0c83 Fix CID 461 - resource leak on error.
Jeremy.
2008-01-08 18:51:55 -08:00
Günther Deschner
41c129da3d Refactor our DsGetDcName call a bit (before it will move into libnetapi).
Guenther
2008-01-07 23:06:12 +01:00
Jeremy Allison
07d47996f9 Add the options smb_encrypt_level to set the requested
encrypt level and smb_encrypt_on to query it.
Jeremy.
2008-01-05 00:51:18 -08:00
Jeremy Allison
757653966f Add general '-e' option to enable smb encryption
on tools.
Jeremy.
2008-01-05 00:23:35 -08:00