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

33035 Commits

Author SHA1 Message Date
Volker Lendecke
a8cd3ef99e s3: Do the ftruncate write cache optimization in one place
Instead of hand-tuning all the cases that are below this piece of code, this is
a general case that we can catch upfront.
2010-07-29 22:46:44 +02:00
Volker Lendecke
a86cad3921 Revert "s3: Avoid pwrite calls for the 1-byte writes with zero content"
This reverts commit 6763730304627a58139450fd3e03a0ce48e31bb9.
2010-07-29 22:46:44 +02:00
Volker Lendecke
fec8505e0b s3: Avoid an unnecessary ftruncate call
If we just created the file, it has length 0 by definition. This is still done
while holding the share mode lock, so no race around wrt other cifs clients.
2010-07-29 22:46:36 +02:00
Jeremy Allison
4f43030482 Fix bug #7589 - ntlm_auth fails to use cached credentials.
In handling the WINBINDD_PAM_AUTH message winbindd canonicalizes a *copy*
of the mapped username, but fails to canonicalize the actual username
sent to the backend domain process. When "winbind default domain"
is set this can lead to credentials being cached with an index of
user: user, not DOMAIN\user. All other code paths that use
canonicalize_username() (WINBINDD_PAM_CHAUTHTOK, WINBINDD_PAM_LOGOFF)
correctly canonicalize the data sent to the backend. All calls
the can cause credentials to be looked up (PAM_CHAUTHTOK etc.)
correctly call canonicalize_username() to create the credential
lookup key.

