samba.git
16 years agoutil_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().
Michael Adam [Tue, 25 Mar 2008 13:18:08 +0000 (14:18 +0100)]
util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().

Replace all callers of traverse with this tdb_traverse_delete_fn() and
don't export tdb_traverse_delete_fn() anymore.

Michael
(This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)

16 years agoutil_tdb: add the tdb_pack_append() prototype to util_tdb.h
Michael Adam [Tue, 25 Mar 2008 12:53:31 +0000 (13:53 +0100)]
util_tdb: add the tdb_pack_append() prototype to util_tdb.h

This function is currently not used but seems useful.

Michael
(This used to be commit 48149a954c1e737c9863cfa0991ab9bfc246c6da)

16 years agoutil_tdb: make the _byblob functions static - not currently used elsewhere.
Michael Adam [Tue, 25 Mar 2008 12:52:32 +0000 (13:52 +0100)]
util_tdb: make the _byblob functions static - not currently used elsewhere.

Michael
(This used to be commit b42cf3fc69414270be9d0f430f2e95a72894f00e)

16 years agoutil_tdb: group prototypes in util_tdb.h thematically
Michael Adam [Tue, 25 Mar 2008 12:41:51 +0000 (13:41 +0100)]
util_tdb: group prototypes in util_tdb.h thematically

Michael
(This used to be commit 4b9231d33eaea2ada5d67cc1d959df2b671e7bb9)

16 years agobuild: don't autogenerate prototypes for util_tdb and dbwrap anymore.
Michael Adam [Tue, 25 Mar 2008 11:54:14 +0000 (12:54 +0100)]
build: don't autogenerate prototypes for util_tdb and dbwrap anymore.

Stick to hand-written headers (that are there anyways).
Add some missing prototypes to util_tdb.h and dbwrap.h.

I did not bother to add a header for each single dbwrap backend
open function but put the prototypes for the open functions into
the central dbwrap.h.

Michael
(This used to be commit edf4dbed27a3c63c04e8110e75cdb76e31627eb6)

16 years agoFix usage message for 'net idmap dump'.
Karolin Seeger [Tue, 25 Mar 2008 11:00:42 +0000 (12:00 +0100)]
Fix usage message for 'net idmap dump'.

Karolin
(This used to be commit c967b62dd3c924419fa4a72aa2143d6bef959d18)

16 years agoFix _winreg_QueryValue().
Günther Deschner [Tue, 25 Mar 2008 09:11:47 +0000 (10:11 +0100)]
Fix _winreg_QueryValue().

Guenther
(This used to be commit b217dd674e22b6a7cc492f1a84a37ddc4ddca663)

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

Guenther
(This used to be commit 1570e1c597b43d83318860590b58e32143275f82)

16 years agoFix IDL for winreg_QueryValue.
Günther Deschner [Mon, 24 Mar 2008 10:46:51 +0000 (11:46 +0100)]
Fix IDL for winreg_QueryValue.

Guenther
(This used to be commit 0dac766109a0f76fd27832f5344460f1afdb2046)

16 years agoIgnore port when pulling IP addr from struct sockaddr_storage.
Gerald (Jerry) Carter [Mon, 24 Mar 2008 19:48:29 +0000 (14:48 -0500)]
Ignore port when pulling IP addr from struct sockaddr_storage.

Linux man page states that getaddinfo() will leave the port
uninitialized when passing in NULL for the service name.  So we
can't really trust that anymore.  I doubt non-default KDC ports
are an issues so just drop the port from the generated krb5.conf.
AIX exhibits this bug the most.
(This used to be commit 36f8bafbd3dee66a869aa26cfc2eb4aa62019325)

16 years agoFix libtdb some to move back towards allowing out of tree builds
Gerald (Jerry) Carter [Mon, 24 Mar 2008 19:27:01 +0000 (14:27 -0500)]
Fix libtdb some to move back towards allowing out of tree builds

Remaining problem is that not all *.syms linker scripts are generated
so the LD command needs to look in a single place.  Out of tree
builds now work but report write access to the source tree in order
to create the $(srcdir)/expotrs/libtdb.sysms file.
(This used to be commit 6e9287c5c3a6bbd15ec495593978c1a76e64ee60)

16 years agoMissing HAVE_UPDWTMPX check before using updwtmpx().
Eric Cronin [Mon, 24 Mar 2008 19:33:04 +0000 (12:33 -0700)]
Missing HAVE_UPDWTMPX check before using updwtmpx().

