bbaumbach/samba-autobuild/.git
16 years agotestparm: only check for %u und passwd program when passwd program is given.
Michael Adam [Tue, 18 Mar 2008 14:50:27 +0000 (15:50 +0100)]
testparm: only check for %u und passwd program when passwd program is given.

Michael
(This used to be commit af12b24c4f5e3b77d482a011b62a5a3e13be7d67)

16 years agotestparm: correctly check for empty lp_passwd_prog().
Michael Adam [Tue, 18 Mar 2008 14:49:31 +0000 (15:49 +0100)]
testparm: correctly check for empty lp_passwd_prog().

Michael
(This used to be commit 0567f506986746173d67172cb610c10bacf0ceb9)

16 years agotestparm: fix irritating indentation.
Michael Adam [Tue, 18 Mar 2008 14:33:25 +0000 (15:33 +0100)]
testparm: fix irritating indentation.

Michael
(This used to be commit a74f07243d80294167766dfc6bcad02a96afc079)

16 years agotestparm: fix a segfault triggered by setting "unix password sync = yes".
Michael Adam [Tue, 18 Mar 2008 14:30:17 +0000 (15:30 +0100)]
testparm: fix a segfault triggered by setting "unix password sync = yes".

(introduced by pstring removal 041163551194102ca67fef52c57d87020a1d09bc)

Michael
(This used to be commit 46a021f27c60dc579c9193606997142f5cbeba9e)

16 years agoFix bug 5334
Volker Lendecke [Tue, 18 Mar 2008 12:20:10 +0000 (13:20 +0100)]
Fix bug 5334

I did not test with a zero length file :-)
(This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851)

16 years agoSome simplifications
Volker Lendecke [Mon, 17 Mar 2008 20:00:16 +0000 (21:00 +0100)]
Some simplifications
(This used to be commit b59b436997fba47afd02ffb6f1194dfaef229d44)

16 years agoCoverity fixes
Marc VanHeyningen [Fri, 14 Mar 2008 22:26:28 +0000 (14:26 -0800)]
Coverity fixes
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)

16 years agolibsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael Adam [Mon, 17 Mar 2008 17:01:33 +0000 (18:01 +0100)]
libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .

Michael
(This used to be commit 097af0309d7c3e9342058ba5266667293b23c80d)

16 years agoMove libnet_conf to a library lib/smbconf/ of its own, fixing the api.
Michael Adam [Mon, 17 Mar 2008 16:29:44 +0000 (17:29 +0100)]
Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.

The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael
(This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)

16 years agosocket_wrapper: make pcap code more portable
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable

Now the pcap support works on x86_64.

metze
(cherry picked from commit 61a87bed61ef661d98131239976be95c6a8b4d96)
(This used to be commit c22204aa85d4bb33534b6974dcfed9aad0c28cc4)

16 years agoFix use of AuthDataWithContext capability
Derrell Lipman [Mon, 17 Mar 2008 15:34:25 +0000 (11:34 -0400)]
Fix use of AuthDataWithContext capability

During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.

Use of an authentication function with the context can be tested using

  examples/libsmbclient/testbrowse -C

Derrell
(This used to be commit 38eab68dfb2d8abe8ad00f5a86fc54c778d0d303)

16 years agoIn smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
Volker Lendecke [Mon, 17 Mar 2008 13:45:59 +0000 (14:45 +0100)]
In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST

This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.

Merge from 491f902098d33f in 3-0-ctdb
(This used to be commit 065938ccb7bb0052746267c433637f0e05b95d85)

16 years agoMerge leftovers of 0e1a86bc845 in 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 13:40:07 +0000 (14:40 +0100)]
Merge leftovers of 0e1a86bc845 in 3-0-ctdb
(This used to be commit 64b1625f8e3bca43504871747bef6631e1b18f44)

16 years agoUse right control to attach to persistent databases
Volker Lendecke [Mon, 17 Mar 2008 13:12:10 +0000 (14:12 +0100)]
Use right control to attach to persistent databases

This is a merge of 2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb
(This used to be commit 46e50da0d550e43de3aaf0141c64f25e1c9997c2)

