obnox/samba-ctdb.git
13 years agos3: add functions to remove entries from idmap cache
Gregor Beck [Fri, 18 Feb 2011 13:47:03 +0000 (14:47 +0100)]
s3: add functions to remove entries from idmap cache

13 years agos3: add functions to remove entries from idmap memcache
Gregor Beck [Fri, 18 Feb 2011 13:45:14 +0000 (14:45 +0100)]
s3: add functions to remove entries from idmap memcache

13 years agos3: add functions to flush the idmap memcache
Gregor Beck [Fri, 18 Feb 2011 13:42:18 +0000 (14:42 +0100)]
s3: add functions to flush the idmap memcache

13 years agoWHATSNEW: document removed parameter "idmap alloc backend"
Michael Adam [Tue, 1 Feb 2011 10:59:25 +0000 (11:59 +0100)]
WHATSNEW: document removed parameter "idmap alloc backend"

13 years agoWHATSNEW: document new nfs quota backend for linux
Michael Adam [Tue, 1 Feb 2011 11:06:11 +0000 (12:06 +0100)]
WHATSNEW: document new nfs quota backend for linux

13 years agos3: Fix a typo
Volker Lendecke [Sat, 26 Feb 2011 13:01:08 +0000 (14:01 +0100)]
s3: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 20:14:20 CET 2011 on sn-devel-104

13 years agos3: Fix a comment
Volker Lendecke [Sat, 26 Feb 2011 12:41:43 +0000 (13:41 +0100)]
s3: Fix a comment

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sat, 26 Feb 2011 11:36:19 +0000 (12:36 +0100)]
s3: Fix some nonempty blank lines

13 years agos3: Use strndup in parse_nss_param
Volker Lendecke [Sat, 26 Feb 2011 10:53:21 +0000 (11:53 +0100)]
s3: Use strndup in parse_nss_param

13 years agos3: properly find our standard nss_info backends
Volker Lendecke [Sun, 27 Feb 2011 18:09:28 +0000 (19:09 +0100)]
s3: properly find our standard nss_info backends

Right now, the nss_info backends are tied to the idmap backends (which is wrong
IMHO). In the domain child we don't load the idmap backend anymore, so we don't
have the nss info modules. This needs fixing properly.

13 years agos3:net: fix usage for "net rpc registry export"
Michael Adam [Wed, 16 Feb 2011 10:45:52 +0000 (11:45 +0100)]
s3:net: fix usage for "net rpc registry export"

13 years agos3: Fix a debug message
Volker Lendecke [Sun, 27 Feb 2011 15:11:36 +0000 (16:11 +0100)]
s3: Fix a debug message

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 16:59:19 CET 2011 on sn-devel-104
(cherry picked from commit 0decc29b3a641b735ac1b0e71435490cd5958b73)

13 years agos3: Make is_zero_addr take a sockaddr_storage
Volker Lendecke [Sun, 27 Feb 2011 08:57:18 +0000 (09:57 +0100)]
s3: Make is_zero_addr take a sockaddr_storage

All callers had to cast this anyway

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
(cherry picked from commit fec0baacb658eb1bfc15c8ca4dfeecc1cf84eb79)

13 years agos3: Improve a dbg msg in aio_fork
Volker Lendecke [Wed, 23 Feb 2011 10:09:32 +0000 (11:09 +0100)]
s3: Improve a dbg msg in aio_fork

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 26 17:42:37 CET 2011 on sn-devel-104
(cherry picked from commit 48200c27eaaa961dd17f27a973ab07ccb7afbd8f)

13 years agodirfd doesn't exist in some platforms.
Jeremy Allison [Sat, 26 Feb 2011 01:25:36 +0000 (17:25 -0800)]
dirfd doesn't exist in some platforms.

Hack that should get the buildfarm back to green.
Ensure dirfd() needs to be defined before we properly return fdopendir.
This will do until we get a proper dirfd() defined in libreplace.

From http://www.gnu.org/software/hello/manual/gnulib/dirfd.html

This function is missing on some platforms: AIX 7.1, HP-UX 11, OSF/1 5.1, Solaris 10, mingw.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 26 04:19:55 CET 2011 on sn-devel-104
(cherry picked from commit c8a242d9fcb16df41a36b67ce2a8d43a3853b103)

13 years agos3: Fix a 64-bit warning in vfs_gpfs.c
Volker Lendecke [Fri, 25 Feb 2011 13:09:58 +0000 (06:09 -0700)]
s3: Fix a 64-bit warning in vfs_gpfs.c

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Feb 25 14:56:51 CET 2011 on sn-devel-104
(cherry picked from commit 242a63e95ab5ee286dd02dc0b25dceb6b4f82561)