In 10.5 Mac OS X added enough utmpx support to make it past the
first two preprocessor checks around line 390 of src/smbd/utmp.c
and on to the utmpx block which uses updwtmpx().  Unfortunately,
as ./configure correctly surmised, 10.5 doesn't have that.

https://bugzilla.samba.org/show_bug.cgi?id=5184
(This used to be commit f19d1e3d93d0d9dfe80372c6c5635f1047f9aa88)

16 years agoFix Coverity ID 514
Volker Lendecke [Sun, 23 Mar 2008 18:43:36 +0000 (19:43 +0100)]
Fix Coverity ID 514

Not exactly an uninitialized variable, but having Coverity figure out that
we're only UNMARSHALLING here is probably asking for a bit too much.
(This used to be commit 07a9f7daa83c94afefe0d81db4812135121862c2)

16 years agoFix Coverity ID 504
Volker Lendecke [Sun, 23 Mar 2008 18:38:50 +0000 (19:38 +0100)]
Fix Coverity ID 504
(This used to be commit 4e6f8a19a6861c332ee6e9b49551e12440eefdc2)

16 years agoFix Coverity ID 503
Volker Lendecke [Sun, 23 Mar 2008 18:38:02 +0000 (19:38 +0100)]
Fix Coverity ID 503
(This used to be commit 5c43c38271bae7d96d0cfbdaba7bff838a684b40)

16 years agoFix Coverity ID 488
Volker Lendecke [Sun, 23 Mar 2008 18:30:47 +0000 (19:30 +0100)]
Fix Coverity ID 488

"status" was used uninitialized on success -- metze, please check
(This used to be commit a0859529c853ffb756b1deee946923b6fff6136e)

16 years agoFix Coverity ID 487
Volker Lendecke [Sun, 23 Mar 2008 18:26:35 +0000 (19:26 +0100)]
Fix Coverity ID 487
(This used to be commit 22cee9c1afbc33b4920b72bc81569d79642172af)

16 years agoFix Coverity ID 471
Volker Lendecke [Sun, 23 Mar 2008 17:10:28 +0000 (18:10 +0100)]
Fix Coverity ID 471
(This used to be commit d3b6df67fea0da5ffa962837400ebe07b34a5384)

16 years agoFix Coverity ID 472
Volker Lendecke [Sun, 23 Mar 2008 17:08:13 +0000 (18:08 +0100)]
Fix Coverity ID 472

Simo, S4 also has this code. You might want to cherry-pick.

Volker
(This used to be commit 94c29f55937e50dcf49124d28ad4e82c7fb4133e)

16 years agoFix Coverity ID 477
Volker Lendecke [Sun, 23 Mar 2008 16:58:26 +0000 (17:58 +0100)]
Fix Coverity ID 477
(This used to be commit f17b1b0fc6340d21f1a2f43aa7eb2e87f851c51f)

16 years agoFix Coverity ID 478
Volker Lendecke [Sun, 23 Mar 2008 16:57:01 +0000 (17:57 +0100)]
Fix Coverity ID 478
(This used to be commit 5f77938dc4a280b654b8d08656f19a7d04cea8c7)

16 years agoFix Coverity ID 479
Volker Lendecke [Sun, 23 Mar 2008 16:54:48 +0000 (17:54 +0100)]
Fix Coverity ID 479
(This used to be commit 70b33397ba6e18f40087fb642a1be62ee68d5f3a)

16 years agoFix Coverity ID 480
Volker Lendecke [Sun, 23 Mar 2008 16:53:05 +0000 (17:53 +0100)]
Fix Coverity ID 480
(This used to be commit 45677e8694f0e383baa65712faec6a565ec0ce5c)

16 years agoFix Coverity ID 450
Volker Lendecke [Sun, 23 Mar 2008 16:50:55 +0000 (17:50 +0100)]
Fix Coverity ID 450
(This used to be commit 700cceb6940c95997cfef374cffd50729a35528a)

16 years agoFix Coverity ID 453
Volker Lendecke [Sun, 23 Mar 2008 16:49:04 +0000 (17:49 +0100)]
Fix Coverity ID 453
(This used to be commit 8f875674e7cf9ebd405561b1e3ab72b0284ce321)