16 years agoAdd "net idmap aclmapset"
Volker Lendecke [Mon, 17 Mar 2008 12:51:50 +0000 (13:51 +0100)]
Add "net idmap aclmapset"

This is a merge from 3-0-ctdb that goes along with 1daad835, the option
nfs4:sidmap option
(This used to be commit f5e26d28be6581149bed0b599c38b82d1a44444e)

16 years agoregistry: untangle assignment and if-clause in init_registry_data().
Michael Adam [Mon, 17 Mar 2008 11:21:32 +0000 (12:21 +0100)]
registry: untangle assignment and if-clause in init_registry_data().

Michael
(This used to be commit 64664d25cf84e5e0f4a4876b2c38c127b310dbc5)

16 years agoConvert pdb_tdb to use dbwrap
Volker Lendecke [Fri, 14 Mar 2008 19:35:38 +0000 (20:35 +0100)]
Convert pdb_tdb to use dbwrap
(This used to be commit 948ab77863b12b1b0bd1c970004b84b9bb1bb2fa)

16 years agoregistry: convert regdb REGISTRY_OPS to named struct initializers.
Michael Adam [Mon, 17 Mar 2008 00:44:26 +0000 (01:44 +0100)]
registry: convert regdb REGISTRY_OPS to named struct initializers.

Michael
(This used to be commit 3ea0a0beb47bf91b71d949de5abb797177721dcc)

16 years agoregistry: use talloc instead of malloc and provide common exit point
Michael Adam [Mon, 17 Mar 2008 00:39:16 +0000 (01:39 +0100)]
registry: use talloc instead of malloc and provide common exit point

in regdb_get_secdesc().

Michael
(This used to be commit df848d8eeeb102288a3acb9a0f8a7015e0c6ca6b)

16 years agoregistry: remove an unused variable from regdb_set_secdesc().
Michael Adam [Mon, 17 Mar 2008 00:32:47 +0000 (01:32 +0100)]
registry: remove an unused variable from regdb_set_secdesc().

Michael
(This used to be commit 76dad05e4ce4b4cb26557bc151359ed9d58d6317)

16 years agoregistry: untangle assignments and if statements in regdb_set_secdesc().
Michael Adam [Mon, 17 Mar 2008 00:31:47 +0000 (01:31 +0100)]
registry: untangle assignments and if statements in regdb_set_secdesc().

Michael
(This used to be commit d553b5d72569c1496bfa3de703c9bf15a9a6cb60)

16 years agoregistry: use talloc_stackframe instead of hand crafted temporary context.
Michael Adam [Mon, 17 Mar 2008 00:27:27 +0000 (01:27 +0100)]
registry: use talloc_stackframe instead of hand crafted temporary context.

Michael
(This used to be commit e4f2c856ec716697af4815491b5ae8ddb263cd51)

16 years agoregistry: use talloc instead of malloc for tdb data in regdb_store_values().
Michael Adam [Mon, 17 Mar 2008 00:26:35 +0000 (01:26 +0100)]
registry: use talloc instead of malloc for tdb data in regdb_store_values().

Michael
(This used to be commit 860316cbe70836882bff16b39f0deb5c12cbd1f3)

16 years agoregistry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
Michael Adam [Mon, 17 Mar 2008 00:20:18 +0000 (01:20 +0100)]
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx

in regdb_store_values(). Also provide common exit path for
freeing memory.

Michael
(This used to be commit 7454e426f2ea9aa42620ed5bcb34c85797b9e21b)

16 years agoregistry: don't leak to talloc stack in regdb_fetch_keys().
Michael Adam [Mon, 17 Mar 2008 00:17:15 +0000 (01:17 +0100)]
registry: don't leak to talloc stack in regdb_fetch_keys().

Michael
(This used to be commit 3a1d79116b693bc25af1106c9a43ffd275ac3d1e)

16 years agoregistry: explicitly use talloc context instead of talloc_tos()
Michael Adam [Mon, 17 Mar 2008 00:09:31 +0000 (01:09 +0100)]
registry: explicitly use talloc context instead of talloc_tos()

in regdb_fetch_keys().

Michael
(This used to be commit 93ea27a3e23e489a2af3c778684f8a8a4594b567)