13 years agos3-param: Make "rlimit_max below minimum Windows limit" notification less scary
Jonathan Nieder [Sun, 2 Jan 2011 08:40:09 +0000 (02:40 -0600)]
s3-param: Make "rlimit_max below minimum Windows limit" notification less scary

The fix to bug #6837 results in messages from testparm that look
like a misconfiguration even though they aren't:

 rlimit_max: rlimit_max (8192) below minimum Windows limit (16384)

Apply a slight change in wording ("increasing rlimit_max to minimum
Windows limit") to make it clearer that the user has done nothing
wrong.  (Similarly for sysctl_max.)

Reported-by: Miguel Medalha <miguelmedalha@sapo.pt>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
13 years agoDetect Mac OS X as a separate client type.
Justin Maggard [Fri, 25 Feb 2011 00:25:30 +0000 (16:25 -0800)]
Detect Mac OS X as a separate client type.
(cherry picked from commit 8dcdebe6ea5a1f2074a60ead803379fcd22df549)

13 years agoEnsure we don't return an incorrect access mask.
Jeremy Allison [Fri, 25 Feb 2011 00:04:09 +0000 (16:04 -0800)]
Ensure we don't return an incorrect access mask.

From the Microsoft test suite @ Connectathon:

Test Case: TestSuite_ScenarioNo009GrantedAccessTestS0
    File created with access = 0x7 (Read, Write, Delete)
    Query Info on file returns 0x87 (Read, Write, Delete, Read Attributes)

Jeremy.
(cherry picked from commit 1f2433c719b3a64353a730b963a9b0ff7a8357cb)

13 years agoImplement the SMB2 close flag SMB2_CLOSE_FLAGS_FULL_INFORMATION (and move definition...
Jeremy Allison [Thu, 24 Feb 2011 22:52:58 +0000 (14:52 -0800)]
Implement the SMB2 close flag SMB2_CLOSE_FLAGS_FULL_INFORMATION (and move definition to correct place).

Thanks to Nick Meier @ Microsoft for finding this @ Connectathon.

Jeremy.
(cherry picked from commit c0171feb2c6b912916c780679b1c21f28fab6bb4)

13 years agoBatch oplocks conflict with exclusive as well as themselves.
Jeremy Allison [Thu, 24 Feb 2011 19:59:35 +0000 (11:59 -0800)]
Batch oplocks conflict with exclusive as well as themselves.
(cherry picked from commit b3c74eceb0c871e9f782b88ad1678573ca38b3b8)

13 years agos3:rpc_client: we need to pass a non-blocking socket to tstream_bsd_existing_socket()
Stefan Metzmacher [Wed, 23 Feb 2011 20:42:25 +0000 (21:42 +0100)]
s3:rpc_client: we need to pass a non-blocking socket to tstream_bsd_existing_socket()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Feb 24 07:43:59 CET 2011 on sn-devel-104
(cherry picked from commit 1f13d512d45eaa99023bc41cf6ec03db8cb4508e)

13 years agoRemember to free the second temporary string.
Jeremy Allison [Thu, 24 Feb 2011 02:32:35 +0000 (18:32 -0800)]
Remember to free the second temporary string.
(cherry picked from commit c23e7292bc6406588182f87b61186087ba472ac3)

13 years agoFix bug 7950 - Samba 3.5.x fails BASE-CREATEX_SHAREMODES_DIR smbtorture4 test
Jeremy Allison [Thu, 24 Feb 2011 02:24:41 +0000 (18:24 -0800)]
Fix bug 7950 - Samba 3.5.x fails BASE-CREATEX_SHAREMODES_DIR smbtorture4 test
We need to revalidate the pathname once re-constructed from a root fsp.

Jeremy.
(cherry picked from commit 916e82823b56a70d7761644b38a250ea8c38e204)

13 years agos3-docs: document all wbinfo options.
Günther Deschner [Wed, 23 Feb 2011 14:48:23 +0000 (15:48 +0100)]
s3-docs: document all wbinfo options.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 23 23:45:40 CET 2011 on sn-devel-104
(cherry picked from commit 29f850ac4330909afa426474686be363d0249d73)

13 years agos3-proto: remove some prototypes of non-existing functions.
Günther Deschner [Wed, 23 Feb 2011 12:29:00 +0000 (13:29 +0100)]
s3-proto: remove some prototypes of non-existing functions.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 23 15:42:35 CET 2011 on sn-devel-104
(cherry picked from commit ab64634a2070042d96da7aadc7fff2ea97199c0e)

13 years agos3-waf: add check for getspnam().
Günther Deschner [Tue, 22 Feb 2011 21:56:23 +0000 (22:56 +0100)]
s3-waf: add check for getspnam().

Guenther
(cherry picked from commit 8bca9df258527125e6b7ec9b9ad060cc0fdc3ddf)

13 years agos3-waf: add check for TDB_ERR_NESTING.
Günther Deschner [Tue, 22 Feb 2011 21:34:05 +0000 (22:34 +0100)]
s3-waf: add check for TDB_ERR_NESTING.

Guenther
(cherry picked from commit b1e5dc716e1d968edf7e2686ba1dda3a42381541)

13 years agos3-waf: add check for sendfile on AIX.
Günther Deschner [Tue, 22 Feb 2011 20:36:35 +0000 (21:36 +0100)]
s3-waf: add check for sendfile on AIX.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 22 22:36:53 CET 2011 on sn-devel-104
(cherry picked from commit 7f0ef4fb4ad430190d143b0ed73fb3a68dde17fd)

13 years agos3-waf: add check for sendfile on solaris.
Günther Deschner [Tue, 22 Feb 2011 20:33:06 +0000 (21:33 +0100)]
s3-waf: add check for sendfile on solaris.

Guenther
(cherry picked from commit 2b53e7eec75b3ea210eceeec4361d14fc4576f27)

13 years agos3-waf: add check for sendfile on hpux.
Günther Deschner [Tue, 22 Feb 2011 20:24:39 +0000 (21:24 +0100)]
s3-waf: add check for sendfile on hpux.

Guenther
(cherry picked from commit 6c32fe5207c4baab12212e9d53b80b41986ed1d7)

13 years agos3-waf: add check for sendfile on freebsd.
Günther Deschner [Tue, 22 Feb 2011 20:16:39 +0000 (21:16 +0100)]
s3-waf: add check for sendfile on freebsd.

Guenther
(cherry picked from commit 2babc4fcf47ad865e301ce22cceff4e0b0429de9)

13 years agos3-waf: add check for sendfile on linux.
Günther Deschner [Tue, 22 Feb 2011 20:11:15 +0000 (21:11 +0100)]
s3-waf: add check for sendfile on linux.

Guenther
(cherry picked from commit d71c024131d4b108e5c6b4eacf5a75fef8c69215)

13 years agos3-waf: make sure ENABLE_BUILD_FARM_HACKS is enabled when run on the buildfarm.
Günther Deschner [Tue, 22 Feb 2011 19:43:23 +0000 (20:43 +0100)]
s3-waf: make sure ENABLE_BUILD_FARM_HACKS is enabled when run on the buildfarm.

Guenther
(cherry picked from commit ef896e647a1b19f8d0fc35dad823401e24354435)

13 years agos3-includes: move some chgpasswd related defines to the locations where they are...
Günther Deschner [Tue, 22 Feb 2011 18:45:24 +0000 (19:45 +0100)]
s3-includes: move some chgpasswd related defines to the locations where they are used.

Guenther
(cherry picked from commit 28b4b059386b4369d6ad85c82bbc150aa81609c4)

13 years agos3-waf: add check for ftruncate extend.
Günther Deschner [Tue, 22 Feb 2011 11:43:12 +0000 (12:43 +0100)]
s3-waf: add check for ftruncate extend.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 22 13:35:48 CET 2011 on sn-devel-104
(cherry picked from commit 79b41dcae14764612946cef012ca20c61dace919)

13 years agos3-waf: add check for realpath() NULL arg.
Günther Deschner [Tue, 22 Feb 2011 10:57:23 +0000 (11:57 +0100)]
s3-waf: add check for realpath() NULL arg.

Guenther
(cherry picked from commit 4fe3ecefa04d7ca1321109574014950503fca5b8)

13 years agos3-waf: add check for makedev().
Günther Deschner [Tue, 22 Feb 2011 10:53:51 +0000 (11:53 +0100)]
s3-waf: add check for makedev().

Guenther
(cherry picked from commit 33d676cd7e34ca5b9ed5ea0c99bcbda441b3b95f)

13 years agos3-waf: add check for TIME_T_MAX.
Günther Deschner [Tue, 22 Feb 2011 10:49:52 +0000 (11:49 +0100)]
s3-waf: add check for TIME_T_MAX.

Guenther
(cherry picked from commit bd333551bd5a2436773a1541a28e3e47c0e08533)

13 years agos3-waf: add check for /proc/sys/kernel/core_pattern.
Günther Deschner [Tue, 22 Feb 2011 10:41:06 +0000 (11:41 +0100)]
s3-waf: add check for /proc/sys/kernel/core_pattern.

Guenther
(cherry picked from commit 2984003275ed415268b2e135bf71380ab9ae9ef3)

13 years agos4-smbtorture: use torture_comment() instead of printf in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:03:23 +0000 (14:03 +0100)]
s4-smbtorture: use torture_comment() instead of printf in raw.write test.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 21 15:26:38 CET 2011 on sn-devel-104
(cherry picked from commit fb45c8890458dd15db1add360f5761d3ef4d60ee)

13 years agos4-smbtorture: fix some indent in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:01:27 +0000 (14:01 +0100)]
s4-smbtorture: fix some indent in raw.write test.