16 years agoFix Coverity ID 462
Volker Lendecke [Sun, 23 Mar 2008 16:32:46 +0000 (17:32 +0100)]
Fix Coverity ID 462
(This used to be commit 9cf1e16a9c3cade9cd905f719de07578b3a91b1e)

16 years agoFix Coverity ID 432
Volker Lendecke [Sun, 23 Mar 2008 14:58:09 +0000 (15:58 +0100)]
Fix Coverity ID 432
(This used to be commit 7070c77ee2a9c3c9ff1b3c7b93008b13b80ac02b)

16 years agoFix Coverity ID 436
Volker Lendecke [Sun, 23 Mar 2008 14:56:41 +0000 (15:56 +0100)]
Fix Coverity ID 436
(This used to be commit 9e0ee1ad4fe0f0e7dec0b6824ef234147d845b8d)

16 years agoFix Coverity warnings
Volker Lendecke [Sun, 23 Mar 2008 14:51:52 +0000 (15:51 +0100)]
Fix Coverity warnings

ID 449, 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 438, 437
(This used to be commit 0d50b4ee9068d04d1d9eb7786e08775d7ba16bc8)

16 years agoVERSION: Update pre release number.
Karolin Seeger [Sun, 23 Mar 2008 06:28:13 +0000 (07:28 +0100)]
VERSION: Update pre release number.

Karolin
(This used to be commit 4e609ffb2f9983362f817c1346e0a4116d2dd74a)

16 years agolibgpo: open the registry in gp_init_reg_ctx().
Michael Adam [Sat, 22 Mar 2008 01:45:04 +0000 (02:45 +0100)]
libgpo: open the registry in gp_init_reg_ctx().

I forgot the regdb_open() call: registry_init_basic() closes
the registry in the end... sorry.

Michael
(This used to be commit 4185ed03a3879ab708b004ef87b9ffaa6a9e6f3d)

16 years agolibgpo: replace hand-crafted registry initialization by registry_init_basic.
Michael Adam [Sat, 22 Mar 2008 01:29:02 +0000 (02:29 +0100)]
libgpo: replace hand-crafted registry initialization by registry_init_basic.

IMO there is no need to imitate a custom registry backend.
Only default regdb hooks are used here, so a plain initialization
of regdb should suffice.

This way, only reg_api is used in libgpo, and no registry
backend code is visible.

Michael
(This used to be commit 10ae8accb486956ebb1638cee540868a11623b11)

16 years agolibgpo: use reg_setkeysecurity() instead of regdb_set_secdesc().
Michael Adam [Sat, 22 Mar 2008 01:22:54 +0000 (02:22 +0100)]
libgpo: use reg_setkeysecurity() instead of regdb_set_secdesc().

That is, use the reg_api function instead of the backend function.
For this, code had to be changed, to take a "struct registry_key"
instead of a char *.

Michael
(This used to be commit 4717e6d0cf9df53a55e5d55ede5480181b33920d)

16 years agoregistry: add reg_init_basic() - init registry with only the db backend.
Michael Adam [Sat, 22 Mar 2008 01:05:53 +0000 (02:05 +0100)]
registry: add reg_init_basic() - init registry with only the db backend.

Michael
(This used to be commit 1831042bdcbfe569ae39177058dfe1d914416513)

16 years agoregistry: close registry in exit path in registry_init_smbconf().
Michael Adam [Sat, 22 Mar 2008 00:54:18 +0000 (01:54 +0100)]
registry: close registry in exit path in registry_init_smbconf().

Michael
(This used to be commit 5aa3141bff35a85dd97e9fd339e19b0fe3a73afc)

16 years agoregistry: some whitespace cleanup in init_registry().
Michael Adam [Sat, 22 Mar 2008 00:53:44 +0000 (01:53 +0100)]
registry: some whitespace cleanup in init_registry().

Michael
(This used to be commit f33095e44ba22f4451a5deeffdd4f9ed3f99ed85)

16 years agoregistry: remove unneeded talloc stackframe variable.
Michael Adam [Sat, 22 Mar 2008 00:52:03 +0000 (01:52 +0100)]
registry: remove unneeded talloc stackframe variable.

Michael
(This used to be commit 81993db828bf11b13d7ee1f43483968dc6241bcc)

16 years agoregistry: close regdb in error path (and use it) in init_registry().
Michael Adam [Sat, 22 Mar 2008 00:49:21 +0000 (01:49 +0100)]
registry: close regdb in error path (and use it) in init_registry().

