samba.git
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)

13 years agos3-waf: fix the build after winreg and rpc services changes.
Günther Deschner [Thu, 3 Feb 2011 11:25:24 +0000 (12:25 +0100)]
s3-waf: fix the build after winreg and rpc services changes.

Andreas, please check.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb  7 13:18:41 CET 2011 on sn-devel-104
(cherry picked from commit 7637e1df8eca417a78d9949b3b776b51ae250d74)

13 years agos3-perfcount: Create the directory on tdb open.
Andreas Schneider [Wed, 2 Feb 2011 10:47:37 +0000 (11:47 +0100)]
s3-perfcount: Create the directory on tdb open.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit a3ee831f2dda047d32750a8c7b4a30b6b7eb7519)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_set_multi_sz.
Andreas Schneider [Tue, 1 Feb 2011 14:33:02 +0000 (15:33 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_set_multi_sz.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 1c6276ce7a917d7599205e7b3f9640811c0be24b)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_query_dword.
Andreas Schneider [Tue, 1 Feb 2011 14:29:48 +0000 (15:29 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_query_dword.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 1f0c766fa6f776f7ec25cab8634e2ad1f6c7aa50)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_set_X.
Andreas Schneider [Tue, 1 Feb 2011 14:25:13 +0000 (15:25 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_set_X.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit df75045e0d52b01f650f40e62c65426b5ce2264e)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_set_X.
Andreas Schneider [Tue, 1 Feb 2011 14:11:05 +0000 (15:11 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_set_X.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit ee817f63cec1036ff332667b1e1b0a2478bf51e5)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_set_dword.
Andreas Schneider [Tue, 1 Feb 2011 13:58:08 +0000 (14:58 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_set_dword.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit e8bf397eb0765db529f9caad7d70639071bcf00c)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_set_sz..
Andreas Schneider [Tue, 1 Feb 2011 13:48:11 +0000 (14:48 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_set_sz..

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 460aedc4b1e97a7721183e164f5231e735368b14)

13 years agos3-rpc_server: Migrated spoolss to dcerpc_winreg_enum_keys.
Andreas Schneider [Tue, 1 Feb 2011 13:28:39 +0000 (14:28 +0100)]
s3-rpc_server: Migrated spoolss to dcerpc_winreg_enum_keys.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 8238732330d3dde73b23750d9b5646bfe3d4a39a)

13 years agos3-services: Remove obsolete services_db.c.
Andreas Schneider [Tue, 1 Feb 2011 12:38:16 +0000 (13:38 +0100)]
s3-services: Remove obsolete services_db.c.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit c6255adc6f027cafeca7247ce58bbeae0733d45a)

13 years agos3-smbd: Init the svcctl registry keys on service startup.
Andreas Schneider [Tue, 1 Feb 2011 10:50:10 +0000 (11:50 +0100)]
s3-smbd: Init the svcctl registry keys on service startup.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit b2ddfc642d0d6a39e6962c61dd178c69f0cd801b)

13 years agos3-rpc_server: Added a winreg based svcctl registry init.
Andreas Schneider [Mon, 31 Jan 2011 15:40:16 +0000 (16:40 +0100)]
s3-rpc_server: Added a winreg based svcctl registry init.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit f1d5cea322f26aae23ee5fb57207648ec15f8218)

13 years agos3-rpc_server: Added a svcctl shutdown function.
Andreas Schneider [Tue, 1 Feb 2011 10:49:33 +0000 (11:49 +0100)]
s3-rpc_server: Added a svcctl shutdown function.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 09dafc4a256c14db6ca8ed68b99d774e118f7051)

13 years agos3-services: Migrated svcctl registry functions to winreg.
Andreas Schneider [Mon, 31 Jan 2011 15:40:33 +0000 (16:40 +0100)]
s3-services: Migrated svcctl registry functions to winreg.

This is a bigger commit. It moves the relevant function to
svc_winreg_glue. We need to use them in the same commit else we have
problems with prototypes in proto.h.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 96565db5f66f791968ed354fc8f39464ff0a7e5a)

13 years agos3-registry: Remove obsolete reg_eventlog.
Andreas Schneider [Fri, 28 Jan 2011 11:37:18 +0000 (12:37 +0100)]
s3-registry: Remove obsolete reg_eventlog.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 1adbbeef32b71450b6c878ea34b431d19ea39523)

13 years agos3-smbd: Init the eventlog registry on service startup.
Andreas Schneider [Fri, 28 Jan 2011 11:33:20 +0000 (12:33 +0100)]
s3-smbd: Init the eventlog registry on service startup.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit a3a38fdb553f978ae58bc0b62db93e1ca2908658)

13 years agos3-util: Moved eventlog_add_source to admin util.
Andreas Schneider [Thu, 27 Jan 2011 17:06:16 +0000 (18:06 +0100)]
s3-util: Moved eventlog_add_source to admin util.

This function is only used in the admin util.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 34e8a50e5a71ab0d31bd0c5375a84d3b3ecf61e9)