Guenther
(cherry picked from commit 138533da3c7cdfb8fc1c35b7c051347dfa8f821b)

13 years agos4-smbtorture: fix trailing whitespace in raw.write test.
Günther Deschner [Mon, 21 Feb 2011 13:00:08 +0000 (14:00 +0100)]
s4-smbtorture: fix trailing whitespace in raw.write test.

Guenther
(cherry picked from commit e1f4f0b6052662eabf63d127eff0c3ea8df16972)

13 years agos3-smbsharemodes: libsmbsharemodes does neither depend on krb5 or ldap.
Günther Deschner [Fri, 18 Feb 2011 14:54:51 +0000 (15:54 +0100)]
s3-smbsharemodes: libsmbsharemodes does neither depend on krb5 or ldap.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Feb 18 16:46:35 CET 2011 on sn-devel-104
(cherry picked from commit 927792b21235bf8409ea04022b2912728f21d79e)

13 years agonsswitch: make libwbclient a public library again.
Günther Deschner [Fri, 18 Feb 2011 14:40:59 +0000 (15:40 +0100)]
nsswitch: make libwbclient a public library again.

Guenther
(cherry picked from commit 9154f0b4510ec9e3c7916b5fd3f37c441bd8c490)

13 years agos3:libsmb only log a dead connection if it was not closed
Christian Ambach [Tue, 22 Feb 2011 14:45:44 +0000 (15:45 +0100)]
s3:libsmb only log a dead connection if it was not closed