Michael
(This used to be commit 73b325fe7a9d7fd67ac9b99144a3776f5a1a9e15)

16 years agoregistry: fix registry_init_smbconf() to close the registry at the end.
Michael Adam [Fri, 21 Mar 2008 22:50:49 +0000 (23:50 +0100)]
registry: fix registry_init_smbconf() to close the registry at the end.

Michael
(This used to be commit f4d87fdbf266a36fbb50dae863ee0784165c2fe1)

16 years agolibsmbconf: add internal open/close handling to registry backend.
Michael Adam [Fri, 21 Mar 2008 22:39:01 +0000 (23:39 +0100)]
libsmbconf: add internal open/close handling to registry backend.

This internally keeps track of opened registry in the private data
struct. The first call that really accesses data, opens the registry
and it is kept open until the destructor is called.

This behaviour might be changed in the future.

Michael
(This used to be commit 03e72e13076e3215eb8ae51cfb4e7cd3d3683d3e)

16 years agolibsmbconf: add a comment.
Michael Adam [Fri, 21 Mar 2008 21:55:20 +0000 (22:55 +0100)]
libsmbconf: add a comment.

Michael
(This used to be commit 513ae78ef78d3ddcb155f9c38b9a0c82809e0998)

16 years agolibsmbconf: add private_data section to smbconf_ctx.
Michael Adam [Fri, 21 Mar 2008 21:52:27 +0000 (22:52 +0100)]
libsmbconf: add private_data section to smbconf_ctx.

This private data should be used by backends.
The token for the registry backend is moved from
the context to the private data section, since
this is registry specific.

Michael
(This used to be commit a02163356bdd0c17a25a45e9904f8bd1e1c4bee4)

16 years agolibsmbconf: add a "path" variable to the conf context.
Michael Adam [Fri, 21 Mar 2008 16:55:31 +0000 (17:55 +0100)]
libsmbconf: add a "path" variable to the conf context.

This is passed to the module init routines.
In case of the registry, this is the path of the
basekey in registry, that is to be used, defaulting
to KEY_SMBCONF (HKLM\software\samba\smbconf), when
NULL is given. This is the only case currently used.

In order to support other keys, registry initialization
for smbconf has to be changed to support different keys.

Michael
(This used to be commit 96434d9dc7a66773e313cc128af57493dee245a1)

16 years agolibsmbconf: add structuring comments to the prototypes in the public header.
Michael Adam [Fri, 21 Mar 2008 15:45:25 +0000 (16:45 +0100)]
libsmbconf: add structuring comments to the prototypes in the public header.

Michael
(This used to be commit 4f816df27670c3b6aabea9f26ef2d26f3e882e78)

16 years agolibsmbconf: adapt a comment to new circumstances
Michael Adam [Fri, 21 Mar 2008 15:42:42 +0000 (16:42 +0100)]
libsmbconf: adapt a comment to new circumstances

Michael
(This used to be commit 83b9453c88bfdf615cc2b547645b0a71a870f473)

16 years agolibsmbconf: group together functions in smbconf.c more appropriately
Michael Adam [Fri, 21 Mar 2008 15:40:20 +0000 (16:40 +0100)]
libsmbconf: group together functions in smbconf.c more appropriately

Michael
(This used to be commit e8ed8ad077f69ae7237f49b150625d20eb509586)

16 years agolibsmbconf: add a comment.
Michael Adam [Fri, 21 Mar 2008 15:35:52 +0000 (16:35 +0100)]
libsmbconf: add a comment.

Michael
(This used to be commit 8974b283683799bc51223d27b7e6aecac741fbc2)

16 years agolibsmbconf: move registry implementation to a module of its own.
Michael Adam [Fri, 21 Mar 2008 15:26:50 +0000 (16:26 +0100)]
libsmbconf: move registry implementation to a module of its own.

Michael
(This used to be commit 431b10bfe0dba0a49e50bebfb3f8ad1a00955837)

16 years agoOn Solaris, size_t seems to be only 32 bit.
Volker Lendecke [Fri, 21 Mar 2008 12:39:48 +0000 (13:39 +0100)]
On Solaris, size_t seems to be only 32 bit.

Fix bug 5341, thanks a lot to Karoly Vegh for testing it!

Volker
(This used to be commit 19eb8c9316b10b1277121e90d0d3ef50ee562118)