16 years agoregistry: don't leak on success path in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:05:48 +0000 (01:05 +0100)]
registry: don't leak on success path in regdb_store_keys().

Michael
(This used to be commit 331d7fd2ea6d8aeb029478a6ab8d4051fa2c03fd)

16 years agoregistry: allocate tempory data in talloc stack in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:02:47 +0000 (01:02 +0100)]
registry: allocate tempory data in talloc stack in regdb_store_keys().

Michael
(This used to be commit a99b51159a7db5f249ff136cf9ba758d14380a35)

16 years agoregistry: separate cancel and failur exit paths in regdb_store_keys().
Michael Adam [Mon, 17 Mar 2008 00:00:40 +0000 (01:00 +0100)]
registry: separate cancel and failur exit paths in regdb_store_keys().

Michael
(This used to be commit e1d4a2fa5b5b0f21d1ea4a9dffc326878c9f54b7)

16 years agoregistry: don't leak memory on transaction fail in regdb_store_keys().
Michael Adam [Sun, 16 Mar 2008 23:43:56 +0000 (00:43 +0100)]
registry: don't leak memory on transaction fail in regdb_store_keys().

Michael
(This used to be commit 9315de404812d89dddcec6ac4ae17c34f5012746)

16 years agoregistry: don't leak (to talloc_tos()) in regdb_store_keys().
Michael Adam [Sun, 16 Mar 2008 23:41:59 +0000 (00:41 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys().

use talloc_stackframe() and free on error path.

Michael
(This used to be commit 95525772f2791f0fb999fe9f271da5b0fbdc62d8)

16 years agoregistry: reformat regdb_store_keys_internal(), killing long lines.
Michael Adam [Sun, 16 Mar 2008 23:22:12 +0000 (00:22 +0100)]
registry: reformat regdb_store_keys_internal(), killing long lines.

Michael
(This used to be commit 966b2414cb6efdfe5acb412ed9bdfd7589ee694c)

16 years agoregistry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
Michael Adam [Sun, 16 Mar 2008 23:09:07 +0000 (00:09 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().

Michael
(This used to be commit 76e4cdc25fc9a7e47fd9a356dc54533b62c5db08)

16 years agoregistry: reformat init_registry_data() some, killing long lines.
Michael Adam [Sun, 16 Mar 2008 23:02:52 +0000 (00:02 +0100)]
registry: reformat init_registry_data() some, killing long lines.

Michael
(This used to be commit f357b1ddd3ea552163151f27b4ec70fe0488a0ba)

16 years agoregistry: explicitly use talloc context instead of talloc_tos()
Michael Adam [Sun, 16 Mar 2008 22:52:40 +0000 (23:52 +0100)]
registry: explicitly use talloc context instead of talloc_tos()

in init_registry_data().

Michael
(This used to be commit 8b0dd1e7582eef71275eea2da2b444588412c517)

16 years agoregistry: don't leak (to talloc_tos()) in init_registry_data().
Michael Adam [Sun, 16 Mar 2008 22:49:59 +0000 (23:49 +0100)]
registry: don't leak (to talloc_tos()) in init_registry_data().

Michael
(This used to be commit 7fd0ae3edce8a6ae913344cc0974181c19179b23)

16 years agoregistry: rename tdb_refcount to regdb_refcount after change to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:08:33 +0000 (23:08 +0100)]
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.

Michael
(This used to be commit d39957e2c9216ef01b2ef53863c0ef5d3a9b5fee)

16 years agoregistry: rename tdb_reg to regdb after change to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:07:15 +0000 (23:07 +0100)]
registry: rename tdb_reg to regdb after change to dbwrap.

Michael
(This used to be commit 79f37d47655ec26176a8da5f47e1c7400888a2ef)

16 years agoregistry: migrate tdb registry backend to dbwrap.
Michael Adam [Sun, 16 Mar 2008 22:03:34 +0000 (23:03 +0100)]
registry: migrate tdb registry backend to dbwrap.

Michael
(This used to be commit 3c42d8ee16a4b143c6658fe26030569658eaef66)

16 years agoFix Coverity ID 567
Volker Lendecke [Sun, 16 Mar 2008 19:23:44 +0000 (12:23 -0700)]
Fix Coverity ID 567

Jeremy, please push it if you like it and mark the bug as fixed on the Coverity
site.

Thanks,

Volker
(This used to be commit 2fd25423700cb60f20a8b8d6613279cb06fb518d)

16 years agoNeed to close the /dev/zero fd
Volker Lendecke [Sun, 16 Mar 2008 10:55:59 +0000 (11:55 +0100)]
Need to close the /dev/zero fd
(This used to be commit c2b2a9303d9c84ba4e059f13de9ccc401d08bd59)

16 years agoFix Coverity ID 554
Volker Lendecke [Sat, 15 Mar 2008 21:27:05 +0000 (22:27 +0100)]
Fix Coverity ID 554
(This used to be commit 471b1b0c58bc2def5d2fe9d98401def34724d447)

16 years agoFix Coverity ID 555
Volker Lendecke [Sat, 15 Mar 2008 21:22:53 +0000 (22:22 +0100)]
Fix Coverity ID 555
(This used to be commit 44122f06d02492a7a0a37413d6f975c3b1e3c283)

16 years agoFix Coverity ID 563
Volker Lendecke [Sat, 15 Mar 2008 21:16:42 +0000 (22:16 +0100)]
Fix Coverity ID 563

dirmask is always set here, we've dereferenced it before anyway
(This used to be commit e6787aa133a1b241987319486c3bc46ac6ad41af)

16 years agoFix Coverity ID 564
Volker Lendecke [Sat, 15 Mar 2008 21:07:44 +0000 (22:07 +0100)]
Fix Coverity ID 564

finfo1==NULL just does not happen in current code
(This used to be commit 9ea0078c3151984a901c9bba559ae2bd7959e077)

16 years agoAllocate one 0-byte in asprintf replacement when len==0
Volker Lendecke [Sat, 15 Mar 2008 20:47:22 +0000 (21:47 +0100)]
Allocate one 0-byte in asprintf replacement when len==0

Some S3 code depends on this.
(This used to be commit dc3d5e16452bf30055638ba3cfe99097fb557156)

16 years agoFix typo.
Günther Deschner [Sat, 15 Mar 2008 11:55:17 +0000 (12:55 +0100)]
Fix typo.

Guenther
(This used to be commit e12721f73db72b99aa0e4be35c51aa8636eb3f59)

16 years agoFix bug 5317
Volker Lendecke [Fri, 14 Mar 2008 21:22:30 +0000 (22:22 +0100)]
Fix bug 5317

Thanks to oster@cs.usask.ca
(This used to be commit f18a80575921a241c7243c5af5a0101a2956ff17)

16 years agoFix bug 4901
Volker Lendecke [Fri, 14 Mar 2008 17:01:06 +0000 (18:01 +0100)]
Fix bug 4901
(This used to be commit 1dd8fa9a521046f1de8173ac00224706c5249665)

16 years agolibreplace: fix samba4 build (by not setting global LIBS).
Michael Adam [Fri, 14 Mar 2008 08:39:58 +0000 (09:39 +0100)]
libreplace: fix samba4 build (by not setting global LIBS).

This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.

Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.

Michael
(cherry picked from commit ff3af1703ddc9e5383f32156bc5be8351f795e76)
(This used to be commit 2546da817f666914c1c220ec1fedc19aa41b25ad)

16 years agolibreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
Michael Adam [Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)]
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.

This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael
(cherry picked from commit 297c3bece094ddb5f268b02e61e33f512ccfe6f5)
(This used to be commit ddd564e8bf2b115aa5dbcbebd4be30b749ad8752)

16 years agolibreplace: add an inet_aton() function that calls inet_pton().
Michael Adam [Fri, 14 Mar 2008 07:49:34 +0000 (08:49 +0100)]
libreplace: add an inet_aton() function that calls inet_pton().

inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
(cherry picked from commit bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
(This used to be commit 83baff78ce752a9129554a456cc24d043d419cd1)

16 years agoAllow parameter "include" in registry based configuration (again).
Michael Adam [Thu, 13 Mar 2008 22:08:07 +0000 (23:08 +0100)]
Allow parameter "include" in registry based configuration (again).

This is for instance important to allow includes with %I to setup
individual logging (e.g.) for certain clients.

Michael
(This used to be commit 8dad80b4719691d66827ed46bebb963c0f8ba568)

16 years agoFix %I macro expansion for IPv4 mapped IPv6 addresses.
Michael Adam [Thu, 13 Mar 2008 22:02:58 +0000 (23:02 +0100)]
Fix %I macro expansion for IPv4 mapped IPv6 addresses.

On some systems (linux e.g.), when listening on ipv6 and ipv4,
addresses of ipv4 clients are printed as mapped ipv4 addresses
by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes
the original behaviour of %I to expand to the plain ipv4 address
for an ipv4 client.

Michael
(This used to be commit 0abc8863f87fe5d2473492797c010784cb086008)

16 years agoUse existing srv_name_slash.
Günther Deschner [Wed, 12 Mar 2008 15:35:41 +0000 (16:35 +0100)]
Use existing srv_name_slash.

Guenther
(This used to be commit 5f2b3145fcaeee58f285b6527e9fac09c5337e8a)

16 years agoFor convenience reasons, always create cli->srv_name_slash in the rpc_client.
Günther Deschner [Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)]
For convenience reasons, always create cli->srv_name_slash in the rpc_client.

Guenther
(This used to be commit 6363c383d6989d2dfb2ee488ffa7aeb128c5385b)

16 years agoRemove unused marshalling for SRV_NET_DISK_ENUM.
Günther Deschner [Wed, 12 Mar 2008 15:18:54 +0000 (16:18 +0100)]
Remove unused marshalling for SRV_NET_DISK_ENUM.

Guenther
(This used to be commit 4928f1efceb8cb0b0fda813e6f43f668084caa79)

16 years agoIgnore some unneeded autogenerated cli_ and srv_ functions.
Günther Deschner [Wed, 12 Mar 2008 15:17:27 +0000 (16:17 +0100)]
Ignore some unneeded autogenerated cli_ and srv_ functions.

Guenther
(This used to be commit c8ea359c19f2907683d0cd566ef19f09cc6101bf)

16 years agoinit_srv_share_info_ctr: fix counting of services.
Michael Adam [Wed, 12 Mar 2008 01:12:11 +0000 (02:12 +0100)]
init_srv_share_info_ctr: fix counting of services.

The number of services was recorded too early leading to
registry shares not showing up in browse lists.

Guenther - please check.

Michael
(This used to be commit 737e470e02d1233fda51e903f27955e45427e95a)

16 years agoinit_srv_share_info_ctr: Add debug messages.
Michael Adam [Wed, 12 Mar 2008 01:10:35 +0000 (02:10 +0100)]
init_srv_share_info_ctr: Add debug messages.

Michael
(This used to be commit 8b2cc36ffcb3bccb760ec7cb0a22558eab56070d)

16 years agoAdd a debug message.
Michael Adam [Wed, 12 Mar 2008 01:07:37 +0000 (02:07 +0100)]
Add a debug message.

Michael
(This used to be commit a39807044879ad9df7614e010db6ea16b51000a0)

16 years agoloadparm: add a debug message.
Michael Adam [Wed, 12 Mar 2008 00:03:26 +0000 (01:03 +0100)]
loadparm: add a debug message.

Michael
(This used to be commit ce943aeb581027daf813528481b44177d391b61d)

16 years agoloadparm: remove services read from smb.conf when starting over for config backend...
Michael Adam [Tue, 11 Mar 2008 23:56:33 +0000 (00:56 +0100)]
loadparm: remove services read from smb.conf when starting over for config backend registry.

Michael
(This used to be commit b942ff6b7f0be4898e05525558b354533dea312b)

16 years agoloadparm: add convenience wrapper lp_kill_all_services()
Michael Adam [Tue, 11 Mar 2008 23:54:48 +0000 (00:54 +0100)]
loadparm: add convenience wrapper lp_kill_all_services()

Michael
(This used to be commit 32bfd131e33d06be9dfaef02b57f5401d2bc7639)

16 years agoloadparm: add a comment
Michael Adam [Tue, 11 Mar 2008 23:43:19 +0000 (00:43 +0100)]
loadparm: add a comment

Michael
(This used to be commit 05eda1252572f310499b28123d0f9e4211b7d54c)

16 years agoloadparm: fix a comment typo.
Michael Adam [Tue, 11 Mar 2008 23:42:06 +0000 (00:42 +0100)]
loadparm: fix a comment typo.

Michael
(This used to be commit 0a619d4dc476c945130fe47126d98cd47b39c34d)

16 years agoloadparm: add utility function to check for config backend file.
Michael Adam [Tue, 11 Mar 2008 11:41:20 +0000 (12:41 +0100)]
loadparm: add utility function to check for config backend file.

Michael
(This used to be commit 288495ec1a9b0c37bb3f98043f8f8dd946072bac)

16 years agoloadparm: use a function to check for the registry config backend.
Michael Adam [Tue, 11 Mar 2008 11:36:18 +0000 (12:36 +0100)]
loadparm: use a function to check for the registry config backend.

Michael
(This used to be commit 4ac52a5a1dfe8f4f22e960db2e4ca99f9e262427)

16 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Tue, 11 Mar 2008 22:26:22 +0000 (15:26 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 1de05f1a87fcea598021ca485d3ed87005a3be68)

16 years agoUsing Metze's S4 nttrans rename test, the nttrans rename
Jeremy Allison [Tue, 11 Mar 2008 22:26:02 +0000 (15:26 -0700)]
Using Metze's S4 nttrans rename test, the nttrans rename
behaves the same as the trans2 one.
Jeremy.
(This used to be commit c4fa4917dad97c5047f7336c6675739b44da256b)

16 years agoselftest: samba3 passes RAW-SEARCH now
Stefan Metzmacher [Tue, 11 Mar 2008 21:06:09 +0000 (22:06 +0100)]
selftest: samba3 passes RAW-SEARCH now

As the resume key tests are skipped against samba3.

metze
(This used to be commit c765090871ed68a9ba650bca44f5f3b88997ea14)

16 years agoMetze pointed out this we don't need FILE_ATTRIBUTE_READ here.
Jeremy Allison [Tue, 11 Mar 2008 20:59:04 +0000 (13:59 -0700)]
Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.
Jeremy.
(This used to be commit 923aa9f330cb370221af6b66cf0f237a9bd06f8e)

16 years agoAllow us to pass RAW-RENAME by testing that the connection struct
Jeremy Allison [Tue, 11 Mar 2008 20:38:25 +0000 (13:38 -0700)]
Allow us to pass RAW-RENAME by testing that the connection struct
connection paths are equal, not just the conn structs themselves.
Jeremy.
(This used to be commit 632f3fe66fbcbe3cc25d070c3885177264f5ad65)

16 years agoTry and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,
Jeremy Allison [Tue, 11 Mar 2008 20:27:33 +0000 (13:27 -0700)]
Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,
BATCH20 and RAW-RENAME.
Jeremy.
(This used to be commit 9065792d4bc42522f12f9732de3c0ad82c72a2d3)

16 years agoFix S3 to pass the test_raw_oplock_exclusive3 test.
Jeremy Allison [Tue, 11 Mar 2008 19:37:01 +0000 (12:37 -0700)]
Fix S3 to pass the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit 028302fac53083d66c969b876db1d831e53b8e35)