in case the cli was closed before (e.g. via a dropped ip message)
it can be expected that the read here returns with an error and so
we should not log that a connection is dead when it was closed before

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb 23 16:51:03 CET 2011 on sn-devel-104
(cherry picked from commit 051611256b043a8841c456ce34a37ef4ac806155)

13 years agos3: Fix 64-bit errors
Volker Lendecke [Wed, 23 Feb 2011 14:26:38 +0000 (15:26 +0100)]
s3: Fix 64-bit errors

Casting those variables will lead to sscanf believing that it sees pointers to
unsigned longs. These might be 64 bit long, thus sscanf will overwrite memory
it should not overwrite. Assigning the vars later is okay, there we get
automatic type conversion. C can be nasty ...

Christian, please check!
(cherry picked from commit dfd33bcbb81998e68c00d2a01aab6b5c468ecf87)

13 years agos3: Fix an uninitialized variable use
Volker Lendecke [Wed, 23 Feb 2011 14:25:36 +0000 (15:25 +0100)]
s3: Fix an uninitialized variable use

The "goto error;" lead to the invalid talloc_free.

Christian, please check!
(cherry picked from commit 9671615592a2e539a661698373dd3f7c7dd82d73)

13 years agos3:idmap:autorid prevent fatal configuration changes
Christian Ambach [Wed, 16 Feb 2011 18:05:21 +0000 (19:05 +0100)]
s3:idmap:autorid prevent fatal configuration changes

as the autorid module relies on a stable minimum uid/gid value
and rangesize, it now saves the values used at first successful start
and refuses to work if these values get changed in smb.conf later.
Changing the values after the first mapping was done will result
in unpredictable behaviour.
Another check covers the maximum uid value. If this gets decreased
later and domain range mappings already exist that would result
in uid values higher than the new uid value, initialization will
be aborted
(cherry picked from commit 8283cdbb1f28517d3e25a958aede0e5a31131f90)

13 years agos3: Improve an error msg in vfs_gpfs
Volker Lendecke [Wed, 23 Feb 2011 12:25:12 +0000 (13:25 +0100)]
s3: Improve an error msg in vfs_gpfs

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb 23 14:12:39 CET 2011 on sn-devel-104
(cherry picked from commit 148252331ab7f236858febb9bfc52c66ea8a2ff3)

13 years agos3: Protect tldap_errstr against a NULL ld
Volker Lendecke [Sun, 20 Feb 2011 14:08:41 +0000 (15:08 +0100)]
s3: Protect tldap_errstr against a NULL ld
(cherry picked from commit e99d1de3c4fe3c1ff678270f51ef7e6d3812e878)