16 years agoFix Coverity ID 473
Volker Lendecke [Fri, 21 Mar 2008 10:52:34 +0000 (11:52 +0100)]
Fix Coverity ID 473

Simo, S4 also has this bug, you might want to merge the fix.
(This used to be commit b82cf75c825298444781697072d83a163c43df4b)

16 years agoFix Coverity ID 506
Volker Lendecke [Fri, 21 Mar 2008 10:48:09 +0000 (11:48 +0100)]
Fix Coverity ID 506
(This used to be commit c9add4d59a1615aabc565e323cb19cf7ef4b6b64)

16 years agoFix Coverity ID 507
Volker Lendecke [Fri, 21 Mar 2008 10:45:57 +0000 (11:45 +0100)]
Fix Coverity ID 507
(This used to be commit 4ea5798b97497359b09d97c27c2005750a6cbddd)

16 years agoFix Coverity ID 537
Volker Lendecke [Fri, 21 Mar 2008 10:42:42 +0000 (11:42 +0100)]
Fix Coverity ID 537
(This used to be commit b19ea3635ccc1f2c7cd6c7f2d179264fbdce13a7)

16 years agoFix Coverity ID 538
Volker Lendecke [Fri, 21 Mar 2008 10:41:15 +0000 (11:41 +0100)]
Fix Coverity ID 538
(This used to be commit d69b8b19aeac2266fb5e5ee280ffffe48a690099)

16 years agoFix Coverity ID 547
Volker Lendecke [Fri, 21 Mar 2008 09:40:40 +0000 (10:40 +0100)]
Fix Coverity ID 547

Günther, please check. If r->in.ads==NULL, we can't call ads_leave_realm at
all.

Thanks,

Volker
(This used to be commit 120d8c889fa9ad61c74f1f936e83537513454648)

16 years agoFix Coverity ID 548
Volker Lendecke [Fri, 21 Mar 2008 09:28:33 +0000 (10:28 +0100)]
Fix Coverity ID 548

Günther, please check -- in all infolevels we do a comment=talloc_strdup

Thanks,

Volker
(This used to be commit e2021c5b5710768968ae724220eb1e3f47c9e639)

16 years agoFix Coverity IDs 553, 552
Volker Lendecke [Fri, 21 Mar 2008 09:20:53 +0000 (10:20 +0100)]
Fix Coverity IDs 553, 552
(This used to be commit 1a0aed566b7e4fc75bf894aac6828bfa4152c3dc)

16 years agoAdd my copyright.
Günther Deschner [Fri, 21 Mar 2008 03:13:49 +0000 (04:13 +0100)]
Add my copyright.

Guenther
(This used to be commit 4689057f63599ebaf9ce658ca3b3168b2bbe531f)

16 years agoRemove remaining old srvsvc client and server rpc code entirely.
Günther Deschner [Fri, 21 Mar 2008 03:12:52 +0000 (04:12 +0100)]
Remove remaining old srvsvc client and server rpc code entirely.

Guenther
(This used to be commit a5f0186f70abe8dba650265219e69ce5ca2fb642)

16 years agoRemove double RPC_PARSE_OBJ2 from Makefile.
Günther Deschner [Fri, 21 Mar 2008 02:59:02 +0000 (03:59 +0100)]
Remove double RPC_PARSE_OBJ2 from Makefile.

Guenther
(This used to be commit 0244734cc5c682a73f84e2fe0a52a15090063d93)

16 years agoMove MAX.*ENTRY definitions out of old rpc srvsvc parsing code.
Günther Deschner [Fri, 21 Mar 2008 02:56:54 +0000 (03:56 +0100)]
Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.

Guenther
(This used to be commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)

16 years agoRemove unused marshalling for SRV_NET_SESS_ENUM.
Günther Deschner [Fri, 21 Mar 2008 02:53:18 +0000 (03:53 +0100)]
Remove unused marshalling for SRV_NET_SESS_ENUM.

Guenther
(This used to be commit 54554683d63575cfdfa24f89952737ccf7ae5bc0)

16 years agoUse pidl for _srvsvc_NetSessEnum().
Günther Deschner [Fri, 21 Mar 2008 02:51:37 +0000 (03:51 +0100)]
Use pidl for _srvsvc_NetSessEnum().

Guenther
(This used to be commit 5d14938b14f8e59608771b1899fd473d63f3bde1)

