ira/wip.git
13 years agoFix winbind NETLOGON cred chain on a samba dc for w2k8 trusts.
Günther Deschner [Wed, 26 Mar 2008 20:08:53 +0000 (21:08 +0100)]
Fix winbind NETLOGON cred chain on a samba dc for w2k8 trusts.

Guenther
(This used to be commit 2586dc34e0f72204749f5bf10c8135cd3a753a42)

13 years agoRe-run make idl.
Günther Deschner [Wed, 26 Mar 2008 18:27:18 +0000 (19:27 +0100)]
Re-run make idl.

Guenther
(This used to be commit 9024aecdbf5d4df9996625f0cc8ce8a5ecdd247e)

13 years agoFix IDL for netr_NETLOGON_INFO_2.
Günther Deschner [Wed, 26 Mar 2008 18:25:54 +0000 (19:25 +0100)]
Fix IDL for netr_NETLOGON_INFO_2.

W2k8 generated NT_STATUS_ARRAY_BOUNDS_EXCEEDED errors while validating trusts.

Guenther
(This used to be commit 5d0aa3bbf8e56f5d2a1ab4d037d7fd146b095f9d)

13 years agoFix _netr_LogonControl2(). Return talloced dcname.
Günther Deschner [Wed, 26 Mar 2008 18:18:08 +0000 (19:18 +0100)]
Fix _netr_LogonControl2(). Return talloced dcname.

Guenther
(This used to be commit 42971b71acec9c9fd94011c06d41702dac6b4f87)

13 years agoAdd ntsvcs_getdevregprop command to rpcclient.
Günther Deschner [Mon, 18 Feb 2008 01:40:55 +0000 (02:40 +0100)]
Add ntsvcs_getdevregprop command to rpcclient.

Guenther
(This used to be commit 4abe30fdae511422dccd04d0287d962192beadcb)

13 years agonet_conf: reformat - re-indent one function call.
Michael Adam [Wed, 26 Mar 2008 13:46:43 +0000 (14:46 +0100)]
net_conf: reformat - re-indent one function call.

Michael
(This used to be commit 9ef9d4c4e77523d7f3cc5fdac199559896e585bd)

13 years agonet_conf: add casts to avoid compiler warnings.
Michael Adam [Wed, 26 Mar 2008 13:45:34 +0000 (14:45 +0100)]
net_conf: add casts to avoid compiler warnings.

Michael
(This used to be commit 1c6b9a0ac34c4a7b4e000300db8dffdbb09fe7da)

13 years agonet_conf: rename "ctx" to "mem_ctx" for clarity.
Michael Adam [Wed, 26 Mar 2008 13:39:02 +0000 (14:39 +0100)]
net_conf: rename "ctx" to "mem_ctx" for clarity.

There are also smbconf contexts arount...

Michael
(This used to be commit 5171df66eb54c9819b3b40045755f5e9b2cf36c2)

13 years agonet_conf: use talloc_stackframe() instead of talloc_init().
Michael Adam [Wed, 26 Mar 2008 13:34:21 +0000 (14:34 +0100)]
net_conf: use talloc_stackframe() instead of talloc_init().

Michael
(This used to be commit ab4fd03705c61114742d8438dece69b9c37c3b38)

13 years agonet_conf: fix import function by using the new text backend of smbconf.
Michael Adam [Wed, 26 Mar 2008 13:33:22 +0000 (14:33 +0100)]
net_conf: fix import function by using the new text backend of smbconf.

Originally, lp_load() was used to import files to registry.
This had several bugs. Most notably, options explicitly set to
default values were silently dropped, and all parametric options
were ignored.

This new implementation reads config from the text backend and
stuffs everything verbatim in to the registry backend.

Michael
(This used to be commit e41c6650f805eaf8bb009e34468dd2d311e52858)

13 years agolibsmbconf: add a text backend to libsmbconf based on the params.c parser.
Michael Adam [Wed, 26 Mar 2008 13:30:36 +0000 (14:30 +0100)]
libsmbconf: add a text backend to libsmbconf based on the params.c parser.

This is a simple implementation of text backend for libsmbconf.
It is read only. It uses the parser from params.c. It loads the
given config file and holds the parsed lists of strings in memory.
Config is only re-read if the time stamp of the config file has changed.
Brilliant performance on large files is not to be expected since the
string lists are not hashed. This might be added in the future.

Michael
(This used to be commit 4ea50843852b335a9bd4c0535a5b684134ad8326)

13 years agoloadparm: add userdata parameter to do_section() and do_parameter().
Michael Adam [Tue, 25 Mar 2008 21:53:47 +0000 (22:53 +0100)]
loadparm: add userdata parameter to do_section() and do_parameter().

The userdata is currently unused. It can be used in the future for
passing a context like in samba4 code.

Michael
(This used to be commit 31b31171bd88c41443268d3300c492e2347b9e73)

13 years agoWHATSNEW: Start to add changes since 3.2.0pre2.
Karolin Seeger [Wed, 26 Mar 2008 13:02:48 +0000 (14:02 +0100)]
WHATSNEW: Start to add changes since 3.2.0pre2.

Karolin
(This used to be commit 2b18b4d02aaf5d64fbcd0d60d4da1bd4837f6220)

13 years agoStrip whitespace in ntsvcs rpc server.
Günther Deschner [Wed, 26 Mar 2008 10:45:28 +0000 (11:45 +0100)]
Strip whitespace in ntsvcs rpc server.

Guenther
(This used to be commit 0c7af8bc136f45484eab3c36b761046f88653b93)