16 years agoThe attached patch removes some global variables, and make them local to main().
Charles [Tue, 11 Mar 2008 18:49:08 +0000 (19:49 +0100)]
The attached patch removes some global variables, and make them local to main().
(This used to be commit 50cab87d3ee6d701dd8847f4e0a058f5e2d80e0f)

16 years agoAdd some last init_srvsvc_X functions.
Günther Deschner [Tue, 11 Mar 2008 17:19:45 +0000 (18:19 +0100)]
Add some last init_srvsvc_X functions.

Guenther
(This used to be commit 41dc55f1de8590b1bb5572e4adbf9bf960c12a64)

16 years agoConvert mapping_tdb.c to dbwrap
Volker Lendecke [Tue, 11 Mar 2008 13:15:52 +0000 (14:15 +0100)]
Convert mapping_tdb.c to dbwrap

I know, this is not used anymore, but until ldb knows about ctdb which is
blocked by the lack of transactions in ctdb, a tiny patch reactivating
mapping_tdb.c might be needed for cluster setups.
(This used to be commit 8e0fa453a3d0a2c997a935b6940796612c972708)

16 years agoClean up add_mapping_entry slightly
Volker Lendecke [Tue, 11 Mar 2008 11:53:50 +0000 (12:53 +0100)]
Clean up add_mapping_entry slightly
(This used to be commit 38bb69cb316ba605a6d3a4454b986cb63ace3c21)