16 years agoAdd support for setting resume handle in netsessenum rpcclient command.
Günther Deschner [Fri, 21 Mar 2008 02:50:49 +0000 (03:50 +0100)]
Add support for setting resume handle in netsessenum rpcclient command.

Guenther
(This used to be commit a01588d65f67ac23a5a2a741bb0419830e42868c)

16 years agoRemove unused marshalling for SRV_NET_CONN_ENUM.
Günther Deschner [Fri, 21 Mar 2008 01:01:58 +0000 (02:01 +0100)]
Remove unused marshalling for SRV_NET_CONN_ENUM.

Guenther
(This used to be commit 51467443f70a53c3290f26f94cdaf8a64f58c2af)

16 years agoUse pidl for _srvsvc_NetConnEnum().
Günther Deschner [Fri, 21 Mar 2008 00:58:43 +0000 (01:58 +0100)]
Use pidl for _srvsvc_NetConnEnum().

Guenther
(This used to be commit b8714e03e70070b5dfb1a0b15b191dfac0634c44)

16 years agoAllow to set or unset resume_handle in netconnenum in rpcclient.
Günther Deschner [Fri, 21 Mar 2008 00:14:23 +0000 (01:14 +0100)]
Allow to set or unset resume_handle in netconnenum in rpcclient.

Guenther
(This used to be commit f1b93c24fea0441deb5319f6fc4df0373d0dc939)

16 years agolibsmbconf: reformaat - fix some whispacing/tabs
Michael Adam [Fri, 21 Mar 2008 01:29:09 +0000 (02:29 +0100)]
libsmbconf: reformaat - fix some whispacing/tabs

Michael
(This used to be commit 1a5e5bf38f409b10c8b1da6227722c7d3976b175)

16 years agolibsmbconf: add backend specific init function.
Michael Adam [Fri, 21 Mar 2008 01:20:16 +0000 (02:20 +0100)]
libsmbconf: add backend specific init function.

Hide generic init function taking smbconf_ops argument
from public api.

Michael
(This used to be commit b3f6920ccb9a27fde26e889a7f1f3afaf56b784f)

16 years agolibsmbconf: add shutdown handler to smbconf_ops.
Michael Adam [Fri, 21 Mar 2008 01:01:55 +0000 (02:01 +0100)]
libsmbconf: add shutdown handler to smbconf_ops.

Michael
(This used to be commit acbd1f40e0cb4cb5b2ba826c4825edda7ee4937b)

16 years agolibsmbconf: fix comments
Michael Adam [Fri, 21 Mar 2008 00:15:20 +0000 (01:15 +0100)]
libsmbconf: fix comments

Michael
(This used to be commit 24f32d9bd9aa837d777ea4187bebf3146a67ce59)

16 years agolibsmbconf: rename smbconf_close() to smbconf_shutdown().
Michael Adam [Fri, 21 Mar 2008 00:04:57 +0000 (01:04 +0100)]
libsmbconf: rename smbconf_close() to smbconf_shutdown().

Michael
(This used to be commit 797b26ad3fad27e085827efb61f6b4d8b37e93f0)

16 years agolibsmbconf: rename smbconf_open() to smbconf_init().
Michael Adam [Thu, 20 Mar 2008 22:41:39 +0000 (23:41 +0100)]
libsmbconf: rename smbconf_open() to smbconf_init().

That's more appropriate.

Michael
(This used to be commit d7bd9bb8aa2003ec0a9860df26857f67255febe2)

16 years agolibsmbconf: add open and close operations to the smbconf_ops.
Michael Adam [Thu, 20 Mar 2008 17:40:09 +0000 (18:40 +0100)]
libsmbconf: add open and close operations to the smbconf_ops.

Note: currently, reg_init_smbconf opens the registry, but does
not close it. This has to be changed. so that it is closed.
And then libsmbconf will need these open/close functions

Michael
(This used to be commit 77dbdf82efa60c8a7c00e489c198775b2f66e56c)

16 years agolibsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.
Michael Adam [Thu, 20 Mar 2008 11:28:41 +0000 (12:28 +0100)]
libsmbconf: introduce a smbconf_ops layer to allow interchangeable backends.

Michael
(This used to be commit a857f643d1558c0fdab4b647695d75223b730b96)

16 years agolibsmbconf: move smbconf_reg_initialize() down to the smbconf operations.
Michael Adam [Thu, 20 Mar 2008 11:25:44 +0000 (12:25 +0100)]
libsmbconf: move smbconf_reg_initialize() down to the smbconf operations.

