samba.git
13 years agoreplace: Add missing eval to m4 script
Sumit Bose [Tue, 8 Feb 2011 09:55:06 +0000 (10:55 +0100)]
replace: Add missing eval to m4 script

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 16:14:21 CET 2011 on sn-devel-104
(cherry picked from commit d02b5cd65574a3f0af3fa73439af251e728c87d8)

13 years agosocket_wrapper: avoid c++ style comments.
Günther Deschner [Thu, 10 Feb 2011 13:20:34 +0000 (14:20 +0100)]
socket_wrapper: avoid c++ style comments.

Seen on the aix s3-waf build where it causes the build to fail.

Guenther
(cherry picked from commit 2f6d76a95fea8aa1696c039516818d9e3bfe35d1)

13 years agolibwbclient: doxygen: mark wbcSetGidHwm deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcSetGidHwm deprecated

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Feb 10 14:42:24 CET 2011 on sn-devel-104

13 years agolibwbclient: doxygen: mark wbcSetUidHwm deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcSetUidHwm deprecated

13 years agolibwbclient: doxygen: mark wbcRemoveGidMapping deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcRemoveGidMapping deprecated

13 years agolibwbclient: doxygen: mark wbcRemoveUidMapping deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcRemoveUidMapping deprecated

13 years agolibwbclient: doxygen: mark wbcSetGidMapping deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcSetGidMapping deprecated

13 years agolibwbclient: doxygen: mark wbcSetUidMapping deprecated
Michael Adam [Thu, 10 Feb 2011 11:48:01 +0000 (12:48 +0100)]
libwbclient: doxygen: mark wbcSetUidMapping deprecated

13 years agoRevert "libwbclient: bump the libwbclient SOVER 0 -> 1 due to ABI changes"
Michael Adam [Thu, 10 Feb 2011 10:08:02 +0000 (11:08 +0100)]
Revert "libwbclient: bump the libwbclient SOVER 0 -> 1 due to ABI changes"

This reverts commit 5dd63c6c1439f5dde00e56144c38771d81455ada.

Undo the library version bump.

13 years agoRevert "wbinfo: remove --set-uid-mapping - winbindd does not implement that any more."
Michael Adam [Thu, 10 Feb 2011 10:04:51 +0000 (11:04 +0100)]
Revert "wbinfo: remove --set-uid-mapping - winbindd does not implement that any more."

This reverts commit 0e90d01d53ee197a6451b7c55c2afa74e0d8b0bb.

Undo the library version bump.

13 years agoRevert "wbinfo: remove --set-gid-mapping - winbindd does not implement that any more."
Michael Adam [Thu, 10 Feb 2011 10:04:47 +0000 (11:04 +0100)]
Revert "wbinfo: remove --set-gid-mapping - winbindd does not implement that any more."

This reverts commit 9de1fd4352346cb71b232b7198155e157396f6ec.

Undo the library version bump.

13 years agoRevert "wbinfo: remove --remove-uid-mapping - winbindd does not implement that any...
Michael Adam [Thu, 10 Feb 2011 10:04:44 +0000 (11:04 +0100)]
Revert "wbinfo: remove --remove-uid-mapping - winbindd does not implement that any more."

This reverts commit 36e2baa8da3de559ce0f6c927f6262a8e4648a97.

Undo the library version bump.

13 years agoRevert "wbinfo: remove --remove-gid-mapping - winbindd does not implement that any...
Michael Adam [Thu, 10 Feb 2011 10:04:41 +0000 (11:04 +0100)]
Revert "wbinfo: remove --remove-gid-mapping - winbindd does not implement that any more."

This reverts commit 48ad64aa78568c4ce743345448c9d39305752d73.

Undo the library version bump.

13 years agoRevert "libwbclient: remove two unused defines"
Michael Adam [Thu, 10 Feb 2011 10:04:35 +0000 (11:04 +0100)]
Revert "libwbclient: remove two unused defines"

This reverts commit 58bf6f9ff0b29df14eee2900fb847b96ef28411f.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcSetUidMapping() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:32 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcSetUidMapping() - not implemented any more"