13 years agos3-rpc_server: Added a winreg based eventlog registry init.
Andreas Schneider [Thu, 27 Jan 2011 18:22:02 +0000 (19:22 +0100)]
s3-rpc_server: Added a winreg based eventlog registry init.

This enumerates the keys first and only creates them if they don't exist
yet.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 22ea2933818824eb6cf2d760fc474922ca8bbe2c)

13 years agos3-rpc_server: Migrated eventlog to winreg.
Andreas Schneider [Thu, 27 Jan 2011 14:32:48 +0000 (15:32 +0100)]
s3-rpc_server: Migrated eventlog to winreg.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 75abfa6f949bcc2e472ae19084fa3309025caa1d)

13 years agos3-rpc_client: Added a winreg query security descriptor helper.
Andreas Schneider [Tue, 1 Feb 2011 10:04:16 +0000 (11:04 +0100)]
s3-rpc_client: Added a winreg query security descriptor helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 01b49b1a2b0442954a088035e133bd8f34fd811d)

13 years agos3-rpc_client: Added a winreg set security descriptor helper.
Andreas Schneider [Mon, 31 Jan 2011 17:40:06 +0000 (18:40 +0100)]
s3-rpc_client: Added a winreg set security descriptor helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 35439a7b182c235eb8adfc2a6864867b486d1b6a)

13 years agos3-rpc_client: Added a winreg set binary helper.
Andreas Schneider [Mon, 31 Jan 2011 17:35:06 +0000 (18:35 +0100)]
s3-rpc_client: Added a winreg set binary helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit a370b9605c98551c9dee5c34b53b92943182a1be)

13 years agos3-rpc_client: Added a winreg query sz helper.
Andreas Schneider [Mon, 31 Jan 2011 15:39:34 +0000 (16:39 +0100)]
s3-rpc_client: Added a winreg query sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 56963d1f44d137581627eec672b63993585ebf64)

13 years agos3-rpc_client: Added a winreg helper to enum keys.
Andreas Schneider [Fri, 28 Jan 2011 11:08:58 +0000 (12:08 +0100)]
s3-rpc_client: Added a winreg helper to enum keys.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 69e6db1a5354c09f038ca158e08f4426863dab34)

13 years agos3-rpc_client: Added a winreg add multi sz helper.
Andreas Schneider [Fri, 28 Jan 2011 09:43:49 +0000 (10:43 +0100)]
s3-rpc_client: Added a winreg add multi sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 8ed91d602774155859b9d9acaa5909a1a0a68079)

13 years agos3-rpc_client: Added a winreg query multi sz helper.
Andreas Schneider [Fri, 28 Jan 2011 09:07:57 +0000 (10:07 +0100)]
s3-rpc_client: Added a winreg query multi sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 8c119e47578e5dadaad32330a77a0cab8557a4a0)

13 years agos3-rpc_client: Added a winreg set multi sz helper.
Andreas Schneider [Fri, 28 Jan 2011 08:57:41 +0000 (09:57 +0100)]
s3-rpc_client: Added a winreg set multi sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 913426b0c3cd319aa120d4170a99706a007fcd51)

13 years agos3-rpc_client: Added a winreg set expand sz helper.
Andreas Schneider [Fri, 28 Jan 2011 08:50:48 +0000 (09:50 +0100)]
s3-rpc_client: Added a winreg set expand sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 34d3e85f35f5e1c38e686276bc8411fe6d559177)

13 years agos3-rpc_client: Added a winreg set sz helper.
Andreas Schneider [Fri, 28 Jan 2011 08:45:44 +0000 (09:45 +0100)]
s3-rpc_client: Added a winreg set sz helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 4b32f6c9d54f0fef6b6f3ae056336221bfe867a3)

13 years agos3-rpc_client: Added a winreg set dword helper.
Andreas Schneider [Thu, 27 Jan 2011 15:57:34 +0000 (16:57 +0100)]
s3-rpc_client: Added a winreg set dword helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit e5eb7582d30ec10c3fb89b380b35dffdc55595e1)

13 years agos3-rpc_client: Added winreg query binary helper.
Andreas Schneider [Thu, 27 Jan 2011 15:20:30 +0000 (16:20 +0100)]
s3-rpc_client: Added winreg query binary helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit d24bd4be9186d43c6b438b399aafa2bdff82737e)

13 years agos3-rpc_client: Added winreg query dword helper.
Andreas Schneider [Thu, 27 Jan 2011 14:20:58 +0000 (15:20 +0100)]
s3-rpc_client: Added winreg query dword helper.

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 9c7607d3d384240b2777aafa3ea634383431ec4d)

13 years agos3-rpc_client: Added dcerpc_winreg_int_openkey().
Andreas Schneider [Thu, 27 Jan 2011 11:27:23 +0000 (12:27 +0100)]
s3-rpc_client: Added dcerpc_winreg_int_openkey().

Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 12cd4002e66164a0a85ae0e4a17f1f0abaef7e42)