16 years agoCleanup after pstring removal
Volker Lendecke [Tue, 11 Mar 2008 11:46:36 +0000 (12:46 +0100)]
Cleanup after pstring removal
(This used to be commit 66d2a9c87411be88269bbb3a4d3c0a218a55be06)

16 years agoConvert secrets.c to use dbwrap
Volker Lendecke [Tue, 11 Mar 2008 11:30:46 +0000 (12:30 +0100)]
Convert secrets.c to use dbwrap
(This used to be commit 9d30e5991c6fe77ef5fd505efb756554bbe77256)

16 years agoTrying to fix resume_handling for srvsvc_NetShareEnumAll.
Günther Deschner [Tue, 11 Mar 2008 10:30:55 +0000 (11:30 +0100)]
Trying to fix resume_handling for srvsvc_NetShareEnumAll.

Guenther
(This used to be commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745)

16 years agoAllow to send no resume_handle in rpcclient's NetShareEnum* calls.
Günther Deschner [Tue, 11 Mar 2008 10:29:49 +0000 (11:29 +0100)]
Allow to send no resume_handle in rpcclient's NetShareEnum* calls.

Guenther
(This used to be commit 7e178a3dc970f55ddb30b4fc467aaaa06ef35b0f)

16 years agoregistry shares: prevent creating regular share called "global".
Michael Adam [Tue, 11 Mar 2008 01:02:27 +0000 (02:02 +0100)]
registry shares: prevent creating regular share called "global".