This reverts commit 25a0dc44f7e180d96dcccb8701e9817ecfd54955.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcSetGidMapping() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:27 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcSetGidMapping() - not implemented any more"

This reverts commit 52e1be2139d370bf0ce99371bc9ab73db41c6236.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcRemoveUidMapping() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:23 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcRemoveUidMapping() - not implemented any more"

This reverts commit 1ed5961df2da73b61666a4565d0633e34f72d04d.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcRemoveGidMapping() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:19 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcRemoveGidMapping() - not implemented any more"

This reverts commit 393c866c517636e94b48ca6030a57b712892d568.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcSetUidHwm() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:15 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcSetUidHwm() - not implemented any more"

This reverts commit 6558323c84cdd929716c59ba66d2ae6b699931d2.

Undo the library version bump.

13 years agoRevert "libwbclient: remove wbcSetGidHwm() - not implemented any more"
Michael Adam [Thu, 10 Feb 2011 10:04:11 +0000 (11:04 +0100)]
Revert "libwbclient: remove wbcSetGidHwm() - not implemented any more"

This reverts commit 68a9b726be84aaaaa340f19e175da448409430b3.

Undo the library version bump.

13 years agoRevert "libwbclient: bump version to 0.6 -> 1.0 due to ABI change (removed symbols)"
Michael Adam [Thu, 10 Feb 2011 10:04:06 +0000 (11:04 +0100)]
Revert "libwbclient: bump version to 0.6 -> 1.0 due to ABI change (removed symbols)"

This reverts commit 128bed20c4570fa23bea4d0d49deae811a67a624.

Undo the library version bump.

13 years agoRevert "nsswitch: libwbclient has vnum 1 now."
Michael Adam [Thu, 10 Feb 2011 10:03:59 +0000 (11:03 +0100)]
Revert "nsswitch: libwbclient has vnum 1 now."

This reverts commit c9cb42a27634a0a711d48762c779c6b2f7c338e2.

Undo the library version bump.

13 years agoRevert "nsswitch: remove unused code from wbinfo.c"
Michael Adam [Thu, 10 Feb 2011 09:59:18 +0000 (10:59 +0100)]
Revert "nsswitch: remove unused code from wbinfo.c"

This reverts commit 3bdd2efff8d11448275965b464ac194a2ee0d3ae.

Undo the library version bump.

13 years agolibrpc: move preg.idl to main directory.
Günther Deschner [Thu, 10 Feb 2011 11:54:27 +0000 (12:54 +0100)]
librpc: move preg.idl to main directory.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Feb 10 13:56:49 CET 2011 on sn-devel-104
(cherry picked from commit ad0a3185ce4d9918597d1de3decb9080b88277ef)

13 years agos3-waf: fix krb5 checks logic.
Günther Deschner [Thu, 10 Feb 2011 11:42:47 +0000 (12:42 +0100)]
s3-waf: fix krb5 checks logic.

Guenther
(cherry picked from commit 7de21e62946fdd74250be56bd33e9598237307c5)

13 years agos3: give ../librpc/ndr/util.c its own header.
Günther Deschner [Wed, 9 Feb 2011 23:11:38 +0000 (00:11 +0100)]
s3: give ../librpc/ndr/util.c its own header.

Guenther
(cherry picked from commit fdd4d56405544b8c25fa3f24889726cb98506345)

13 years agoPut OpenDir() back the way it was - don't overload with an fsp arg. Create OpenDir_fs...
Jeremy Allison [Thu, 10 Feb 2011 00:31:06 +0000 (16:31 -0800)]
Put OpenDir() back the way it was - don't overload with an fsp arg. Create OpenDir_fsp for new usage.
(cherry picked from commit 558eeb860e3e3475f5ab39c52fab3414b5b8b478)

13 years agoMake it clear we're using the open file pathname.
Jeremy Allison [Wed, 9 Feb 2011 23:06:40 +0000 (15:06 -0800)]
Make it clear we're using the open file pathname.
(cherry picked from commit 417621d799436c2583514ede02301cf1bb30efb2)