Jeremy.
2010-07-29 12:44:00 -07:00
Andreas Schneider
e8d386704e s3-spoolss: Increased debug level for trace output. 2010-07-29 20:48:01 +02:00
Andreas Schneider
b2be8f2267 s3-spoolss: Fixed debug statements and increased level. 2010-07-29 20:45:07 +02:00
Simo Sorce
e8ac4a8b82 s3-dcerpc: Try to fix build when gssapi_ext.h is not available 2010-07-28 17:12:57 -04:00
Simo Sorce
7c9c075987 Do not refernece pipe_auth_data directly in dcerpc_gssapi.c 2010-07-28 15:53:56 -04:00
Simo Sorce
d17abc69f6 s3-dcerpc: Avoid ifdef, it is handled within dcerpc_gssapi.c already 2010-07-28 15:35:59 -04:00
Volker Lendecke
44add9952e s3: Fix cli_qpathinfo2
Does not fix the DIR_CREATETIME test, but it is definitely an error.
2010-07-28 20:14:25 +02:00
Simo Sorce
c4b3c9ec0f smbd: Fix build warning 2010-07-28 12:44:37 -04:00
Simo Sorce
7eaa15af2c s3-dcerpc: Add sign/seal with gssapi 2010-07-28 12:42:15 -04:00
Simo Sorce
1abcbd70ae s3-dcerpc: Add next authentication step with gssapi 2010-07-28 12:24:44 -04:00
Simo Sorce
135a82e78f s3-decrpc: Introduce gssapi support for dcerpc krb5 auth 2010-07-28 12:24:44 -04:00
Simo Sorce
72088096af rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for krb5 auth 2010-07-28 12:23:39 -04:00
Simo Sorce
183e0a0d9f s3-dcerpc: Refactor calculate_data_len_tosend() 2010-07-28 12:23:22 -04:00
Simo Sorce
c08d684f4e s3-dcerpc: Add auth trailer only when appropriate. 2010-07-28 12:23:00 -04:00
Simo Sorce
866f85e319 s3-dcerpc: consolidate unmarshalling of dcerpc_auth 2010-07-28 12:22:31 -04:00
Simo Sorce
146af48d48 s3-dcerpc: revive cli_rpc_pipe_open_krb5() 2010-07-28 12:21:29 -04:00
Simo Sorce
250e341e0a misc: Remove unused structure elements 2010-07-28 12:20:13 -04:00
Simo Sorce
b00f9a0a2d s3-rpcclient: Allow choosing spnego mech: (ntlm/krb5) 2010-07-28 12:20:01 -04:00
Simo Sorce
2463a87177 s3-dcerpc: Use dcerpc_AuthType in pipe_auth_data 2010-07-28 12:19:32 -04:00
Simo Sorce
1e915d231d s3-dcerpc: Cleanup and refactor create_rpc_bind_req() 2010-07-28 12:18:45 -04:00
Simo Sorce
3c3237dd0a s3-auth: Remove unimplemented functions 2010-07-28 12:18:28 -04:00
Simo Sorce
bfe53d4145 s3-dcerpc: Set flags directly instead of calling unimplemented functions. 2010-07-28 12:18:19 -04:00
Simo Sorce
7407c979a1 s3-dcerpc: Use dcerpc_check_auth in client code too 2010-07-28 12:17:56 -04:00
Simo Sorce
9565e3f6a7 s3-dcerpc: Make dcerpc_check_auth() common code 2010-07-28 12:17:41 -04:00
Simo Sorce
5f2cca6b2a s3-dcerpc: Add the same paranoia checks we have in the client code 2010-07-28 12:17:18 -04:00
Simo Sorce
49a8c2965d s3-dcerpc: Split auth checking into a generic function. 2010-07-28 12:16:58 -04:00
Simo Sorce
1fc71c9c6f s3-dcerpc do not pass pipes_struct to dcesrv_auth_request() 2010-07-28 12:16:29 -04:00
Simo Sorce
2ce169ce18 s3-dcerpc: Make dcesrv_auth_request() return NTSTATUS codes 2010-07-28 12:16:08 -04:00
Simo Sorce
aa4c5a2bfb s3-dcerpc: Use the common dcerpc_add_auth_footer() in the server code 2010-07-28 12:15:45 -04:00
Simo Sorce
3139333419 s3-dcerpc: Move dcerpc_add_auth_footer() to the common helpers file 2010-07-28 12:15:13 -04:00
Simo Sorce
6f5cdf9ae9 s3-dcerpc: Introduce generic helper function to add auth trailer 2010-07-28 12:14:59 -04:00
Simo Sorce
1b572493e2 s3-dcerpc: Pass explicit arguments so that this is not client specific 2010-07-28 12:14:36 -04:00
Simo Sorce
e2b0e43da9 s3-dcerpc: Move marshalling of dcerpc_auth_header in the callers 2010-07-28 12:14:19 -04:00
Andreas Schneider
6ffd7dc780 s3-rpc: Use struct pipes_struct. 2010-07-28 11:07:20 +02:00
Andreas Schneider
f7a1453957 s3-include: Use struct pipes struct and get rid of the typedef. 2010-07-28 10:39:25 +02:00
Andreas Schneider
97dba0c0d9 s3-winbind: Use struct pipes_struct. 2010-07-28 10:39:25 +02:00
Andreas Schneider
6457f814f5 s3-uid: Use struct pipes_struct. 2010-07-28 10:39:25 +02:00
Andreas Schneider
d34fc3d168 s3-wkssvc: Use struct pipes_struct. 2010-07-28 10:39:25 +02:00
Andreas Schneider
31a4240b8d s3-winreg: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
ce59e69bca s3-svcctl: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
0fee377a52 s3-srvsvc: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
64fbaad942 s3-spoolss: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
c3817fe9d2 s3-samr: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
667d43d4c8 s3-rpc_pipe: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
33d30926d1 s3-ntsvcs: Use struct pipes_struct. 2010-07-28 10:39:24 +02:00
Andreas Schneider
3fd138fae3 s3-netlogon: Use struct pipes_struct. 2010-07-28 10:39:23 +02:00
Andreas Schneider
872f965558 s3-lsa: Use struct pipes_struct. 2010-07-28 10:39:23 +02:00