Michael
(This used to be commit f2d605006cd1187f70a044c3356d436e91093d5f)

16 years agolibsmbconf: add existence check for service to smbconf_delete_share().
Michael Adam [Thu, 20 Mar 2008 10:54:30 +0000 (11:54 +0100)]
libsmbconf: add existence check for service to smbconf_delete_share().

Michael
(This used to be commit d44c2ef0b7d7bddb4115b596872748132ebd6ddc)

16 years agolibsmbconf: add existence check for service to smbconf_get_share().
Michael Adam [Thu, 20 Mar 2008 10:53:40 +0000 (11:53 +0100)]
libsmbconf: add existence check for service to smbconf_get_share().

Michael
(This used to be commit 26208d3e96a1e257628366709a1d71ac36f0788b)

16 years agolibsmbconf: add check for NULL servicename to smbconf_share_exists().
Michael Adam [Thu, 20 Mar 2008 10:52:13 +0000 (11:52 +0100)]
libsmbconf: add check for NULL servicename to smbconf_share_exists().

Michael
(This used to be commit 5dac66c82af8c87df723092a9309304846684418)

16 years agolibsmbconf: fix a comment
Michael Adam [Thu, 20 Mar 2008 10:50:06 +0000 (11:50 +0100)]
libsmbconf: fix a comment
(This used to be commit 103a37ac8e85e9a7b8c2f4eb33e6f1cdbe01d31c)

16 years agolibsmbconf: refactor out registry implementation of smbconf operations.
Michael Adam [Thu, 20 Mar 2008 10:49:26 +0000 (11:49 +0100)]
libsmbconf: refactor out registry implementation of smbconf operations.

This leaves most of the api functions mere wrappers except for some
common initial checks.

Michael
(This used to be commit 9448a7a298e9ed035aa6b86df18f2d41081731cc)

16 years agolibsmbconf: refactor autocreation of [global] into a helper function.
Michael Adam [Thu, 20 Mar 2008 09:43:17 +0000 (10:43 +0100)]
libsmbconf: refactor autocreation of [global] into a helper function.

Michael
(This used to be commit aeaf66c064de58c6f19d5a9d226843dedb552011)

16 years agolibsmbconf: put the smbconf context struct into a private header.
Michael Adam [Wed, 19 Mar 2008 11:37:17 +0000 (12:37 +0100)]
libsmbconf: put the smbconf context struct into a private header.

Michael
(This used to be commit a99ee5e536eee1563c90e5d7f251bfe9f5d1ffbb)

16 years agolibsmbconf: change the API to always take the smbconf_ctx parameter first.
Michael Adam [Wed, 19 Mar 2008 09:47:23 +0000 (10:47 +0100)]
libsmbconf: change the API to always take the smbconf_ctx parameter first.

..for consistency. Exception: the open/init function, where the smbconf_ctx
is created from the given talloc context.

Michael
(This used to be commit 304dba6cb2184437f3edad065a530d03fb704036)

16 years agolibsmbconf: fix indentation.
Michael Adam [Wed, 19 Mar 2008 09:15:16 +0000 (10:15 +0100)]
libsmbconf: fix indentation.

Michael
(This used to be commit 7460697ea42764f5f658a4f7f70872a56aeb160d)

16 years agolibsmbconf: change smbconf_get_seqnum() to smbconf_changed().
Michael Adam [Tue, 18 Mar 2008 22:29:11 +0000 (23:29 +0100)]
libsmbconf: change smbconf_get_seqnum() to smbconf_changed().

The former seqnum is hidden inside a struct smbconf_csn.
And the get_seqnum is united with a changed function that
stores the seqnum inside the given csn.

Michael
(This used to be commit 5b6b90900a1a3eab24cb5612d78f9678a363cf73)

16 years agolibsmbconf: fix a comment
Michael Adam [Mon, 17 Mar 2008 23:51:15 +0000 (00:51 +0100)]
libsmbconf: fix a comment

Michael
(This used to be commit e6b60f6cad32ce8bb78abb070889dde3eca2d268)

16 years agoA level 25 setuserinfo does change the pwdlastset
Volker Lendecke [Thu, 20 Mar 2008 20:58:39 +0000 (21:58 +0100)]
A level 25 setuserinfo does change the pwdlastset
(This used to be commit f65cb5d4b51e2e7b9b16b73e47cd2a8d55d5d4b0)