13 years agos3: Improve a debug message, we have more than pdb_tdb.
Volker Lendecke [Sun, 20 Feb 2011 14:20:26 +0000 (15:20 +0100)]
s3: Improve a debug message, we have more than pdb_tdb.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb 20 16:50:05 CET 2011 on sn-devel-104
(cherry picked from commit b85a323d02c69beffc9e20fc2164930cc5e91234)

13 years agosmbtorture Remove random file name before we start RW2
Andrew Bartlett [Tue, 22 Feb 2011 00:21:53 +0000 (11:21 +1100)]
smbtorture Remove random file name before we start RW2
(cherry picked from commit b73cfabdf5cc28a91a72df8b64cf57021e08f0b0)

13 years agos3: Fix a typo
Volker Lendecke [Mon, 21 Feb 2011 11:45:14 +0000 (12:45 +0100)]
s3: Fix a typo
(cherry picked from commit c85607d8ecd97c242662ca391e24269df1686fb8)

13 years agoTorture test added to run_opentest() to ensure we don't regress on
Jeremy Allison [Wed, 23 Feb 2011 00:40:23 +0000 (16:40 -0800)]
Torture test added to run_opentest() to ensure we don't regress on
the previous change.
(cherry picked from commit ed9861cad6576861953a10706af818f38e7955bd)

13 years agoFix bug found against the new Mac client @ Connectathon. Mac clients
Jeremy Allison [Wed, 23 Feb 2011 00:38:42 +0000 (16:38 -0800)]
Fix bug found against the new Mac client @ Connectathon. Mac clients
don't open with FILE_WRITE_ATTRIBUTES when just doing a write, so updating
the write time on close fails as smb_set_file_time() now (correctly) checks
for FILE_WRITE_ATTRIBUTES in the access_mask before allowing client time
update. This is an internal time update being done on a close, not a handle-based
client request.
(cherry picked from commit 064a46c8ebf7a93805200d665b748ceff44be628)

13 years agovfs_smb_traffic_analyzer shall also transfer the clients IP address.
Holger Hetterich [Sun, 13 Feb 2011 17:20:00 +0000 (18:20 +0100)]
vfs_smb_traffic_analyzer shall also transfer the clients IP address.

13 years agos3: Fix a C++ warning
Volker Lendecke [Mon, 14 Feb 2011 19:56:09 +0000 (20:56 +0100)]
s3: Fix a C++ warning

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104
(cherry picked from commit 64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444)

13 years agos3: Fix a typed-punned warning
Volker Lendecke [Mon, 7 Feb 2011 13:43:09 +0000 (14:43 +0100)]
s3: Fix a typed-punned warning

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 11:46:50 CET 2011 on sn-devel-104
(cherry picked from commit e9f552925d0c007379d81af6ea9b0973011aed80)

13 years agoFix alignment issues in SPOOLSS "BUFFER" marshalling.
Jeremy Allison [Fri, 18 Feb 2011 17:01:46 +0000 (09:01 -0800)]
Fix alignment issues in SPOOLSS "BUFFER" marshalling.
Guenther and Metze please check !
(cherry picked from commit 8b881e7b6f3b0089ea874b3decd49379b963eb63)

13 years agos3:vfs:syncops add option to disable metasync per share
Christian Ambach [Fri, 18 Feb 2011 12:03:52 +0000 (13:03 +0100)]
s3:vfs:syncops add option to disable metasync per share

introduce an option to disable the metadata sync
in case the filesystem handles this correctly the sync can be
skipped, but synchronization of the data that was written can still
be configured (in opposition to the disable flag disabling all
sync operations)

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Feb 18 17:31:59 CET 2011 on sn-devel-104
(cherry picked from commit d05aa90384082c348113021500ac15716d060ead)

13 years agotevent: Fix a comment
Volker Lendecke [Thu, 17 Feb 2011 15:45:46 +0000 (16:45 +0100)]
tevent: Fix a comment

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 17 18:16:18 CET 2011 on sn-devel-104
(cherry picked from commit 7720facd424b67cc9b49a5111a3b74df5129d3c1)

13 years agos4-smbtorture: add more complex spoolss_EnumPrinterDataEx test.
Günther Deschner [Thu, 17 Feb 2011 14:24:00 +0000 (15:24 +0100)]
s4-smbtorture: add more complex spoolss_EnumPrinterDataEx test.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 16:46:28 CET 2011 on sn-devel-104
(cherry picked from commit d4892f38761b29e911762d15e5518ee5965a2530)

13 years agos3-waf: add check for "struct sigevent" and some of its members.
Günther Deschner [Thu, 17 Feb 2011 09:59:44 +0000 (10:59 +0100)]
s3-waf: add check for "struct sigevent" and some of its members.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 12:01:58 CET 2011 on sn-devel-104
(cherry picked from commit 2045cd7ed7235f68947720f4a2da84f05284791c)