13 years agoRe-run make idl.
Günther Deschner [Wed, 26 Mar 2008 10:35:44 +0000 (11:35 +0100)]
Re-run make idl.

Guenther
(This used to be commit f67632f9b244800007bfaef9cc2ab932fda78b3c)

13 years agoFill in IDL for PNP_GetDeviceRegProp.
Günther Deschner [Mon, 18 Feb 2008 01:37:26 +0000 (02:37 +0100)]
Fill in IDL for PNP_GetDeviceRegProp.

Guenther
(This used to be commit b1b6e93aa1f1b6d80969b6e5dd8f723e21ae8ce8)

13 years agoComment out some svcctl headers which are now defined in IDL.
Günther Deschner [Wed, 26 Mar 2008 10:32:12 +0000 (11:32 +0100)]
Comment out some svcctl headers which are now defined in IDL.

Guenther
(This used to be commit 2201a8118c6abae3425dd5728af129bb8f71b564)

13 years agoRe-run make idl.
Günther Deschner [Wed, 26 Mar 2008 10:36:41 +0000 (11:36 +0100)]
Re-run make idl.

Guenther
(This used to be commit 0d8181dab75887231a168f910203e53ec54fa4eb)

13 years agoAdd svcctl_MgrAccessMask and svcctl_ServiceAccessMask.
Günther Deschner [Tue, 25 Mar 2008 18:07:48 +0000 (19:07 +0100)]
Add svcctl_MgrAccessMask and svcctl_ServiceAccessMask.

Guenther
(This used to be commit eeb7c7d9d0c9f7ac171641bc8cafe20db704fdc4)

13 years agosmbconf: reformat - fix intentation.
Michael Adam [Wed, 26 Mar 2008 09:55:26 +0000 (10:55 +0100)]
smbconf: reformat - fix intentation.

This time this won't make me stumble, since there is no
magic in indented function headers here - no automatic
prototype generation... :-)

Michael
(This used to be commit 6d72fc4373adff01cf6e0e18f78082d1eab90064)

13 years agoutil_tdb: remove trivial and unused tdb_wipe().
Michael Adam [Wed, 26 Mar 2008 10:13:47 +0000 (11:13 +0100)]
util_tdb: remove trivial and unused tdb_wipe().

It has been replaced by tdb_wipe_all().

Michael
(This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)

13 years agouse tdb_wipe_all() instead of tdb_wipe() - it is faster...
Michael Adam [Wed, 26 Mar 2008 09:50:08 +0000 (10:50 +0100)]
use tdb_wipe_all() instead of tdb_wipe() - it is faster...

Michael
(This used to be commit 3d2fdcd50fdbfb66a14360516836445d47eceeb0)

13 years agoutil_tdb: make the _byblob fetch/store functions public again.
Michael Adam [Wed, 26 Mar 2008 09:45:53 +0000 (10:45 +0100)]
util_tdb: make the _byblob fetch/store functions public again.

Users of these are currently being written...

Michael
(This used to be commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)

13 years agoFix wbcAuthenticateUserEx().
Günther Deschner [Wed, 26 Mar 2008 00:27:36 +0000 (01:27 +0100)]
Fix wbcAuthenticateUserEx().

Guenther
(This used to be commit 79f7a519f8f61a31d84467c5b5975cae13db1c29)

13 years agoAdd debug statement in auth_winbind to display wbcAuthenticateUserEx error code.
Günther Deschner [Wed, 26 Mar 2008 00:25:57 +0000 (01:25 +0100)]
Add debug statement in auth_winbind to display wbcAuthenticateUserEx error code.

Guenther
(This used to be commit 0ad00a452f03d8af6e6b6fabd4a05ca26a9910d0)

13 years agoFix a valgrind error
Volker Lendecke [Tue, 25 Mar 2008 21:35:20 +0000 (22:35 +0100)]
Fix a valgrind error

In winbind, we're using the info3 struct to send it to the winbind client after
netsamlogon_cache_store. Without this info3->base.account_name.string was
prematurely freed.
(This used to be commit aa4377561b691e2c5108c18aeb34fff39d8775df)

13 years agoFix a segfault
Volker Lendecke [Tue, 25 Mar 2008 21:21:50 +0000 (22:21 +0100)]
Fix a segfault

When we get a NT_STATUS_WRONG_PASSWORD for example, my_info3 is not initialized
at all. So first check that we have NT_STATUS_IS_OK(status) before we
dereference my_info3.
(This used to be commit 559cd9e5a7fac3ce3769d457132cdcb28569b93d)

13 years agoFix typo
Volker Lendecke [Tue, 25 Mar 2008 20:35:41 +0000 (21:35 +0100)]
Fix typo
(This used to be commit 38683a73013865695e1b04f5f6a974bd0c5c1cac)

13 years agoRe-run make idl (after pidl change for adding header info to cli_ functions).
Günther Deschner [Tue, 25 Mar 2008 16:52:33 +0000 (17:52 +0100)]
Re-run make idl (after pidl change for adding header info to cli_ functions).

Guenther
(This used to be commit 492c26a9367d93802d3b6a9271dde16c49fffe69)

13 years agoutil_tdb: add my (C) for the tdb validation code
Michael Adam [Tue, 25 Mar 2008 14:55:03 +0000 (15:55 +0100)]
util_tdb: add my (C) for the tdb validation code

Michael
(This used to be commit abf02a5a142c55d9e0053d319c867e4fcc3e6c30)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)