Björn Jacke
5728b0fb5f
s3: use monotonic clock for time deltas in smbtar
2010-08-31 10:26:09 +02:00
Björn Jacke
fc67675028
s3: use monotonic clock for time deltas in smbclient
2010-08-31 10:26:04 +02:00
Björn Jacke
6e9747c1ce
s3: add TspecDiff macro
2010-08-31 10:25:59 +02:00
Björn Jacke
8c6ca6e25a
s3: we have clock_gettime everywhere, remove ifdefs
2010-08-31 09:07:42 +02:00
Björn Jacke
8589f46b86
s3: use clock_gettime() in timespec_current()
2010-08-31 09:07:36 +02:00
Björn Jacke
4e104f185e
libreplace: move detection of clock_gettime to libreplace
2010-08-31 09:07:13 +02:00
Björn Jacke
e8662248c8
libreplace: move gettimeofday TZ arg check here
2010-08-31 09:07:08 +02:00
Andrew Bartlett
eee63b7e75
s3-auth Rename NT_USER_TOKEN privileges -> privilege_mask
...
This is closer to the struct security_token from security.idl
Andrew Bartlett
2010-08-31 11:25:41 +10:00
Andrew Bartlett
8c15cf54ae
s3-auth Rename NT_USER_TOKEN user_sids -> sids
...
This is closer to the struct security_token from security.idl
2010-08-31 10:20:14 +10:00
Volker Lendecke
6beb5563f3
s3: Fix a segfault in the printer code using create_conn_struct
2010-08-30 23:06:32 +02:00
Björn Jacke
a8d8cf00ea
vfs_smb_traffic_analyzer: fix off by a second bug
...
convert_timespec_to_time_t is rounding but here we keep track of milliseconds
here - so we should use plain the tv_sec.
2010-08-30 19:52:10 +02:00
Andreas Schneider
20e7b4ec74
s3-auth: The unlock of the account is now done by the get_sampwnam call.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-30 10:43:54 -04:00
Andreas Schneider
c5cfad142c
s3-passdb: Try to unlock the account if it is locked out.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-30 10:43:41 -04:00
Andreas Schneider
2ab0b63bd8
s3-passdb: Added a pdb_try_account_unlock function.
...
The function checks if the account has been autolocked. If we have a
lockout_duration and a bad password time it checks if we can unlock the
account.
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-30 10:43:34 -04:00
Andreas Schneider
9dd7e7fc2d
s3-auth: Use SamInfo3_for_guest to create guest server_info.
...
Signed-off-by: Simo Sorce <idra@samba.org>
2010-08-30 10:43:20 -04:00
Günther Deschner
85b8d7c605
s3-kerberos: try to fix the build w/o kerberos support.
...
Guenther
2010-08-30 16:03:17 +02:00
Volker Lendecke
1d3bd5b1c0
s3: Fix some uninitialized variable warnings
2010-08-30 15:57:14 +02:00
Volker Lendecke
4ccf3a05af
s3: Fix the build of the nfs4_acl module
2010-08-30 15:38:12 +02:00
Günther Deschner
9b704e4b9a
s3-waf: fix the build after gssapi changes.
...
Guenther
2010-08-30 14:50:52 +02:00
Günther Deschner
9697687e25
dcerpc-gssapi: include missing dcerpc_krb5.h header.
...
Guenther
2010-08-30 14:47:52 +02:00
Günther Deschner
d524f58518
dcerpc-gssapi: fix "shadows a global declaration" warning when gssapi is unavailable.
...
Guenther
2010-08-30 14:44:13 +02:00
Simo Sorce
2a2557075e
s3-dcerpc: Implement DCERPC_AUTH_TYPE_KRB5 server side
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:35:02 +02:00
Simo Sorce
36fdb211a6
dcerpc-gssapi: add function to retrieve client name
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:34:01 +02:00
Simo Sorce
d15d76af5f
dcerpc-gssapi: add function to extract authtime
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:33:14 +02:00
Simo Sorce
6c80e04120
dcerpc-gssapi: add function to extract authorization data (PAC) form gssapi context
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:33:01 +02:00
Simo Sorce
fb1aef085e
dcerpc-gssapi: add function to check flags
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:32:47 +02:00
Simo Sorce
e6ed1dc249
dcerpc-gssapi: add initial server side code
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:32:33 +02:00
Simo Sorce
b31f75d8f6
s3-dcerpc: add krb5 helpers
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:27:48 +02:00
Simo Sorce
26e24928b3
s3-krb: Reformat and add doxygen comment to decode_pac_data()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:26:37 +02:00
Simo Sorce
43d0ef1175
rpcclient: support starting sign/seal with krb5/spnego
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:26:02 +02:00
Simo Sorce
f3501cf848
s3-smbd: use make_server_info_krb5() in smb2 too.
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:24:46 +02:00
Simo Sorce
a413a86daa
s3-smbd: use make_server_info_krb5()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:24:38 +02:00
Simo Sorce
08a8e25d6b
s3-auth: add helper to get server_info out of kerberos info
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:24:30 +02:00
Simo Sorce
ce60d6d9cf
s3-smbd: User helper function to resolve kerberos user for smb2
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:22:13 +02:00
Simo Sorce
94adbf3726
s3-smbd: Use helper function to resolve kerberos user
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:21:53 +02:00
Simo Sorce
b9772a4886
s3-auth: Add helper function to retrieve the unix user from a kerberos ticket
...
Signed-off-by: Günther Deschner <gd@samba.org>
2010-08-30 14:17:06 +02:00
Volker Lendecke
fbf3d03550
s3: Fix an uninitialized variable
2010-08-29 23:14:49 +02:00
Volker Lendecke
f687d43454
s3: Fix the build without cluster
2010-08-29 23:14:49 +02:00
Volker Lendecke
e466bb4af4
s3: Remove smbd_server_fd()
...
This breaks the perfcol_onefs() build.
Tim, Steve, this use of smbd_server_fd is replacable by calls into
substitute.c. I don't have a onefs environment around to build a fix, so I've
decided to insert an #error, making it not compile. The fix should be pretty
obvious, you can get the socket data via "%I" and "%i" substitutions.
2010-08-29 21:55:25 +02:00
Volker Lendecke
e784e160ec
s3: Remove two uses of smbd_server_fd()
...
Actually, this is a bit cheating. But those two files depend on
smbd_server_conn anyway, it does not make things worse.
2010-08-29 21:55:25 +02:00
Volker Lendecke
5a6be0b314
s3: Remove smbd_server_fd() from srv_netlog_nt
...
This is not actually used. If it was to be activated, we'd have to pass in a
pipes_struct.
2010-08-29 21:55:25 +02:00
Volker Lendecke
744cc26451
s3: Remove smbd_server_fd() from smbd_register_ips
2010-08-29 21:55:24 +02:00
Volker Lendecke
5bbc4df168
s3: Lift smbd_server_fd() from msg_release_ip()
2010-08-29 21:55:24 +02:00
Volker Lendecke
467208e9f4
s3: Lift smbd_server_fd() from release_ip()
2010-08-29 21:55:24 +02:00
Volker Lendecke
6432383926
s3: Remove a use of smbd_server_fd() in smbd main()
...
The effect this might have is that we set the socket options a bit later in
inetd mode.
2010-08-29 21:55:24 +02:00
Volker Lendecke
70df6fcb2a
s3: Pass sconn to check_reload
...
This removes a use of smbd_server_fd()
2010-08-29 21:55:24 +02:00
Volker Lendecke
babfe23717
s3: Pass sconn instead of msg_ctx to housekeeping_fn
2010-08-29 21:55:24 +02:00
Volker Lendecke
4a58c640cc
s3: Set the client_id in substitute.c once
...
This never changes during a client connection's life, so we can set it
once.
2010-08-29 21:55:23 +02:00
Volker Lendecke
8d256b8f30
s3: Remove some uses of smbd_server_fd()
...
The change in behaviour is that we don't detect "socket option" changes anymore
when printers are added or removed.
2010-08-29 21:55:23 +02:00
Volker Lendecke
291526b9cf
s3: Remove a use of smbd_server_fd
...
This disables different socket options per user for ntlmssp authentiation, a
change in behaviour which is exotic enough I believe.
2010-08-29 21:55:23 +02:00