13 years agoAllow SMB2_FIND to actually use the open fd handle if we support fdopendir. Fallback...
Jeremy Allison [Wed, 9 Feb 2011 23:05:58 +0000 (15:05 -0800)]
Allow SMB2_FIND to actually use the open fd handle if we support fdopendir. Fallback to pathname opendir if not.
(cherry picked from commit 1607ebfe8632fa13c5ffb466b8c9f416d7ab20aa)

13 years agoCorrectly plumb in VFS_FDOPENDIR.
Jeremy Allison [Wed, 9 Feb 2011 23:00:56 +0000 (15:00 -0800)]
Correctly plumb in VFS_FDOPENDIR.
(cherry picked from commit 61c1f312d2665197d34245537a8f5b641bda1243)

13 years agos3-waf: make ads support detection a little more robust.
Günther Deschner [Wed, 9 Feb 2011 21:43:41 +0000 (22:43 +0100)]
s3-waf: make ads support detection a little more robust.

Guenther

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

13 years agos3: move some stuff out of smb.h to better locations.
Günther Deschner [Wed, 9 Feb 2011 19:56:57 +0000 (20:56 +0100)]
s3: move some stuff out of smb.h to better locations.

Guenther
(cherry picked from commit 65bb6b35241a29a514fef3be547398c9cd3c2e09)

13 years agos3: remove unused struct uuid_flat.
Günther Deschner [Wed, 9 Feb 2011 19:51:47 +0000 (20:51 +0100)]
s3: remove unused struct uuid_flat.

Guenther
(cherry picked from commit 4303d34da9c0da048348c63468c25381d8d0084c)

13 years agos3-waf: make sure we dont activate dnsupdate support w/o gssapi.
Günther Deschner [Wed, 9 Feb 2011 19:51:12 +0000 (20:51 +0100)]
s3-waf: make sure we dont activate dnsupdate support w/o gssapi.

Guenther
(cherry picked from commit 9239db35e6c77e645a85dbb9a315902d24b87503)

13 years agoOops. Need to test for if(!NT_STATUS_IS_OK(..)) for error.
Jeremy Allison [Wed, 9 Feb 2011 20:18:55 +0000 (12:18 -0800)]
Oops. Need to test for if(!NT_STATUS_IS_OK(..)) for error.
(cherry picked from commit 5218fe4d9282c863c8c2f55db08983b20eb72f26)

13 years agoFix up some buildfarm warnings.
Jeremy Allison [Wed, 9 Feb 2011 18:43:56 +0000 (10:43 -0800)]
Fix up some buildfarm warnings.
(cherry picked from commit ea10006ef857d112477f9cb3294a1439b34259e8)

13 years agoDon't use asprintf in this library - breaks the build on many systems. Fake with...
Jeremy Allison [Wed, 9 Feb 2011 18:28:08 +0000 (10:28 -0800)]
Don't use asprintf in this library - breaks the build on many systems. Fake with malloc/memcpy.
(cherry picked from commit 8d0c16a68bac7c75b4b637c6d6e3377c5461e5d4)

13 years agoMove to opening an fd on directory opens. Get more careful about symlink races.
Jeremy Allison [Wed, 9 Feb 2011 01:04:19 +0000 (17:04 -0800)]
Move to opening an fd on directory opens. Get more careful about symlink races.

13 years agoRemove unneeded stat call.
Jeremy Allison [Wed, 9 Feb 2011 00:51:17 +0000 (16:51 -0800)]
Remove unneeded stat call.

13 years agotevent: Fix typos
Volker Lendecke [Wed, 9 Feb 2011 14:50:34 +0000 (15:50 +0100)]
tevent: Fix typos

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  9 18:13:18 CET 2011 on sn-devel-104
(cherry picked from commit dcd6764dad7ec636201faf724b011cf03edd4beb)

