Björn Jacke [Tue, 31 Aug 2010 21:03:55 +0000 (23:03 +0200)]
Revert "s4/heimdal_build: use GetTimeOfDay macro instead of gettimeofday"
This reverts commit
659829851703797b47d398d3c71ad971b2c5dab7 which later on
needs some tweeks to not break some builds
Volker Lendecke [Tue, 31 Aug 2010 14:52:56 +0000 (16:52 +0200)]
s3: messaging_ctdbd_connection() was only called with procid_self()
Eventually we'll get this right...
Volker Lendecke [Tue, 31 Aug 2010 14:51:28 +0000 (16:51 +0200)]
s3: messaging_ctdbd_init potentially modifies my_vnn
If we call messaging_ctdbd_connection() we end up with the wrong vnn in our
messaging context.
This is a bit of a hack, get_my_vnn() needs to go eventually along with
procid_self()
Volker Lendecke [Tue, 31 Aug 2010 14:11:10 +0000 (16:11 +0200)]
s3: Make ctdbd_init_connection static
Björn Jacke [Wed, 12 May 2010 08:50:17 +0000 (10:50 +0200)]
s3: use fine grained time in netprot response
Björn Jacke [Tue, 31 Aug 2010 11:11:13 +0000 (13:11 +0200)]
s4/heimdal_build: use GetTimeOfDay macro instead of gettimeofday
Björn Jacke [Tue, 31 Aug 2010 11:10:45 +0000 (13:10 +0200)]
s3: use monotonic clock for time deltas in smbget
Björn Jacke [Tue, 31 Aug 2010 11:06:39 +0000 (13:06 +0200)]
tdb/waf: the deps for rt are provided by libreplace
Björn Jacke [Tue, 31 Aug 2010 09:31:19 +0000 (11:31 +0200)]
replace/waf: add rt to deps at this place
Björn Jacke [Tue, 31 Aug 2010 09:30:17 +0000 (11:30 +0200)]
s4: use GetTimeOfDay macro instead of gettimeofday
Volker Lendecke [Tue, 31 Aug 2010 09:29:55 +0000 (03:29 -0600)]
packaging: build fixes
Björn Jacke [Mon, 30 Aug 2010 16:58:20 +0000 (18:58 +0200)]
s4/torture: use monotonic clock for time deltas in denytest
Björn Jacke [Mon, 30 Aug 2010 16:54:42 +0000 (18:54 +0200)]
s4/ldb: use monotonic clock for time deltas in ldbtest
Björn Jacke [Mon, 30 Aug 2010 16:02:19 +0000 (18:02 +0200)]
s3: use monotonic time in timeout of sys_select_intr()
Björn Jacke [Mon, 30 Aug 2010 15:56:37 +0000 (17:56 +0200)]
lib/util: add nsec_time_diff to calulate diffs from timespecs
Björn Jacke [Mon, 30 Aug 2010 13:46:22 +0000 (15:46 +0200)]
s3: use monotonic clock for time deltas in namequery functions
Björn Jacke [Mon, 30 Aug 2010 13:44:54 +0000 (15:44 +0200)]
s3: use monotonic clock for time deltas in smbtar
Björn Jacke [Mon, 30 Aug 2010 10:15:54 +0000 (12:15 +0200)]
s3: use monotonic clock for time deltas in smbclient
Björn Jacke [Mon, 30 Aug 2010 13:30:16 +0000 (15:30 +0200)]
s3: add TspecDiff macro
Björn Jacke [Wed, 25 Aug 2010 10:23:50 +0000 (12:23 +0200)]
s4:process_thread: use monotonic time for time deltas
Björn Jacke [Mon, 30 Aug 2010 10:10:29 +0000 (12:10 +0200)]
lib/util: add function to query the monotonic clock with the required fallback to the realtime clock
Björn Jacke [Thu, 26 Aug 2010 10:22:02 +0000 (12:22 +0200)]
libreplace: make a define for a best effort monotonic clock
Björn Jacke [Tue, 24 Aug 2010 09:14:19 +0000 (11:14 +0200)]
s3: we have clock_gettime everywhere, remove ifdefs
Björn Jacke [Mon, 30 Aug 2010 14:51:56 +0000 (16:51 +0200)]
s3: use clock_gettime() in timespec_current()
Björn Jacke [Thu, 19 Aug 2010 17:07:04 +0000 (19:07 +0200)]
libreplace: add clock_gettime replacement function for systems that don't have it
Björn Jacke [Thu, 26 Aug 2010 22:13:07 +0000 (00:13 +0200)]
libreplace/waf: look for clock_gettime
Björn Jacke [Thu, 19 Aug 2010 16:39:45 +0000 (18:39 +0200)]
libreplace: move detection of clock_gettime to libreplace
Björn Jacke [Mon, 30 Aug 2010 12:35:49 +0000 (14:35 +0200)]
libreplace: move gettimeofday TZ arg check here
Volker Lendecke [Mon, 30 Aug 2010 15:55:44 +0000 (09:55 -0600)]
packaging: cifsutils are no longer part of Samba
Andrew Bartlett [Tue, 31 Aug 2010 01:18:11 +0000 (11:18 +1000)]
s3-auth Rename NT_USER_TOKEN privileges -> privilege_mask
This is closer to the struct security_token from security.idl
Andrew Bartlett
Andrew Bartlett [Mon, 30 Aug 2010 23:32:52 +0000 (09:32 +1000)]
s3-auth Rename NT_USER_TOKEN user_sids -> sids
This is closer to the struct security_token from security.idl
Volker Lendecke [Mon, 30 Aug 2010 13:22:29 +0000 (15:22 +0200)]
s3: Fix a segfault in the printer code using create_conn_struct
Stefan Metzmacher [Mon, 30 Aug 2010 11:42:20 +0000 (13:42 +0200)]
s4:lib/messaging: add some const to messaging_send()
metze
Thomas Nagy [Mon, 30 Aug 2010 13:02:26 +0000 (15:02 +0200)]
Disable gccdeps if -MD is not supported
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Björn Jacke [Mon, 30 Aug 2010 17:49:35 +0000 (19:49 +0200)]
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.
Andreas Schneider [Mon, 23 Aug 2010 21:02:44 +0000 (23:02 +0200)]
s3-auth: The unlock of the account is now done by the get_sampwnam call.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 23 Aug 2010 08:08:53 +0000 (10:08 +0200)]
s3-passdb: Try to unlock the account if it is locked out.
Signed-off-by: Simo Sorce <idra@samba.org>
Andreas Schneider [Mon, 23 Aug 2010 08:08:34 +0000 (10:08 +0200)]
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>
Andreas Schneider [Wed, 18 Aug 2010 15:17:42 +0000 (17:17 +0200)]
s3-auth: Use SamInfo3_for_guest to create guest server_info.
Signed-off-by: Simo Sorce <idra@samba.org>
Volker Lendecke [Mon, 30 Aug 2010 15:27:24 +0000 (09:27 -0600)]
packaging: Build with -O3
Volker Lendecke [Mon, 30 Aug 2010 15:26:49 +0000 (09:26 -0600)]
packaging: Attempt to fix the RPM build
Günther Deschner [Mon, 30 Aug 2010 13:52:27 +0000 (15:52 +0200)]
s3-kerberos: try to fix the build w/o kerberos support.
Guenther
Volker Lendecke [Mon, 30 Aug 2010 13:56:16 +0000 (15:56 +0200)]
s3: Fix some uninitialized variable warnings
Volker Lendecke [Mon, 30 Aug 2010 14:36:51 +0000 (08:36 -0600)]
s3: Fix the build of the nfs4_acl module
Günther Deschner [Mon, 30 Aug 2010 12:50:15 +0000 (14:50 +0200)]
s3-waf: fix the build after gssapi changes.
Guenther
Günther Deschner [Mon, 30 Aug 2010 12:47:52 +0000 (14:47 +0200)]
dcerpc-gssapi: include missing dcerpc_krb5.h header.
Guenther
Günther Deschner [Mon, 30 Aug 2010 12:44:13 +0000 (14:44 +0200)]
dcerpc-gssapi: fix "shadows a global declaration" warning when gssapi is unavailable.
Guenther
Simo Sorce [Fri, 27 Aug 2010 19:23:20 +0000 (15:23 -0400)]
s3-dcerpc: Implement DCERPC_AUTH_TYPE_KRB5 server side
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Wed, 25 Aug 2010 20:21:51 +0000 (16:21 -0400)]
dcerpc-gssapi: add function to retrieve client name
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Sat, 21 Aug 2010 14:59:52 +0000 (10:59 -0400)]
dcerpc-gssapi: add function to extract authtime
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Fri, 20 Aug 2010 13:30:49 +0000 (09:30 -0400)]
dcerpc-gssapi: add function to extract authorization data (PAC) form gssapi context
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Fri, 20 Aug 2010 13:31:07 +0000 (09:31 -0400)]
dcerpc-gssapi: add function to check flags
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Fri, 20 Aug 2010 08:45:56 +0000 (04:45 -0400)]
dcerpc-gssapi: add initial server side code
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 19 Aug 2010 15:25:32 +0000 (11:25 -0400)]
s3-dcerpc: add krb5 helpers
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Sat, 21 Aug 2010 14:50:05 +0000 (10:50 -0400)]
s3-krb: Reformat and add doxygen comment to decode_pac_data()
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Wed, 25 Aug 2010 20:22:03 +0000 (16:22 -0400)]
rpcclient: support starting sign/seal with krb5/spnego
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 22:49:49 +0000 (18:49 -0400)]
s3-smbd: use make_server_info_krb5() in smb2 too.
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 22:49:28 +0000 (18:49 -0400)]
s3-smbd: use make_server_info_krb5()
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 22:48:46 +0000 (18:48 -0400)]
s3-auth: add helper to get server_info out of kerberos info
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 21:59:17 +0000 (17:59 -0400)]
s3-smbd: User helper function to resolve kerberos user for smb2
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 21:58:52 +0000 (17:58 -0400)]
s3-smbd: Use helper function to resolve kerberos user
Signed-off-by: Günther Deschner <gd@samba.org>
Simo Sorce [Thu, 26 Aug 2010 21:57:26 +0000 (17:57 -0400)]
s3-auth: Add helper function to retrieve the unix user from a kerberos ticket
Signed-off-by: Günther Deschner <gd@samba.org>
Stefan Metzmacher [Mon, 30 Aug 2010 08:45:52 +0000 (10:45 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:refuse_dacl_protected'
metze
Stefan Metzmacher [Mon, 30 Aug 2010 08:31:38 +0000 (10:31 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:merge_writeappend'
metze
Stefan Metzmacher [Mon, 30 Aug 2010 08:24:52 +0000 (10:24 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:winattr'
metze
Stefan Metzmacher [Mon, 30 Aug 2010 08:12:41 +0000 (10:12 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:getrealfilename'
metze
Stefan Metzmacher [Mon, 30 Aug 2010 07:29:46 +0000 (09:29 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:leases'
metze
Stefan Metzmacher [Mon, 30 Aug 2010 07:01:21 +0000 (09:01 +0200)]
docs-xml/vfs_gpfs: document 'gpfs:sharemodes'
metze
Kamen Mazdrashki [Sun, 29 Aug 2010 23:40:04 +0000 (02:40 +0300)]
s4-drs-test: Skip a check that may possibly fail
This check may fail due to automatic replication between DCs
during the test execution.
Ideally we should block automatic replications (somehow)
during this test. But until then, we need just to skip
this check, it is not *that* important anyway
Kamen Mazdrashki [Sun, 29 Aug 2010 16:47:40 +0000 (19:47 +0300)]
s4-util: Print more informative error messages in 'net drs replicate'
Kamen Mazdrashki [Sun, 29 Aug 2010 14:17:47 +0000 (17:17 +0300)]
s4-drs-test: Use dns hostnames to run 'net drs replicate' command
Stefan Metzmacher [Wed, 25 Aug 2010 08:05:15 +0000 (10:05 +0200)]
librpc/ndr: correctly implement ndr_charset_length()
Before we ignored the charset type.
metze
Volker Lendecke [Sun, 29 Aug 2010 21:13:46 +0000 (23:13 +0200)]
s3: Fix an uninitialized variable
Volker Lendecke [Sun, 29 Aug 2010 21:13:34 +0000 (23:13 +0200)]
s3: Fix the build without cluster
Volker Lendecke [Sat, 28 Aug 2010 15:25:22 +0000 (17:25 +0200)]
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.
Volker Lendecke [Sat, 28 Aug 2010 15:21:07 +0000 (17:21 +0200)]
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.
Volker Lendecke [Sat, 28 Aug 2010 15:19:42 +0000 (17:19 +0200)]
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.
Volker Lendecke [Sat, 28 Aug 2010 15:16:08 +0000 (17:16 +0200)]
s3: Remove smbd_server_fd() from smbd_register_ips
Volker Lendecke [Sat, 28 Aug 2010 15:12:43 +0000 (17:12 +0200)]
s3: Lift smbd_server_fd() from msg_release_ip()
Volker Lendecke [Sat, 28 Aug 2010 15:09:56 +0000 (17:09 +0200)]
s3: Lift smbd_server_fd() from release_ip()
Volker Lendecke [Sat, 28 Aug 2010 14:58:54 +0000 (16:58 +0200)]
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.
Volker Lendecke [Sat, 28 Aug 2010 14:57:51 +0000 (16:57 +0200)]
s3: Pass sconn to check_reload
This removes a use of smbd_server_fd()
Volker Lendecke [Sat, 28 Aug 2010 14:56:47 +0000 (16:56 +0200)]
s3: Pass sconn instead of msg_ctx to housekeeping_fn
Volker Lendecke [Sat, 28 Aug 2010 14:33:00 +0000 (16:33 +0200)]
s3: Set the client_id in substitute.c once
This never changes during a client connection's life, so we can set it
once.
Volker Lendecke [Sat, 28 Aug 2010 14:19:31 +0000 (16:19 +0200)]
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.
Volker Lendecke [Sat, 28 Aug 2010 14:18:07 +0000 (16:18 +0200)]
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.
Kamen Mazdrashki [Sat, 28 Aug 2010 17:02:13 +0000 (20:02 +0300)]
s4-kcc: Notify dreplsrv that Topology has changed
Kamen Mazdrashki [Sat, 28 Aug 2010 17:00:39 +0000 (20:00 +0300)]
s4-dreplsrv: Implement irpc stub to be used to force dreplsrv to update internal cache
This IRPC calls is to be used whenever repsFrom/repsTo are
changed by administrative tool or KCC (i.e. Topology changes).
At present, only KCC may change topology.
Kamen Mazdrashki [Fri, 27 Aug 2010 23:26:00 +0000 (02:26 +0300)]
s4-dreplsrv: Move partition cache update before scheduling another set of replications
Kamen Mazdrashki [Fri, 27 Aug 2010 22:30:09 +0000 (01:30 +0300)]
s4-testenv: Synchronize DCs after 'net vampire'
During 'net vampire', vampired DC adds information in its own
database, se we need to force replicate vampired_dc to the
first DC to be sure everything is in sync prior starting tests
Kamen Mazdrashki [Fri, 27 Aug 2010 14:25:56 +0000 (17:25 +0300)]
s4-kcc: Assert when unexpected repsFromToBlob version is passed
At present we only support v1 structures (Win2k3 and earlier),
so it is good to make it obvious.
In case we start supporting v2 we will be able to notice this
function should be refactored right away
Volker Lendecke [Sat, 28 Aug 2010 13:11:53 +0000 (15:11 +0200)]
s3: Remove an unused macro
Volker Lendecke [Sat, 28 Aug 2010 10:41:27 +0000 (12:41 +0200)]
s3: Remove some references to smbd_server_fd()
Volker Lendecke [Sat, 28 Aug 2010 12:15:31 +0000 (14:15 +0200)]
s3: Fix a (highly unlikly) memleak in set_local_machine_name()
Volker Lendecke [Sat, 28 Aug 2010 12:13:54 +0000 (14:13 +0200)]
s3: Fix some DEBUGs
Volker Lendecke [Sat, 28 Aug 2010 12:05:20 +0000 (14:05 +0200)]
s3: Remove smbd_server_fd() from set_local_machine_name()
Volker Lendecke [Sat, 28 Aug 2010 11:10:30 +0000 (13:10 +0200)]
s3: Fix a typo
Volker Lendecke [Sun, 27 Jun 2010 13:36:38 +0000 (15:36 +0200)]
s3: Remove the dependency of g_lock on procid_self
procid_self() references global vars, don't depend on them unnecessarily
Volker Lendecke [Sat, 21 Aug 2010 12:59:14 +0000 (14:59 +0200)]
s3: Remove smbd_server_conn() from check_unix_security
Volker Lendecke [Sat, 21 Aug 2010 12:57:16 +0000 (14:57 +0200)]
s3: Lift smbd_server_fd() from pass_check()