This is a first quick fix.
Registry shares should be rewritten to use libnet_conf.

Michael
(This used to be commit 71bd0bd0ea018e8c5033bbf904333c596330855a)

16 years agoFix return of reg values below HKLM/SOFTWARE/MICROSOFT/WINDOWSNT/CURRENTVERSION.
Günther Deschner [Tue, 11 Mar 2008 09:51:20 +0000 (10:51 +0100)]
Fix return of reg values below HKLM/SOFTWARE/MICROSOFT/WINDOWSNT/CURRENTVERSION.

Michael, please check.

Guenther
(This used to be commit 29ccc0e233bae160f7a6e1b0ff6b6cdda4d0f4ee)

16 years agoUse pidl for _srvsvc_NetDiskEnum.
Günther Deschner [Tue, 11 Mar 2008 09:48:52 +0000 (10:48 +0100)]
Use pidl for _srvsvc_NetDiskEnum.

Guenther
(This used to be commit 933d546f86b48bfd9f84045ec21efc1c362b4d93)

16 years agoFix netdiskenum call in rpcclient.
Günther Deschner [Tue, 11 Mar 2008 03:52:46 +0000 (04:52 +0100)]
Fix netdiskenum call in rpcclient.

Guenther
(This used to be commit dcbfdd1330cf1c7e8d1b4ebc051db139ed6a0053)