16 years agosmbd: fix session setup with security = share.
Michael Adam [Thu, 20 Mar 2008 15:50:52 +0000 (16:50 +0100)]
smbd: fix session setup with security = share.

Broken by pstring removal in 9ed12bfc48fe7f9b1863a9dd88e881974083053c.
Jeremy, please check.

Thanks to Yannick Bergeron <yaberger@ca.ibm.com> for noting this.

Michael
(This used to be commit 008c4bdbe5de064b4469fc1f7c7173290f35b3ef)

16 years agoFix an uninitialized variable warning
Volker Lendecke [Thu, 20 Mar 2008 15:15:38 +0000 (16:15 +0100)]
Fix an uninitialized variable warning
(This used to be commit 4cc09ec40609484c973361a0cc0f05bfaef1738e)

16 years agoPort 3c1f1f0797e from 3-0-ctdb
root [Thu, 20 Mar 2008 14:59:37 +0000 (15:59 +0100)]
Port 3c1f1f0797e from 3-0-ctdb

We need to inform ctdb about the client's TCP connection so that after a fail
over ctdbd can trigger the client to reconnect very quickly
(This used to be commit ddc989886deff173b8a2a2a753a896770efe7545)

16 years agoFix some warnings in the tsmsm module
Volker Lendecke [Thu, 20 Mar 2008 11:49:13 +0000 (12:49 +0100)]
Fix some warnings in the tsmsm module

Alexander, please check!
(This used to be commit df574fd2ee58f008b93b06f4d78c85cb909cc92c)

16 years agoloadparm: reenable checking files for updates while in registry configuration.
Michael Adam [Wed, 19 Mar 2008 14:18:06 +0000 (15:18 +0100)]
loadparm: reenable checking files for updates while in registry configuration.

This is necessary now that includes (to files) are enabled from registry.

Michael
(This used to be commit 7dc64d1021e0b8f3339f811c8c144f7013a649a8)

16 years agoloadparm: remove unneeded include.
Michael Adam [Wed, 19 Mar 2008 10:00:29 +0000 (11:00 +0100)]
loadparm: remove unneeded include.

libnet.h unneeded after separation of libsmbconf from libnet.

Michael
(This used to be commit 5c3f14e02fa7baf11d9a6531f2de3e6b16d843b0)

16 years agoregistry: use available string constant in debug statement.
Michael Adam [Thu, 20 Mar 2008 13:35:41 +0000 (14:35 +0100)]
registry: use available string constant in debug statement.

Michael
(This used to be commit 6bac03a2ec6351ab9db457d904b8925c828086e8)

16 years agoregistry: in regdb_init, not only complain about INFO/version, store it...
Michael Adam [Thu, 20 Mar 2008 13:33:43 +0000 (14:33 +0100)]
registry: in regdb_init, not only complain about INFO/version, store it...

Michael
(This used to be commit 27d67365ad03f0a0cd86011758a122a97513b82e)

16 years agoregistry: reformat regdb_init() slightly, breaking long lines.
Michael Adam [Thu, 20 Mar 2008 13:26:42 +0000 (14:26 +0100)]
registry: reformat regdb_init() slightly, breaking long lines.

Michael
(This used to be commit 11da885f1e82e7a08fac2bc0ec1515694caa6340)

16 years agoregistry: untangle assignment and if-statement in regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:24:12 +0000 (14:24 +0100)]
registry: untangle assignment and if-statement in regdb_init().

Michael
(This used to be commit 504058df9706ee4e4c2e7fb1b1e41710bce2f87d)

16 years agoregistry: separate initialization of registry data from regdb_init().
Michael Adam [Thu, 20 Mar 2008 13:08:29 +0000 (14:08 +0100)]
registry: separate initialization of registry data from regdb_init().

Leave this to the users (currently registry_init_smbconf() and
init_registry()) to initialize as much of preliminary registry data
as needed.

Michael
(This used to be commit 59fdd30c789ccfd5cff356e459f1653b065b985c)

16 years agoregistry: add a transaction wrapper to init_registry_key_internal().
Michael Adam [Thu, 20 Mar 2008 13:01:13 +0000 (14:01 +0100)]
registry: add a transaction wrapper to init_registry_key_internal().

Michael
(This used to be commit 8b9cff84d5c39e6d7c315d87ac2fdf7fc0d4e4c4)