13 years agos3-waf: add check for "struct utimbuf".
Günther Deschner [Thu, 17 Feb 2011 09:53:25 +0000 (10:53 +0100)]
s3-waf: add check for "struct utimbuf".

Guenther
(cherry picked from commit ce718bb521d3f3a83d07303373889d2c834fbe14)

13 years agos3: increase the log level for missing PIDs on SIGCHLD
David Disseldorp [Wed, 16 Feb 2011 16:23:25 +0000 (17:23 +0100)]
s3: increase the log level for missing PIDs on SIGCHLD

Since the fix for bso#7836, the parent smbd is responsible for
maintaining an up-to-date printcap cache. It does this by forking a
child process to asynchronously fetch printcap data from CUPS.

When the child process exits after fetching all printcap data, the
parent smbd is sent SIGCHLD. This triggers smbd_sig_chld_handler() which
looks for the exited process PID on a "children" list.
Child smbd process PIDs are added to the "children" list to ensure
cleanup on unclean shutdown and log level change notification messages.

Printcap update process PIDs are not added to the list as they do not
maintain any state that requires cleanup, nor do they wait on tevent for
messages.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 17 11:11:45 CET 2011 on sn-devel-104
(cherry picked from commit 9c12232f1ae36e00d04114ad73edd8ba3c2c6a5c)

13 years agos3-selftest: make sure we really use --format=subunit when calling smbtorture4.
Günther Deschner [Thu, 17 Feb 2011 00:12:04 +0000 (01:12 +0100)]
s3-selftest: make sure we really use --format=subunit when calling smbtorture4.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 17 02:01:56 CET 2011 on sn-devel-104
(cherry picked from commit 78c4b2170eaa29f38d9b2904c8a6e71edfeb831b)

13 years agolibndr: remove prototype for nonexisting function ndr_print_ipv4_addr().
Günther Deschner [Tue, 15 Feb 2011 23:43:30 +0000 (00:43 +0100)]
libndr: remove prototype for nonexisting function ndr_print_ipv4_addr().

Guenther
(cherry picked from commit 0aed229710b8058878f25ce7b738ef807fb1faaa)

13 years agos3-waf: move libsmb/clikrb5.c and libads/kerberos.c into KRBCLIENT.
Günther Deschner [Wed, 16 Feb 2011 23:49:11 +0000 (00:49 +0100)]
s3-waf: move libsmb/clikrb5.c and libads/kerberos.c into KRBCLIENT.

This avoids two duplicates...

Guenther
(cherry picked from commit 0e156e7d62df9178c89d1beae4d0c3c936ea2827)

13 years agonsswitch: make wb_reqtrans a common subsystem.
Günther Deschner [Wed, 16 Feb 2011 23:43:05 +0000 (00:43 +0100)]
nsswitch: make wb_reqtrans a common subsystem.

Guenther
(cherry picked from commit bc83400d8102d7f01e00d71d86cd28f7dc1fbfc9)

13 years agos3-waf: make most of the nsswitch common.
Günther Deschner [Wed, 16 Feb 2011 23:11:18 +0000 (00:11 +0100)]
s3-waf: make most of the nsswitch common.

Guenther
(cherry picked from commit 743b13b8e0bb1a79219d4cd89a4c3e3f75344d2c)

13 years agos4-waf: move wbinfo buildrule to winbind.
Günther Deschner [Wed, 16 Feb 2011 22:53:25 +0000 (23:53 +0100)]
s4-waf: move wbinfo buildrule to winbind.

Will be moved back later, once we have a more common samba-util.so

Guenther
(cherry picked from commit 9867b7bf34c80a12b936682ab6cb686ab45ca51c)

13 years agobuild: change lib order to fix build on netbsd
Matthieu Patou [Sun, 12 Dec 2010 09:06:31 +0000 (12:06 +0300)]
build: change lib order to fix build on netbsd

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Dec 12 10:54:02 CET 2010 on sn-devel-104
(cherry picked from commit 24cac449a1910ce55cbc5e83180b6dd89940223f)

13 years agos4/waf: add intl dependency for nss_winnbind
Björn Jacke [Wed, 1 Dec 2010 14:26:11 +0000 (15:26 +0100)]
s4/waf: add intl dependency for nss_winnbind

needed to fix a build issue on NetBSD and other platforms

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Wed Dec  1 16:15:19 CET 2010 on sn-devel-104
(cherry picked from commit ffc3f943cd9fbcc7dfdae6e843b2759a81e5b110)