13 years agodlinklist: Change license to LGPLv3+ (checked with tridge).(cherry picked from commit...
Jelmer Vernooij [Sun, 30 Jan 2011 09:59:14 +0000 (10:59 +0100)]
dlinklist: Change license to LGPLv3+ (checked with tridge).(cherry picked from commit d2740976cde8b875c91cff311a688e8a10e4bf30)

13 years agos3-rpc_server: We need a messaging context for rpc.
Andreas Schneider [Wed, 9 Feb 2011 13:21:24 +0000 (14:21 +0100)]
s3-rpc_server: We need a messaging context for rpc.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Feb  9 17:26:00 CET 2011 on sn-devel-104
(cherry picked from commit edbd6f4a93fffb1ccbf678b462ccffe09977c9d0)

13 years agos3-rpc_server: Fixed possible segfault with client_id.
Andreas Schneider [Wed, 9 Feb 2011 13:08:34 +0000 (14:08 +0100)]
s3-rpc_server: Fixed possible segfault with client_id.
(cherry picked from commit 1b5609aa4d72fe3e8bd916440844cc380d75d96a)

13 years agos3-waf: we check for attr in ../lib/util/script already, so we cannot set to EMPTY...
Günther Deschner [Wed, 9 Feb 2011 16:56:45 +0000 (17:56 +0100)]
s3-waf: we check for attr in ../lib/util/script already, so we cannot set to EMPTY here.

Hopefully fixes the irix build.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Feb  9 18:58:15 CET 2011 on sn-devel-104
(cherry picked from commit a0e576178b886a68af5b5fce7e315fda2516df6d)

13 years agos3-waf: as long as we dont have --with-featureX=yes|no|auto handling, avoid exiting.
Günther Deschner [Wed, 9 Feb 2011 16:37:40 +0000 (17:37 +0100)]
s3-waf: as long as we dont have --with-featureX=yes|no|auto handling, avoid exiting.

Guenther
(cherry picked from commit ada4c66ea3e91725e8ce950a71a4bbd8324b5e66)

13 years agos3-waf: check k5crypto in some more locations.
Günther Deschner [Wed, 9 Feb 2011 16:43:54 +0000 (17:43 +0100)]
s3-waf: check k5crypto in some more locations.

Guenther
(cherry picked from commit 9081cb0fd8580d3915d076d7a17af08cca3ef64f)

13 years agos3-waf: support non-default krb5-config and cups-config locations.
Günther Deschner [Wed, 9 Feb 2011 16:43:30 +0000 (17:43 +0100)]
s3-waf: support non-default krb5-config and cups-config locations.

Guenther
(cherry picked from commit 62cd1e08b3df15ae1c35213f7ebf6d495ec5e703)

13 years agos3:utils enable sharesec for registry shares
Christian Ambach [Wed, 9 Feb 2011 14:35:24 +0000 (15:35 +0100)]
s3:utils enable sharesec for registry shares

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb  9 16:41:31 CET 2011 on sn-devel-104

13 years agos3:net idmap: implement net idmap delete
Gregor Beck [Tue, 8 Feb 2011 23:04:48 +0000 (00:04 +0100)]
s3:net idmap: implement net idmap delete

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Feb  9 15:06:06 CET 2011 on sn-devel-104

13 years agos3:net idmap dump: report correct database file when failed to open idmap db.
Michael Adam [Wed, 9 Feb 2011 12:47:21 +0000 (13:47 +0100)]
s3:net idmap dump: report correct database file when failed to open idmap db.

13 years agos3:net idmap dump: use net_idmap_dbfile
Gregor Beck [Tue, 8 Feb 2011 11:40:23 +0000 (12:40 +0100)]
s3:net idmap dump: use net_idmap_dbfile

13 years agos3:net idmap restore: correctly abort operation if dbfile could not be determined
Michael Adam [Tue, 8 Feb 2011 22:24:57 +0000 (23:24 +0100)]
s3:net idmap restore: correctly abort operation if dbfile could not be determined

13 years agos3:net idmap: fix error reporting in net_idmap_dbfile()
Michael Adam [Tue, 8 Feb 2011 22:16:31 +0000 (23:16 +0100)]
s3:net idmap: fix error reporting in net_idmap_dbfile()

The last case which results in dbfile == NULL is not an
out of memory case but means no --db has been specified
and the idmap backend is not supported for auto-determining
the idmap tdb file.

13 years agos3:net factor out net_idmap_dbfile
Gregor Beck [Tue, 8 Feb 2011 11:06:07 +0000 (12:06 +0100)]
s3:net factor out net_idmap_dbfile

13 years agos3:net idmap restore: fix segfault on missing input file
Gregor Beck [Tue, 8 Feb 2011 11:03:08 +0000 (12:03 +0100)]
s3:net idmap restore: fix segfault on missing input file

13 years agos3:net add option --db
Gregor Beck [Tue, 8 Feb 2011 11:01:34 +0000 (12:01 +0100)]
s3:net add option --db

13 years agos3:testparm: add "--option" to testparm
Michael Adam [Wed, 9 Feb 2011 12:45:22 +0000 (13:45 +0100)]
s3:testparm: add "--option" to testparm

This way one can test the --option feature with testparm.
E.g.:

testparm -s -v --option="parameter=value" | grep parameter

should print "parameter = value"

13 years agos3:popt: add POPT_COMMON_OPTION to provide only the "--option" feature
Michael Adam [Wed, 9 Feb 2011 12:44:42 +0000 (13:44 +0100)]
s3:popt: add POPT_COMMON_OPTION to provide only the "--option" feature

13 years agos3:loadparm: skip leading spaces in parameter values from the command line
Michael Adam [Wed, 9 Feb 2011 12:42:38 +0000 (13:42 +0100)]
s3:loadparm: skip leading spaces in parameter values from the command line

13 years agos3:rpc_server: create binding_handle in rpc_pipe_open_external()
Stefan Metzmacher [Wed, 9 Feb 2011 05:56:25 +0000 (06:56 +0100)]
s3:rpc_server: create binding_handle in rpc_pipe_open_external()

metze

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  9 12:30:50 CET 2011 on sn-devel-104

13 years agos3:rpc_client: make rpccli_bh_create() non-static for now
Stefan Metzmacher [Wed, 9 Feb 2011 05:55:33 +0000 (06:55 +0100)]
s3:rpc_client: make rpccli_bh_create() non-static for now

metze

13 years agoAdd fdopendir to the VFS. We will use this to reuse a directory fd already open by...
Jeremy Allison [Tue, 8 Feb 2011 23:07:48 +0000 (15:07 -0800)]
Add fdopendir to the VFS. We will use this to reuse a directory fd already open by NtCreateX.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Feb  9 00:55:22 CET 2011 on sn-devel-104
(cherry picked from commit a674a56a97c78a44bf43f1c175d106fbe70c7485)

13 years agoPass fsp to dptr_CloseDir(). Cope with setting the fd if we're closing an fd that...
Jeremy Allison [Tue, 8 Feb 2011 23:05:00 +0000 (15:05 -0800)]
Pass fsp to dptr_CloseDir(). Cope with setting the fd if we're closing an fd that opendir knows about.
(cherry picked from commit 224fc03cb56b0d76f6ad7f18dd0528d6b0e57fb1)

13 years agoAdd configure checks for fdopendir.
Jeremy Allison [Tue, 8 Feb 2011 23:04:47 +0000 (15:04 -0800)]
Add configure checks for fdopendir.
(cherry picked from commit ad3d1adea3cdf42aee644dd853193b53a142c2f1)

13 years agoAdd fdopendir().
Jeremy Allison [Tue, 8 Feb 2011 22:43:07 +0000 (14:43 -0800)]
Add fdopendir().
(cherry picked from commit 1911d483e552a6ec73b2c107b968268e7e9111e5)

13 years agos3: Fix some nonempty blank lines and some typos
Volker Lendecke [Tue, 8 Feb 2011 22:08:21 +0000 (23:08 +0100)]
s3: Fix some nonempty blank lines and some typos

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Feb  9 00:01:45 CET 2011 on sn-devel-104
(cherry picked from commit 5a0ee95b95d22f8eee7cc86d350fb0e60ab54b69)

13 years agoselftest: remove make oldtest.
Günther Deschner [Tue, 8 Feb 2011 13:56:32 +0000 (14:56 +0100)]
selftest: remove make oldtest.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  8 22:16:31 CET 2011 on sn-devel-104
(cherry picked from commit 698d339ffd8abf59f0f000d4155241c267975c68)

13 years agos3-selftest: let valgrindtest use the new make test.
Günther Deschner [Tue, 8 Feb 2011 13:55:12 +0000 (14:55 +0100)]
s3-selftest: let valgrindtest use the new make test.

Guenther
(cherry picked from commit 480671481e69f0646ab78086dc275f798f713af6)

13 years agoIf possible (O_DIRECTORY exists) open an fd for a directory open.
Jeremy Allison [Tue, 8 Feb 2011 04:46:36 +0000 (20:46 -0800)]
If possible (O_DIRECTORY exists) open an fd for a directory open.

Start of the move towards handle-based code for directory access.
Currently makes fstat/fchown code work for directories rather than
falling back to pathnames.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Feb  8 06:34:41 CET 2011 on sn-devel-104
(cherry picked from commit e68f6adca9494166bf7c24c358ea1af718970b0d)

13 years agos3-spoolss: Dont wipe out all drivers when only one should be deleted.
Günther Deschner [Tue, 8 Feb 2011 16:19:23 +0000 (17:19 +0100)]
s3-spoolss: Dont wipe out all drivers when only one should be deleted.

Great catch from Bjoern Baumbach <bb@sernet.de> !

Andreas, Simo, please check.

We now have a torture test (rpc.spoolss.driver.driver.multiple_drivers) for this.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  8 18:11:48 CET 2011 on sn-devel-104
(cherry picked from commit 8b64d0607bc3b5e3182d8a879a7fa382dbdf0fc7)

13 years agos4-smbtorture: add torture test to check proper add and delete driver operations.
Günther Deschner [Tue, 8 Feb 2011 16:16:51 +0000 (17:16 +0100)]
s4-smbtorture: add torture test to check proper add and delete driver operations.

Thanks to Bjoern Baumbach <bb@sernet.de> for pushing us to test and verify this.

Guenther
(cherry picked from commit 9e6d61fb8571683ddf02a7796e569ee8e4da907e)

13 years agos3-selftest: mark the driver timestamp test as knownfail for now.
Günther Deschner [Tue, 8 Feb 2011 14:16:44 +0000 (15:16 +0100)]
s3-selftest: mark the driver timestamp test as knownfail for now.

Guenther
(cherry picked from commit 541bf8068d5f9236ba63630f09cbc3cf02a8882f)

13 years agos4-smbtorture: also run the driver timestamp spoolss test against samba.
Günther Deschner [Tue, 8 Feb 2011 14:16:20 +0000 (15:16 +0100)]
s4-smbtorture: also run the driver timestamp spoolss test against samba.

Guenther
(cherry picked from commit 7d107cda8936edfe3e0ce916600cc3cea91cd490)

13 years agos4-waf: split out wscript_build for ndrdump binary.
Günther Deschner [Fri, 28 Jan 2011 13:02:55 +0000 (14:02 +0100)]
s4-waf: split out wscript_build for ndrdump binary.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  8 14:50:54 CET 2011 on sn-devel-104
(cherry picked from commit 4086c1e382a22f08a5b138bb6617451de2042ad9)

13 years agolib/compression: add shared wscript_build.
Günther Deschner [Tue, 8 Feb 2011 13:00:02 +0000 (14:00 +0100)]
lib/compression: add shared wscript_build.

Guenther
(cherry picked from commit 56fe080d87952c6f1f1175444327769c67c55167)

13 years agolibndr: apply some const and make is_valid_policy_hnd a callback to policy_handle_empty.
Günther Deschner [Tue, 8 Feb 2011 10:49:33 +0000 (11:49 +0100)]
libndr: apply some const and make is_valid_policy_hnd a callback to policy_handle_empty.

Guenther
(cherry picked from commit 947ba448a4d52bfbf03f6ed96e96d172a0c69dce)

13 years agopam: share pam errors in a common location.
Günther Deschner [Tue, 8 Feb 2011 09:45:39 +0000 (10:45 +0100)]
pam: share pam errors in a common location.

Guenther
(cherry picked from commit 34722c72f687ad8a357656152aed9f6bafab1cad)

13 years agos3:net: remove unused net_idmap_help
Gregor Beck [Fri, 28 Jan 2011 09:58:03 +0000 (10:58 +0100)]
s3:net: remove unused net_idmap_help

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Feb  8 11:50:37 CET 2011 on sn-devel-104

13 years agolibndr: share some uuid helpers.
Günther Deschner [Mon, 7 Feb 2011 23:04:20 +0000 (00:04 +0100)]
libndr: share some uuid helpers.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Feb  8 09:52:56 CET 2011 on sn-devel-104
(cherry picked from commit be5edba117d3af9c9289bc5d37e7e037cb0a05f1)

13 years agondr: merge ndr_map_error2string and ndr_errstr.
Günther Deschner [Mon, 7 Feb 2011 22:27:57 +0000 (23:27 +0100)]
ndr: merge ndr_map_error2string and ndr_errstr.

Guenther
(cherry picked from commit 84dbc2a82de0531c49fa7aa16fbdf8aba6324aac)

13 years agondr: move null_ndr_syntax_id to the common libndr location.
Günther Deschner [Mon, 7 Feb 2011 22:21:41 +0000 (23:21 +0100)]
ndr: move null_ndr_syntax_id to the common libndr location.

Guenther
(cherry picked from commit 8b55ae178586d25854a929ace05f203d547242ad)

13 years agondr: merge duplicate ndr_map_error2ntstatus() functions.
Günther Deschner [Fri, 28 Jan 2011 22:38:21 +0000 (23:38 +0100)]
ndr: merge duplicate ndr_map_error2ntstatus() functions.

Guenther
(cherry picked from commit 724c9821313b5289dc6fa29bbe930c19dfd230fb)

13 years agoUse corrcet function instead of cut-and-paste code.
Jeremy Allison [Tue, 8 Feb 2011 01:34:22 +0000 (17:34 -0800)]
Use corrcet function instead of cut-and-paste code.
(cherry picked from commit 1121091f8bf857948c335f326088cfafa78ed013)

13 years agoFix leak in error path.
Jeremy Allison [Tue, 8 Feb 2011 01:33:26 +0000 (17:33 -0800)]
Fix leak in error path.
(cherry picked from commit 0a7f1af82ca94a9ea3f2fbe6b4bf64ff17c76cce)

13 years agolibcli/security: Make add_sid_to_array_unique use a uin32_t counter
Volker Lendecke [Thu, 3 Feb 2011 12:23:50 +0000 (05:23 -0700)]
libcli/security: Make add_sid_to_array_unique use a uin32_t counter

Logical consequence of the previous commit

Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb  7 19:24:19 CET 2011 on sn-devel-104
(cherry picked from commit 1d58fcc9259d929093d381f0bd6690345e7c8040)

13 years agolibcli/security: Make del_sid_from_array take a uint32_t
Volker Lendecke [Thu, 3 Feb 2011 12:22:36 +0000 (05:22 -0700)]
libcli/security: Make del_sid_from_array take a uint32_t

This aligns it with add_sid_to_array

Signed-off-by: Michael Adam <obnox@samba.org>
(cherry picked from commit 91a56b420a7a6f71d69b0bb88143748d834d4a80)

13 years agos3:net conf: fix a comment typo
Michael Adam [Mon, 7 Feb 2011 12:30:11 +0000 (13:30 +0100)]
s3:net conf: fix a comment typo
(cherry picked from commit 3bccd2f3f365d5b8f227d0ddf9397921c1622c44)

13 years agos3: Make "endpoint_table" static
Volker Lendecke [Sun, 6 Feb 2011 19:42:52 +0000 (20:42 +0100)]
s3: Make "endpoint_table" static

Andreas, this is only used in srv_epmapper right now. Make public again when
this will be used somewhere else.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 21:33:04 CET 2011 on sn-devel-104
(cherry picked from commit a61b17ce564a1fcd77102f51466844bef6431797)

13 years agos3: Use the right credentials in check_netlogond_security
Volker Lendecke [Sun, 6 Feb 2011 18:56:22 +0000 (19:56 +0100)]
s3: Use the right credentials in check_netlogond_security

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 20:43:03 CET 2011 on sn-devel-104
(cherry picked from commit 40a46a9cca88cc06b028b415e8d1c49d54076307)

13 years agos3: Only build auth_netlogond for the developer build
Volker Lendecke [Sun, 6 Feb 2011 18:10:40 +0000 (19:10 +0100)]
s3: Only build auth_netlogond for the developer build

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 19:55:49 CET 2011 on sn-devel-104
(cherry picked from commit 007dc95b143e41d068bb0d83310212cd67b56586)

13 years agos3: Add primary group in pdb_ads_enum_group_memberships
Volker Lendecke [Sun, 6 Feb 2011 16:53:37 +0000 (17:53 +0100)]
s3: Add primary group in pdb_ads_enum_group_memberships

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 18:41:08 CET 2011 on sn-devel-104
(cherry picked from commit 0539ca51ab450753997d2333d3f4fc44654fa1f5)

13 years agos3: Fix auth_netlogond to cope with netlogon_creds_CredentialState
Volker Lendecke [Sun, 6 Feb 2011 14:50:04 +0000 (15:50 +0100)]
s3: Fix auth_netlogond to cope with netlogon_creds_CredentialState

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Feb  6 17:30:48 CET 2011 on sn-devel-104
(cherry picked from commit d515c6cd5c4884d781f6a84290f16925a3e34af6)

13 years agos3: Fix a potential memleak in secrets_fetch_trusted_domain_password
Volker Lendecke [Sun, 6 Feb 2011 14:33:26 +0000 (15:33 +0100)]
s3: Fix a potential memleak in secrets_fetch_trusted_domain_password
(cherry picked from commit 47d07df37f5b089ff16ee0e28cde23ed9470f214)

13 years agos3: Fetch the machinepw via ldapi in pdb_ads
Volker Lendecke [Sat, 5 Feb 2011 13:42:01 +0000 (14:42 +0100)]
s3: Fetch the machinepw via ldapi in pdb_ads
(cherry picked from commit 843825f56728a6cec2b0b00cc32f97b4b05b3ea8)

13 years agos3: In pdb_ads, cope with artificial samu structs
Volker Lendecke [Sun, 6 Feb 2011 09:15:50 +0000 (10:15 +0100)]
s3: In pdb_ads, cope with artificial samu structs
(cherry picked from commit 8c367162f09c7772091a80d8426de6bead0c030d)

13 years agos3: Use strlcpy in pdb_ads_connect
Volker Lendecke [Sat, 5 Feb 2011 13:41:52 +0000 (14:41 +0100)]
s3: Use strlcpy in pdb_ads_connect
(cherry picked from commit 08f2a8562f67982f69f4bbf5b1034a42529ab226)

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Thu, 3 Feb 2011 20:47:42 +0000 (21:47 +0100)]
s3: Fix some nonempty blank lines
(cherry picked from commit 8af7400d553f9552df78ab4958da7536f15eddf2)

13 years agos3-waf: add --with-automount option.
Günther Deschner [Mon, 7 Feb 2011 12:21:35 +0000 (13:21 +0100)]
s3-waf: add --with-automount option.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb  7 14:11:03 CET 2011 on sn-devel-104
(cherry picked from commit 4b7d0492bbc92ca8ebcfa0c58fa2b692dc5585d5)

13 years agowaf: add clock_gettime clock ID checks to libreplace wscript.
Günther Deschner [Mon, 7 Feb 2011 12:12:17 +0000 (13:12 +0100)]
waf: add clock_gettime clock ID checks to libreplace wscript.

Guenther
(cherry picked from commit 6baa3ef648b430232077199dfd48c37b5683dace)

13 years agos3-waf: fix wrong check for vfs_aio_fork dependencies.
Günther Deschner [Mon, 7 Feb 2011 11:38:48 +0000 (12:38 +0100)]
s3-waf: fix wrong check for vfs_aio_fork dependencies.

Guenther
(cherry picked from commit 13d8290d0d4f574cadd0c5daabe4e527ce78db30)