16 years agoUse a separate tdb for mutexes
Volker Lendecke [Mon, 10 Mar 2008 20:08:29 +0000 (21:08 +0100)]
Use a separate tdb for mutexes

Another preparation to convert secrets.c to dbwrap: The dbwrap API does not
provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC
mutex is needed per-node anyway, so it is perfectly fine to use a local mutex
only.
(This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)

16 years agoConvert secrets_lock_trust_account_password to talloc
Volker Lendecke [Mon, 10 Mar 2008 14:48:04 +0000 (15:48 +0100)]
Convert secrets_lock_trust_account_password to talloc

This is preparing the conversion of secrets.c to ctdb
(This used to be commit 1307f0130c47b8d740d2b7afe7a5d8d1a655e2a2)

16 years agoAdd dbwrap_trans_store and dbwrap_trans_delete
Volker Lendecke [Mon, 10 Mar 2008 12:27:27 +0000 (13:27 +0100)]
Add dbwrap_trans_store and dbwrap_trans_delete
(This used to be commit e66e502bee65fe44944d325ebeeaa3bf56169eb8)

16 years agoAdd transactions to the dbwrap API
Volker Lendecke [Mon, 10 Mar 2008 09:17:05 +0000 (10:17 +0100)]
Add transactions to the dbwrap API