13 years agos3-waf: add check for struct stat st_flags member.
Günther Deschner [Wed, 16 Feb 2011 21:15:20 +0000 (22:15 +0100)]
s3-waf: add check for struct stat st_flags member.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 16 23:04:35 CET 2011 on sn-devel-104
(cherry picked from commit 9e822f103298519db0671a1dced7d8a43cd96f6c)

13 years agos3-waf: add some missing checks for macosx.
Günther Deschner [Wed, 16 Feb 2011 20:58:47 +0000 (21:58 +0100)]
s3-waf: add some missing checks for macosx.

Guenther
(cherry picked from commit afb77d135e31b7aa5f6dbd10113b0bf43a734986)

13 years agos3-waf: add check for __NR_inotify_init declaration.
Günther Deschner [Wed, 16 Feb 2011 17:38:19 +0000 (18:38 +0100)]
s3-waf: add check for __NR_inotify_init declaration.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 16 19:28:18 CET 2011 on sn-devel-104
(cherry picked from commit 5d3f9569252cc329cd95b405768a93c4c19c4b4e)

13 years agos3-waf: add check for various sysconf() variables.
Günther Deschner [Wed, 16 Feb 2011 17:29:33 +0000 (18:29 +0100)]
s3-waf: add check for various sysconf() variables.

Guenther
(cherry picked from commit a029235b3e152988b6964c1cbdf2b20bbea9b55c)

13 years agos3-waf: add check for posix_fadvise().
Günther Deschner [Wed, 16 Feb 2011 16:55:26 +0000 (17:55 +0100)]
s3-waf: add check for posix_fadvise().

Guenther
(cherry picked from commit 9d78512b2bb85547f955552801d8770f92e0b2f5)

13 years agos3-waf: add check for hires timestamps in struct stat.
Günther Deschner [Wed, 16 Feb 2011 16:33:05 +0000 (17:33 +0100)]
s3-waf: add check for hires timestamps in struct stat.

Guenther
(cherry picked from commit 1cc0fb5a9aa9f7c90c27972b2c347fbcb3df5fe3)

13 years agos3-waf: add check for "struct flock64".
Günther Deschner [Wed, 16 Feb 2011 16:03:24 +0000 (17:03 +0100)]
s3-waf: add check for "struct flock64".

Guenther
(cherry picked from commit 3b3f13a7fb6816563ae1334e821ea37f9175b16e)

13 years agos3-waf: add check for broken (glibc2.1/x86) 64 bit fcntl locking.
Günther Deschner [Wed, 16 Feb 2011 15:52:45 +0000 (16:52 +0100)]
s3-waf: add check for broken (glibc2.1/x86) 64 bit fcntl locking.

Guenther
(cherry picked from commit 8701b0d6454f846472a186f1e44dd4a9368631f4)

13 years agos3-waf: add check for fcntl locking.
Günther Deschner [Wed, 16 Feb 2011 15:51:14 +0000 (16:51 +0100)]
s3-waf: add check for fcntl locking.

Guenther
(cherry picked from commit 4e32fd9d5cb9360fb32f765ba7018a8f609e287f)

13 years agos3-waf: add check for "struct dirent64".
Günther Deschner [Wed, 16 Feb 2011 15:42:33 +0000 (16:42 +0100)]
s3-waf: add check for "struct dirent64".

Guenther
(cherry picked from commit b3f76482d250511ddf3b75f276c48c51db939691)

13 years agos3-auth Fix memory leak in security=share and force user =
Andrew Bartlett [Fri, 11 Feb 2011 00:34:56 +0000 (11:34 +1100)]
s3-auth Fix memory leak in security=share and force user =

In these cases, the server_info was not stolen onto a long term memory
context, and so remained on the NULL context where it was created.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Feb 16 01:08:19 CET 2011 on sn-devel-104
(cherry picked from commit 1354d3dc747344390302e3fd2a202ff372985a9c)

13 years agoMerge branch 'v3-6-test' of ssh://git.samba.org/data/git/samba into v3-6-test
Jeremy Allison [Wed, 16 Feb 2011 01:22:32 +0000 (17:22 -0800)]
Merge branch 'v3-6-test' of ssh://git.samba.org/data/git/samba into v3-6-test

13 years agos3-librpc: move server_id marshalling to own helper file.
Günther Deschner [Tue, 15 Feb 2011 16:37:03 +0000 (17:37 +0100)]
s3-librpc: move server_id marshalling to own helper file.

(in preparation of merging struct server_id).

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb 16 00:02:33 CET 2011 on sn-devel-104
(cherry picked from commit e34ba447ec8a54db744f0103d91ec05f7cfd60ce)

