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()
Volker Lendecke [Sat, 21 Aug 2010 12:52:16 +0000 (14:52 +0200)]
s3: Lift smbd_server_fd() from password_check()
Volker Lendecke [Sat, 21 Aug 2010 12:42:24 +0000 (14:42 +0200)]
s3: Fix some nonempty blank lines
Volker Lendecke [Sat, 28 Aug 2010 11:04:09 +0000 (13:04 +0200)]
s3: Fix smb_pam_passcheck
Stefan Metzmacher [Wed, 25 Aug 2010 09:12:16 +0000 (11:12 +0200)]
pidl:Samba4/NDR/Client: support argument based stubs for [in,out,string]
metze
Stefan Metzmacher [Wed, 25 Aug 2010 09:02:52 +0000 (11:02 +0200)]
pidl:NDR: [in,out,string] doesn't need to pointers
metze
Stefan Metzmacher [Wed, 25 Aug 2010 09:07:29 +0000 (11:07 +0200)]
pidl:Samba4/NDR/Client: correctly copy [out,charset()] buffers
If the conversion from CH_UTF16 to CH_UNIX uses multi-byte characters
in CH_UNIX, we should not silently truncate the string, but return
an error.
metze
Stefan Metzmacher [Wed, 25 Aug 2010 09:13:08 +0000 (11:13 +0200)]
pidl:Samba4/NDR/Client: fix skip reason for unsized arrays
metze
Stefan Metzmacher [Sat, 28 Aug 2010 07:42:10 +0000 (09:42 +0200)]
selftest/Subunit.pm: fix perl warnings
Argument "\n" isn't numeric in numeric ne (!=) at selftest/Subunit.pm line 136
metze
Volker Lendecke [Sat, 28 Aug 2010 10:54:22 +0000 (12:54 +0200)]
s3: Those functions are no macros anymore :-)
Stefan Metzmacher [Sat, 28 Aug 2010 06:38:48 +0000 (08:38 +0200)]
lib/util: remove implicit discard_const_p() from SAFE_FREE()
This should fix a lot of warnings on IRIX.
If callers know what they're doing they can use discard_const_p()
on their own.
metze
Stefan Metzmacher [Sat, 28 Aug 2010 06:27:08 +0000 (08:27 +0200)]
s3:smbd: s/sa_len/sa_socklen , because sa_len is a macro on IRIX
metze
Stefan Metzmacher [Sat, 28 Aug 2010 06:25:19 +0000 (08:25 +0200)]
Revert "lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen"
This reverts commit
3d4fb698660381e650d7caeb5b7cff12847c0fb8.
This was wrong... The problem was in the caller, sa_len is a macro on irix
metze
Jeremy Allison [Fri, 27 Aug 2010 22:25:04 +0000 (15:25 -0700)]
Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a share.
Fix "security = share" with SMB2 by mapping internally
to "security = user" and "map to guest = Bad User".
Jeremy.
Volker Lendecke [Sat, 21 Aug 2010 12:41:01 +0000 (14:41 +0200)]
s3: Lift smbd_server_fd() from smb_pam_passcheck
Volker Lendecke [Sat, 21 Aug 2010 12:38:11 +0000 (14:38 +0200)]
s3: Lift smbd_server_fd() from smb_pam_start
smb_pam_passcheck() is the only caller that fills in NULL, all other callers
now properly fill rhost
Volker Lendecke [Sat, 21 Aug 2010 12:48:28 +0000 (14:48 +0200)]
s3: Pass "private_data" through string_combinations()
Matthias Dieter Wallnöfer [Fri, 27 Aug 2010 17:02:49 +0000 (19:02 +0200)]
s4:torture/rpc/winreg.c - set "error_message" to NULL in "test_HKLM_wellknown"
Hopefully this fixes the build on Solaris 8.
Matthias Dieter Wallnöfer [Thu, 26 Aug 2010 20:48:27 +0000 (22:48 +0200)]
s4:torture/spoolss_access.c - fix discarded const warning
"discard_const_p" seems the most appropriate here.
Matthias Dieter Wallnöfer [Thu, 26 Aug 2010 20:43:05 +0000 (22:43 +0200)]
s4:torture/raw/notify.c - freeable stuff shouldn't be "const"
Matthias Dieter Wallnöfer [Thu, 26 Aug 2010 20:35:09 +0000 (22:35 +0200)]
s4:ntvfs/posix/pvfs_*.c - quiet Solaris warnings
Fix the function argument of "pvfs_xattr_ndr_load/save".
Matthias Dieter Wallnöfer [Thu, 26 Aug 2010 20:30:04 +0000 (22:30 +0200)]
s4:credentials_krb5.c - quiet a Solaris warning
Volker Lendecke [Fri, 27 Aug 2010 12:44:16 +0000 (14:44 +0200)]
s3: Cache results of finding printer names
With hundreds of printers or on a slow machine, this can become expensive.
Problem reported and patch sponsored by DESY, Hamburg (www.desy.de)
Stefan Metzmacher [Fri, 27 Aug 2010 09:42:05 +0000 (11:42 +0200)]
lib/tsocket: sa_socklen is a macro on irix, so better use sasocklen
metze
Volker Lendecke [Wed, 18 Aug 2010 17:51:45 +0000 (19:51 +0200)]
s3: Pass rhost through to smb_pam_passchange
Sumit Bose [Fri, 27 Aug 2010 09:29:08 +0000 (11:29 +0200)]
s3-waf: build samldap passdb backend
Signed-off-by: Günther Deschner <gd@samba.org>
Nadezhda Ivanova [Fri, 27 Aug 2010 09:34:27 +0000 (12:34 +0300)]
s4-dsdb: Fixed a compiler warning.
Volker Lendecke [Fri, 27 Aug 2010 08:29:26 +0000 (10:29 +0200)]
s3: source/ is long gone :-)
Andrew Tridgell [Fri, 27 Aug 2010 01:38:46 +0000 (03:38 +0200)]
s4-pynet: pynet depends on pyrpc_util
Jelmer Vernooij [Fri, 27 Aug 2010 00:17:26 +0000 (02:17 +0200)]
pyrpc: Add py_check_dcerpc_type().
This function checks whether the type of a PyObject matches a
DCE/RPC Python type.
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
Jeremy Allison [Thu, 26 Aug 2010 23:46:45 +0000 (16:46 -0700)]
Fix bug #7651 - mknod and mkfifo fails with "No such file or directory"
Ensure we check the correct stat struct once we've created the
special fix. Thanks to izh1979@gmail.com for pointing out the
bug.
Jeremy.
Günther Deschner [Thu, 26 Aug 2010 21:25:00 +0000 (23:25 +0200)]
s3-proto: remove obsolete prototypes.
Guenther
Volker Lendecke [Thu, 26 Aug 2010 20:01:01 +0000 (22:01 +0200)]
s3: Fix typos
Volker Lendecke [Wed, 18 Aug 2010 17:57:21 +0000 (19:57 +0200)]
s3: Remove smbd_server_fd from expand_msdfs_target