Only filled in for tdb so far, for rbt it's pointless, and ctdb itself needs to
be extended
(This used to be commit 0a55e018dd68af06d84332d54148bbfb0b510b22)

16 years agoadd dbwrap_change_int32_atomic
Volker Lendecke [Sun, 9 Mar 2008 10:15:10 +0000 (11:15 +0100)]
add dbwrap_change_int32_atomic
(This used to be commit 4ee21a98bc3d1c41a6d8868e98118c58372b2d1a)

16 years agoAdd netconnenum to rpcclient.
Günther Deschner [Mon, 10 Mar 2008 17:34:50 +0000 (18:34 +0100)]
Add netconnenum to rpcclient.

Guenther
(This used to be commit 627688c7bac4d3afcc846164c2fefebdbbc10d68)

16 years agoRe-run make idl.
Günther Deschner [Mon, 10 Mar 2008 16:35:34 +0000 (17:35 +0100)]
Re-run make idl.

Guenther
(This used to be commit 0bc389272f7ca3cfbd8f5eeeba116f68eadd4c9f)

16 years agoFix IDL for srvsvc_NetConnEnum.
Günther Deschner [Mon, 10 Mar 2008 16:35:07 +0000 (17:35 +0100)]
Fix IDL for srvsvc_NetConnEnum.

Guenther
(This used to be commit 03a3b8b0ed504d392b7503dfe988c22c4943ace6)

16 years agoAdd netdiskenum to rpcclient.
Günther Deschner [Mon, 10 Mar 2008 16:30:22 +0000 (17:30 +0100)]
Add netdiskenum to rpcclient.

Guenther
(This used to be commit 3ef4d6b524d26f2c345321d5a8c9f7526e322ccd)

16 years agoloadparm: fix init_globals() to re-init all options event when called 2nd time.
Michael Adam [Mon, 10 Mar 2008 16:16:01 +0000 (17:16 +0100)]
loadparm: fix init_globals() to re-init all options event when called 2nd time.

Up to the globals had only been fully reset when init_globals() was called
for the first time. But a full restart is needed for use with
"config backend = registry". (And should be with "config file = ...", but
in this case the restart is outsourced to the daemons.) This left
some options (like e.g. "realm") set to values that were set in smb.conf
before the occurence of "config backend = registry".

Now this misbehaviour is fixed with this change.

Michael
(This used to be commit f12259d9c4c34b99f5b655cab4b210159cb0e188)

16 years agoloadparm: replace typedef struct {} global/service by struct global/struct service.
Michael Adam [Mon, 10 Mar 2008 13:39:19 +0000 (14:39 +0100)]
loadparm: replace typedef struct {} global/service by struct global/struct service.

Michael
(This used to be commit ab70e781b2d4cc7f8a7f6cf95825f8412d9be2ca)

16 years agoloadparm: fix whitespaces in global and service parameter structs.
Michael Adam [Mon, 10 Mar 2008 13:23:02 +0000 (14:23 +0100)]
loadparm: fix whitespaces in global and service parameter structs.

Michael
(This used to be commit 10ab0681e60e3b91958639a2b0ad359440076c4a)

16 years agoloadparm: fix spacing in parm_table (training spaces and empty lines).
Michael Adam [Mon, 10 Mar 2008 13:10:58 +0000 (14:10 +0100)]
loadparm: fix spacing in parm_table (training spaces and empty lines).

Michael
(This used to be commit 91aab823fc6ec4c38e3461aae57bec0c6a567150)