13 years agos3-waf: fix the build.
Günther Deschner [Tue, 15 Feb 2011 13:32:26 +0000 (14:32 +0100)]
s3-waf: fix the build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 15 15:24:11 CET 2011 on sn-devel-104
(cherry picked from commit 0085d6e21a131c76cef76d468bfed4fe5ece4eb6)

13 years agos3-amend: Don't overwrite existing values
Volker Lendecke [Tue, 15 Feb 2011 17:16:43 +0000 (18:16 +0100)]
s3-amend: Don't overwrite existing values

This saves a ton of tdb transactions on smbd startup

Andreas, Günther, please check!
(cherry picked from commit f56432c348d0243b43a8cce42c0a438902854272)

13 years agos3-selftest: move all skipped test to skiplist.
Günther Deschner [Tue, 15 Feb 2011 10:15:19 +0000 (11:15 +0100)]
s3-selftest: move all skipped test to skiplist.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb 15 12:52:22 CET 2011 on sn-devel-104
(cherry picked from commit 0bfdb3e2495a1f40ead2ee6b8ad70614f43fc939)

13 years agos3-waf: TLDAP is only needed by pdb_ads (and smbtorture).
Günther Deschner [Mon, 7 Feb 2011 13:27:55 +0000 (14:27 +0100)]
s3-waf: TLDAP is only needed by pdb_ads (and smbtorture).

Guenther
(cherry picked from commit a32f0ff2f095350197ffe3776c125681571e9f83)

13 years agos3: no need to globally include intl.h.
Günther Deschner [Mon, 14 Feb 2011 11:02:00 +0000 (12:02 +0100)]
s3: no need to globally include intl.h.

Guenther
(cherry picked from commit ca574482b889d42d9e8fbc6bea62acaa4bc15137)

13 years agos3-selftest: when skipping tests, use the selftest/skip file.
Günther Deschner [Mon, 14 Feb 2011 10:29:00 +0000 (11:29 +0100)]
s3-selftest: when skipping tests, use the selftest/skip file.

Guenther
(cherry picked from commit c575d30a32092665d104a06a12139528730b1287)

13 years agotdb: Fix a C++ warning
Volker Lendecke [Sat, 12 Feb 2011 16:30:11 +0000 (17:30 +0100)]
tdb: Fix a C++ warning

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Feb 12 19:50:55 CET 2011 on sn-devel-104
(cherry picked from commit 91cad71390bd2a0330891083c65d3f9000b74657)

13 years agoReturn NULL if tevent_add_fd() is passed a negative fd
Stephen Gallagher [Mon, 14 Feb 2011 15:29:49 +0000 (10:29 -0500)]
Return NULL if tevent_add_fd() is passed a negative fd

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Mon Feb 14 17:47:03 CET 2011 on sn-devel-104
(cherry picked from commit d6a41c2723cda59b3cd6ae9a1e77b62f25067663)

13 years agos4-readline: remove leftover from readline merge.
Günther Deschner [Mon, 14 Feb 2011 12:37:59 +0000 (13:37 +0100)]
s4-readline: remove leftover from readline merge.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 14 14:26:12 CET 2011 on sn-devel-104
(cherry picked from commit d3c082e53984fa8069180ed712030f8bd2a109ca)

13 years agos3-waf: add UTIL_TEVENT subsystem (as in ../lib/util/wscript)
Günther Deschner [Tue, 8 Feb 2011 07:56:45 +0000 (08:56 +0100)]
s3-waf: add UTIL_TEVENT subsystem (as in ../lib/util/wscript)

Guenther
(cherry picked from commit 89db591b2a79a85cc9127c67a2697bbc6f326ec6)

13 years agos3-librpc: no need to globally include endpointmapper headers.
Günther Deschner [Sat, 12 Feb 2011 02:09:41 +0000 (03:09 +0100)]
s3-librpc: no need to globally include endpointmapper headers.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 14 12:31:56 CET 2011 on sn-devel-104
(cherry picked from commit b3ea56ae16a35adc974287b83d6061ce5ffe454e)

13 years agos3: move some defines to a better place.
Günther Deschner [Sat, 12 Feb 2011 01:51:19 +0000 (02:51 +0100)]
s3: move some defines to a better place.

Guenther
(cherry picked from commit 80b4e1e9856ed180015e32af2d8762a9acd83910)

13 years agos3-proto: remove prototype for non-existing functions.
Günther Deschner [Sat, 12 Feb 2011 01:24:26 +0000 (02:24 +0100)]
s3-proto: remove prototype for non-existing functions.

Guenther
(cherry picked from commit f10cba1a0133199f1e7a6db0d70c50834e41b4bd)