samba.git
16 years agoAdd NetUserDel to libnetapi.
Günther Deschner [Wed, 9 Apr 2008 11:35:49 +0000 (13:35 +0200)]
Add NetUserDel to libnetapi.

Guenther
(This used to be commit 92ba18fcd0816fb85846c6e788ea4a04c71e02a8)

16 years agoRe-run make idl.
Günther Deschner [Wed, 9 Apr 2008 11:32:19 +0000 (13:32 +0200)]
Re-run make idl.

Guenther
(This used to be commit 51d0cbe3d972b5917f89cea8624bc21910116132)

16 years agoAdd NetUserDel to libnetapi IDL.
Günther Deschner [Wed, 9 Apr 2008 11:31:53 +0000 (13:31 +0200)]
Add NetUserDel to libnetapi IDL.

Guenther
(This used to be commit 8a0b6532af4ccd71f2dcc202db6e976161627372)

16 years agoAdd NetUserAdd example.
Günther Deschner [Wed, 9 Apr 2008 11:28:30 +0000 (13:28 +0200)]
Add NetUserAdd example.

Guenther
(This used to be commit 0d795606655a67d79c8c3bb2f3676ca7ee28f347)

16 years agoAdd NetUserAdd to libnetapi.
Günther Deschner [Wed, 9 Apr 2008 10:38:22 +0000 (12:38 +0200)]
Add NetUserAdd to libnetapi.

Guenther
(This used to be commit cb98996ed2ac93a0e15838048405772d2043021a)

16 years agoRe-run make idl.
Günther Deschner [Wed, 9 Apr 2008 10:36:02 +0000 (12:36 +0200)]
Re-run make idl.

Guenther
(This used to be commit 0d84f0d48559d8bed91bcb478d8be0bb3b96acac)

16 years agoAdd NetUserAdd to libnetapi IDL.
Günther Deschner [Wed, 9 Apr 2008 10:35:09 +0000 (12:35 +0200)]
Add NetUserAdd to libnetapi IDL.

Guenther
(This used to be commit 08afca2188d28ff9727d0ae3f051681a1e1dc5c8)

16 years agoFix parameters string for rpc_trustdom_add_internals().
Günther Deschner [Wed, 9 Apr 2008 11:17:42 +0000 (13:17 +0200)]
Fix parameters string for rpc_trustdom_add_internals().

Guenther
(This used to be commit e161bb64a8348ecf7929dbc04d5923d8bd3542ad)

16 years agoTry anonymous session setup
Volker Lendecke [Wed, 9 Apr 2008 07:48:59 +0000 (09:48 +0200)]
Try anonymous session setup

... if there's no trust password

Attempt to fix bug 5350
(This used to be commit 99f6b63f3c637457fdda7ed930c6666171b25b61)

16 years agoRemove reference to pointless socket options
Volker Lendecke [Wed, 9 Apr 2008 06:40:59 +0000 (08:40 +0200)]
Remove reference to pointless socket options
(This used to be commit 3aefb0df1c4065223d50c32910ef26704791a6a3)

16 years agoCheck x_fflush returns.
Jeremy Allison [Tue, 8 Apr 2008 22:08:47 +0000 (15:08 -0700)]
Check x_fflush returns.
Jeremy.
(This used to be commit 5525dc5f09a79d30f6c52fc3a88c8bce3060e642)

16 years agoFix lsa_QueryTrustedDomainInfo caller.
Günther Deschner [Tue, 8 Apr 2008 21:09:24 +0000 (23:09 +0200)]
Fix lsa_QueryTrustedDomainInfo caller.

Guenther
(This used to be commit 9f148daaf2e240002914183655c2b2cc9067759f)

16 years agoRe-run make idl.
Günther Deschner [Tue, 8 Apr 2008 21:04:22 +0000 (23:04 +0200)]
Re-run make idl.

Guenther
(This used to be commit ad3073749089f7166d9070c232ef02e6ba203215)

16 years agoFix IDL for lsa_LookupPrivName.
Günther Deschner [Tue, 8 Apr 2008 21:02:48 +0000 (23:02 +0200)]
Fix IDL for lsa_LookupPrivName.

Guenther
(This used to be commit 7b56a4bcf23f124fc9530fe1401add094f25fb28)

16 years agoRe-run make idl.
Günther Deschner [Tue, 8 Apr 2008 20:58:16 +0000 (22:58 +0200)]
Re-run make idl.

Guenther
(This used to be commit 6f474326030b916ca972b68ce36e4d7287192a33)

16 years agoFix IDL for lsa_QueryTrustedDomainInfo.
Günther Deschner [Tue, 8 Apr 2008 20:57:16 +0000 (22:57 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfo.

Guenther
(This used to be commit a064d000969233cf517f2e47b890d4e983c957ad)

16 years agoFix lsa_TrustedDomainInfo callers.
Günther Deschner [Tue, 8 Apr 2008 20:55:52 +0000 (22:55 +0200)]
Fix lsa_TrustedDomainInfo callers.

Guenther
(This used to be commit e0eae3901750c7b76560bbab9a86f24a64d42c8b)

16 years agoRe-run make idl.
Günther Deschner [Tue, 8 Apr 2008 20:54:18 +0000 (22:54 +0200)]
Re-run make idl.

Guenther
(This used to be commit 83dc2e1477333480511b8948d4e3e8e90ff86e25)

16 years agoFix IDL for lsa_QueryTrustedDomainInfoBySid.
Günther Deschner [Tue, 8 Apr 2008 20:52:26 +0000 (22:52 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfoBySid.

Guenther
(This used to be commit 7903103c70119d28b9d73cc340a1d85d04313b83)

16 years agoFix IDL for lsa_QueryTrustedDomainInfoByName.
Günther Deschner [Tue, 8 Apr 2008 20:51:55 +0000 (22:51 +0200)]
Fix IDL for lsa_QueryTrustedDomainInfoByName.

Guenther
(This used to be commit 18272d53859378b8832c098bcfafacf306e0eeca)

16 years agoFix IDL for lsa_QueryDomainInformationPolicy.
Günther Deschner [Tue, 8 Apr 2008 20:50:05 +0000 (22:50 +0200)]
Fix IDL for lsa_QueryDomainInformationPolicy.

Guenther
(This used to be commit 7a822c3c71fde8e86bc99c28701517e0db076263)

16 years agoFix the build of reply_setattrE().
Günther Deschner [Tue, 8 Apr 2008 19:41:16 +0000 (21:41 +0200)]
Fix the build of reply_setattrE().

How ever could this compile ?

Guenther
(This used to be commit 02f5f35e5ed3b061cfd020d0b13014c72fced5f4)

16 years agoMove is_valid_policy_hnd() out of net.
Günther Deschner [Tue, 8 Apr 2008 17:54:57 +0000 (19:54 +0200)]
Move is_valid_policy_hnd() out of net.

Guenther
(This used to be commit aae4d91e726ef8dcad173cdd1d6f719d94462948)

16 years agoTry to use kerberos in libnetapi.
Günther Deschner [Tue, 8 Apr 2008 17:42:26 +0000 (19:42 +0200)]
Try to use kerberos in libnetapi.

Guenther
(This used to be commit 9cfce2229508c2145c3527074ac76520544e5d25)

16 years agoAdd DsGetDcName libnetapi example.
Günther Deschner [Tue, 8 Apr 2008 16:45:26 +0000 (18:45 +0200)]
Add DsGetDcName libnetapi example.

Guenther
(This used to be commit 0216e55fa87a14fc45c320268f0511eb6638460b)

16 years agoAdd DsGetDcName call to libnetapi library.
Günther Deschner [Tue, 8 Apr 2008 16:43:51 +0000 (18:43 +0200)]
Add DsGetDcName call to libnetapi library.

Guenther
(This used to be commit 27780e984152e38c8f80e1c67ddf13b73a2b220d)

16 years agoRe-run make idl.
Günther Deschner [Tue, 8 Apr 2008 12:38:10 +0000 (14:38 +0200)]
Re-run make idl.

Guenther
(This used to be commit a47642011a5d4732afa939a9162c232922a29f61)

16 years agoAdd DsGetDCName call to libnetapi.idl.
Günther Deschner [Tue, 8 Apr 2008 12:37:09 +0000 (14:37 +0200)]
Add DsGetDCName call to libnetapi.idl.

Guenther
(This used to be commit e8cea4db013de63ec0eb9f8c9db530688483e5b6)

16 years agoFix includes in libnetapi examples common.c
Günther Deschner [Tue, 8 Apr 2008 15:17:17 +0000 (17:17 +0200)]
Fix includes in libnetapi examples common.c

Guenther
(This used to be commit 922ff9d01668c2c2ad10decfd09c0e7b3f0d7592)

16 years agoselftest: run the BASE-DELAYWRITE test 4 times faster in make test
Stefan Metzmacher [Tue, 8 Apr 2008 16:50:49 +0000 (18:50 +0200)]
selftest: run the BASE-DELAYWRITE test 4 times faster in make test

metze
(This used to be commit 83b6da7c52a6f5285a9765d22d13a53fe9dc80e5)

16 years agoUse size_t for strlen return, not int. Karolin please
Jeremy Allison [Tue, 8 Apr 2008 14:43:30 +0000 (07:43 -0700)]
Use size_t for strlen return, not int. Karolin please
pull.
Jeremy.
(This used to be commit f4a1fdaac0dd6b1b241fac9879416c8ad4403eff)

16 years agoUse popt in libetapi example code.
Günther Deschner [Tue, 8 Apr 2008 12:34:30 +0000 (14:34 +0200)]
Use popt in libetapi example code.

Guenther
(This used to be commit 6f239df3f5a57c9549f1637e53fd42d2ed604c3f)

16 years agoPrefill in username in libnetapi ctx.
Günther Deschner [Tue, 8 Apr 2008 12:29:21 +0000 (14:29 +0200)]
Prefill in username in libnetapi ctx.

Guenther
(This used to be commit 394bdb89ef350db0ab6aca093054e1048a8ffe1f)

16 years agoAdd CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.
Günther Deschner [Tue, 8 Apr 2008 12:10:48 +0000 (14:10 +0200)]
Add CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.

This allows to switch on the cli->fallback_after_kerberos switch.

Guenther
(This used to be commit 15ba45e567d910c1b2336dcc0c475e12b082f30f)

16 years agoDestroy DMAPI session when main smbd daemon exits.
Alexander Bokovoy [Tue, 8 Apr 2008 11:19:01 +0000 (15:19 +0400)]
Destroy DMAPI session when main smbd daemon exits.

DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons
but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to
shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore.
This is what recommended by DMAPI specification anyway.
(This used to be commit a0cefd44009d414fa00ec6e08c70d21b74acdbcb)

16 years agoAllow broader range of HSM systems in vfs_tsmsm
Alexander Bokovoy [Tue, 8 Apr 2008 11:17:53 +0000 (15:17 +0400)]
Allow broader range of HSM systems in vfs_tsmsm

    Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'.
    Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence*
    of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result.
    Port from Tridge's v3-0-ctdb git tree.
(This used to be commit 1faa97d5cc51277abbc6cb5c37d31c429bea04e4)

16 years agoRewrite the wrap checks to deal with gcc 4.x optimisations.
Jeremy Allison [Tue, 8 Apr 2008 04:11:16 +0000 (21:11 -0700)]
Rewrite the wrap checks to deal with gcc 4.x optimisations.
Karolin, please pull once Volker has reviewed. Thanks.
Jeremy.
(This used to be commit 09852899cadc48abe2f2651ecbceaf881198e648)

16 years agoRestructure inner workings of libnetapi a bit.
Günther Deschner [Tue, 8 Apr 2008 00:42:50 +0000 (02:42 +0200)]
Restructure inner workings of libnetapi a bit.

Guenther
(This used to be commit a4e3bc2bade8bf74696e1c6ced74da563ff2df7b)

16 years agoAdd libnetapi generated files.
Günther Deschner [Tue, 8 Apr 2008 00:26:21 +0000 (02:26 +0200)]
Add libnetapi generated files.

Guenther
(This used to be commit 78da087b3a04f25bd0ea3195debf5c46731bac74)

16 years agoBuild libnetapi.idl.
Günther Deschner [Tue, 8 Apr 2008 00:25:31 +0000 (02:25 +0200)]
Build libnetapi.idl.

Guenther
(This used to be commit c098714ac4bac8a7e27be761979a96190b77de1f)

16 years agoAdd libnetapi.idl.
Günther Deschner [Tue, 8 Apr 2008 00:25:00 +0000 (02:25 +0200)]
Add libnetapi.idl.

Guenther
(This used to be commit 5231a135068a64aedbe2643a9168f2a14c40b139)

16 years agoWhatsnew
Günther Deschner [Tue, 8 Apr 2008 00:14:44 +0000 (02:14 +0200)]
Whatsnew
(This used to be commit 5cb480a664938d93d6cd059c78da9bc78eb58dcb)

16 years agoRemove unused variable.
James Peach [Mon, 7 Apr 2008 22:28:10 +0000 (15:28 -0700)]
Remove unused variable.
(This used to be commit 3ed2c65bde0c2e5ad10cf777dae8a2d3e626a42c)

16 years agoFix Kerberos interop with Mac OS X 10.5 clients.
Bill Ricker [Mon, 7 Apr 2008 22:02:56 +0000 (15:02 -0700)]
Fix Kerberos interop with Mac OS X 10.5 clients.

Ignore optional req_flags. Use the Kerberos mechanism OID negotiated
with the client rather than hardcoding OID_KERBEROS5_OLD.
(This used to be commit 59a2bcf30fef14ecc826271862b645dd3a61cb48)

16 years agoUse bool for BOOL and true/false for True/False. We need lowercase
James Peach [Mon, 7 Apr 2008 22:00:41 +0000 (15:00 -0700)]
Use bool for BOOL and true/false for True/False. We need lowercase
bool to get the declarations picked up by the prototype parser.
(This used to be commit fd168e7b5065ba15b1cf56522b6810b8e6fdd7d5)

16 years agodbwrap: fix more "tdb_chainunlock failed" messages
Michael Adam [Mon, 7 Apr 2008 21:36:29 +0000 (23:36 +0200)]
dbwrap: fix more "tdb_chainunlock failed" messages

TALLOC_FREE(rec) before transaction_cancel also in dbwrap_trans_delete().

Michael
(This used to be commit 04cd914a1f12691d27ddc67887a757cd813848a7)

16 years agowinbindd: fix break out early condition in fill_grent_mem().
Michael Adam [Mon, 7 Apr 2008 14:38:14 +0000 (16:38 +0200)]
winbindd: fix break out early condition in fill_grent_mem().

if (!&new_glist) would always be skipped, if (new_glist == NULL) is
what must have been meant...

Michael
(This used to be commit c1b60cdecff2a53f0a75a432a1ad7730eb734908)

16 years agoOnly cache password policy results that worked, otherwise we
Bo Yang [Mon, 7 Apr 2008 13:51:42 +0000 (09:51 -0400)]
Only cache password policy results that worked, otherwise we
cannot login until the cache expires even if a connection
to a DC has been restored.
(This used to be commit 8671f9767d7d93a86712741303d6046937c3aae8)

16 years agosmbd: make it possible to change the write time delay for testing
Stefan Metzmacher [Mon, 7 Apr 2008 07:27:22 +0000 (09:27 +0200)]
smbd: make it possible to change the write time delay for testing

metze
(This used to be commit df8c100c2b53575a0d425a2daf52e2d59904746a)

16 years agosmbd: make it possible to disable get_file_infos() on searches
Stefan Metzmacher [Mon, 7 Apr 2008 07:21:19 +0000 (09:21 +0200)]
smbd: make it possible to disable get_file_infos() on searches

metze
(This used to be commit 404a865a34c3a7c67131b3f99e92c11b2abe3e39)

16 years agolocking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()
Stefan Metzmacher [Tue, 1 Apr 2008 09:40:23 +0000 (11:40 +0200)]
locking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()

This means we need to fetch the record only once.

metze
(This used to be commit 4130b873291d39e363184fe4e38dc1f24ebe5056)

16 years agoselftest: samba3 passes BASE-DELAYWRITE
Stefan Metzmacher [Wed, 12 Mar 2008 17:26:43 +0000 (18:26 +0100)]
selftest: samba3 passes BASE-DELAYWRITE

metze
(This used to be commit 5df34634317633820993c9ef924d694a8fe1c4fe)

16 years agosmbd: implement the strange write time update logic
Stefan Metzmacher [Wed, 12 Mar 2008 14:39:38 +0000 (15:39 +0100)]
smbd: implement the strange write time update logic

We now never call file_ntimes() directly, every update
is done via smb_set_file_time().

This let samba3 pass the BASE-DELAYWRITE test.

The write time is only updated 2 seconds after the
first write() on any open handle to the current time
(not the time of the first write).

Each handle which had write requests updates the write
time to the current time on close().

If the write time is set explicit via setfileinfo or setpathinfo
the write time is visible directly and a following close
on the same handle doesn't update the write time.

metze
(This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)

16 years agolocking: store the write time in the locking.tdb
Stefan Metzmacher [Wed, 12 Mar 2008 14:32:47 +0000 (15:32 +0100)]
locking: store the write time in the locking.tdb

This is needed to implement the strange write time update
logic later. We need to store 2 time timestamps to
distinguish between the time the file system had before
the first client opened the file and a forced timestamp update.

metze
(This used to be commit 6aaa2ce0eeb46f6735ec984a2e7aadde7a7f456d)

16 years agoFix an uninitialized variable
Volker Lendecke [Mon, 7 Apr 2008 10:19:25 +0000 (12:19 +0200)]
Fix an uninitialized variable
(This used to be commit 8b2d9ee8c54ed84f83fdecf04e656dd66b622abb)

16 years agoincrease log level for this failed setsockopt call. EINVAL is a normal error on Solar...
Björn Jacke [Mon, 7 Apr 2008 09:22:14 +0000 (11:22 +0200)]
increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection.
(This used to be commit 42bc4ff7fd6bfc92bde015ae8f3a9fb62d443cd5)

16 years agoFix bug 5375
Volker Lendecke [Mon, 7 Apr 2008 08:19:25 +0000 (10:19 +0200)]
Fix bug 5375

Thanks to Moskvin for testing
(This used to be commit d3c31aa36c451f0a19496cd33c0b055b466e6b09)

16 years agoFix a misleading debug message
Volker Lendecke [Mon, 7 Apr 2008 08:18:36 +0000 (10:18 +0200)]
Fix a misleading debug message
(This used to be commit 494b32197f0872b115f0cd1a35421d00a89360a6)

16 years agonet_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
Stefan Metzmacher [Wed, 2 Apr 2008 06:03:11 +0000 (08:03 +0200)]
net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()

metze
(This used to be commit 31375c02631cb3f37a8bbd4ea17d3ef69c4d07bf)

16 years agonet_rpc: let get_user_tokens() use wbcListUsers()
Stefan Metzmacher [Wed, 2 Apr 2008 06:02:02 +0000 (08:02 +0200)]
net_rpc: let get_user_tokens() use wbcListUsers()

metze
(This used to be commit 4f712452e911db1f0aa74e3ccd636c1a18bdf9ef)

16 years agowbinfo: make use of wbcGetGroups()
Stefan Metzmacher [Sun, 6 Apr 2008 09:58:58 +0000 (11:58 +0200)]
wbinfo: make use of wbcGetGroups()

metze
(This used to be commit c78f4dc043523842cf42f1a3fd4e8f3855518efa)

16 years agolibwbclient: add wbcGetGroups()
Stefan Metzmacher [Sun, 6 Apr 2008 09:55:57 +0000 (11:55 +0200)]
libwbclient: add wbcGetGroups()

metze
(This used to be commit 596d030b976102e7476a2460fce355914c4e8210)

16 years agoFix a C++ warning
Volker Lendecke [Sun, 6 Apr 2008 10:26:15 +0000 (12:26 +0200)]
Fix a C++ warning
(This used to be commit c274fe7d21badb42ca8d4d1115ae6bffdb19485f)

16 years agoRemove external refs to winbindd_fd
Volker Lendecke [Sun, 6 Apr 2008 10:26:01 +0000 (12:26 +0200)]
Remove external refs to winbindd_fd
(This used to be commit 18bf2b2028e64403a79b7cc06d3185a3e526d97d)

16 years agowbcAllocateGid returns a gid_t, not a uid_t
Volker Lendecke [Sun, 6 Apr 2008 09:27:36 +0000 (11:27 +0200)]
wbcAllocateGid returns a gid_t, not a uid_t
(This used to be commit 3130fb7b32285b8501f5ee8cbc62b478c09cccd3)

16 years agoRe-run "make idl"
Volker Lendecke [Sat, 5 Apr 2008 22:47:53 +0000 (00:47 +0200)]
Re-run "make idl"
(This used to be commit 26218826c327d85c2ef8d0d1addaef24d249d6bf)

16 years agoWhen using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
Jeremy Allison [Fri, 4 Apr 2008 22:28:14 +0000 (15:28 -0700)]
When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
the space taken by the unicode password to be one byte too
long (as we're on an odd byte boundary here). Reduce the
count by 1 to cope with this. Fixes smbclient against NetApp
servers which can't cope. Fix from
bryan.kolodziej@allenlund.com in bug #3840.
Jeremy.
(This used to be commit 1e7e7d86a1ae1cd2c3cc3de9f36b7326ad249b82)

16 years agoFix _samr_GetUserPwInfo() (to return more then just zeros).
Günther Deschner [Fri, 4 Apr 2008 10:00:26 +0000 (12:00 +0200)]
Fix _samr_GetUserPwInfo() (to return more then just zeros).

Guenther
(This used to be commit 624371ce32a7c0816963745059e743e5b3e92e2a)

16 years agoFix _samr_GetDomPwInfo (to return more then zeros).
Günther Deschner [Fri, 4 Apr 2008 09:59:32 +0000 (11:59 +0200)]
Fix _samr_GetDomPwInfo (to return more then zeros).

Guenther
(This used to be commit 1cde9579f10ab8c43c25dfd6e5c658c7653f9a37)

16 years agoFix bug #5372. With a large CUPS installation with a remote server, contacting
Jeremy Allison [Fri, 4 Apr 2008 18:14:09 +0000 (11:14 -0700)]
Fix bug #5372. With a large CUPS installation with a remote server, contacting
the server when searching for a name for the location and comment fields can
take so much time the client times out. When searching for a name we don't
use these fields anyway, so add a function get_a_printer_search() which
doesn't contact the CUPS server.
Jeremy.
(This used to be commit 92d9f20852d5384e92a93dd0b051034718840ca8)

16 years agonet_rpc_registry: return available error code on failure in deletevalue.
Michael Adam [Fri, 4 Apr 2008 15:52:35 +0000 (17:52 +0200)]
net_rpc_registry: return available error code on failure in deletevalue.

Michael
(This used to be commit 0dc9840cefb08b2732d294eb45508ce687ded324)

16 years agonet_rpc_registry: consistently return error upon wrong use.
Michael Adam [Fri, 4 Apr 2008 15:50:41 +0000 (17:50 +0200)]
net_rpc_registry: consistently return error upon wrong use.

Michael
(This used to be commit 26e3d71cd0b2d1bb31c50627ea71267328d52448)

16 years agonet: change split_hive_key() to properly allocate subkeyname
Michael Adam [Fri, 4 Apr 2008 15:24:53 +0000 (17:24 +0200)]
net: change split_hive_key() to properly allocate subkeyname

instead of returning a pointer into another string.

Michael
(This used to be commit 68d08ecf92be3444b759300237b2b7cf5238d022)

16 years agonet_rpc_registry: use split_hive_key to normalize hive befor open.
Michael Adam [Fri, 4 Apr 2008 14:46:01 +0000 (16:46 +0200)]
net_rpc_registry: use split_hive_key to normalize hive befor open.

THis allows to specify keys in the form "HKLM/Software/samba",
i.e. "/" instead of "\\".

Michael
(This used to be commit 61d09caef340d2fee303e429f6f25d011cb3023c)

16 years agonet_rpc_registry: use utility function print_registry_value().
Michael Adam [Fri, 4 Apr 2008 11:30:49 +0000 (13:30 +0200)]
net_rpc_registry: use utility function print_registry_value().

Michael
(This used to be commit 3d039b518f04b9dd3c87b9af2ec816e049554e27)

16 years agonet_rpc_registy: use function print_registry_key
Michael Adam [Fri, 4 Apr 2008 11:26:03 +0000 (13:26 +0200)]
net_rpc_registy: use function print_registry_key

Michael
(This used to be commit cc1da3ee2c369181efa6d150c966571d0aff0728)

16 years agonet_registry: split utility function of common interest out into util module.
Michael Adam [Fri, 4 Apr 2008 11:21:03 +0000 (13:21 +0200)]
net_registry: split utility function of common interest out into util module.

Michael
(This used to be commit 3bf890783fadd245c59280173627a6caca2dbefe)

16 years agomapping_tdb: fix enumeration of mappings.
Michael Adam [Fri, 4 Apr 2008 14:56:02 +0000 (16:56 +0200)]
mapping_tdb: fix enumeration of mappings.

db->traverse_read returns the number of traversed object on success.

Michael
(This used to be commit 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c)

16 years agoMakefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael Adam [Fri, 4 Apr 2008 11:07:01 +0000 (13:07 +0200)]
Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...

Michael
(This used to be commit 7b16cb1023abd4fb2b2f08cf723d38c8c6ae68a0)

16 years agomapping.tdb: fix creation of entries with GROUP_PREFIX
Michael Adam [Fri, 4 Apr 2008 13:27:51 +0000 (15:27 +0200)]
mapping.tdb: fix creation of entries with GROUP_PREFIX

Macro is no expanded inside literal string.

Michael
(This used to be commit 872a3d3d38287ab9cbb260d05777481d94e03539)

16 years agoUse sid_array_from_info3 in lookup_usergroups_cached().
Günther Deschner [Fri, 4 Apr 2008 00:53:40 +0000 (02:53 +0200)]
Use sid_array_from_info3 in lookup_usergroups_cached().

Guenther
(This used to be commit 65b4cb20ea3fb806cfd50281e08f32bea70fafce)

16 years agoAlways uppercase cli->srv_name_slash.
Günther Deschner [Thu, 3 Apr 2008 23:44:43 +0000 (01:44 +0200)]
Always uppercase cli->srv_name_slash.

Not that I think it is of any importance...

Guenther
(This used to be commit 352f8440c74bc22416e21783e1dc5fecf5869902)

16 years agoRemove some dead code in rpcclient.
Günther Deschner [Thu, 3 Apr 2008 23:44:16 +0000 (01:44 +0200)]
Remove some dead code in rpcclient.

Guenther
(This used to be commit c7ae1a9b53ef578cf4dfdf8e05915817c69896b5)

16 years agoMove rpccli_try_samr_connects out of rpcclient.
Günther Deschner [Thu, 3 Apr 2008 23:40:29 +0000 (01:40 +0200)]
Move rpccli_try_samr_connects out of rpcclient.

Guenther
(This used to be commit f550cdb6f240830ee1e3a2dfe5f4128bca0cf836)

16 years agoFix pam_winbind macros.
Günther Deschner [Thu, 3 Apr 2008 15:23:22 +0000 (17:23 +0200)]
Fix pam_winbind macros.

Guenther
(This used to be commit 37091859126167e84e55afe8a32025ac0f65065e)

16 years agoUse pwb_context in pam_winbind.
Günther Deschner [Thu, 3 Apr 2008 13:41:26 +0000 (15:41 +0200)]
Use pwb_context in pam_winbind.

Guenther
(This used to be commit bf960f57e7adf09cdf096f2c72065ea1ff8b0daa)

16 years agoAdd _pam_winbind_init/free_context.
Günther Deschner [Thu, 3 Apr 2008 11:23:34 +0000 (13:23 +0200)]
Add _pam_winbind_init/free_context.

Guenther
(This used to be commit d62676cf886d910334b3d6f7ce0147b75ef53aec)

16 years agoAdd pwb_context to pam_winbind.h.
Günther Deschner [Thu, 3 Apr 2008 11:19:46 +0000 (13:19 +0200)]
Add pwb_context to pam_winbind.h.

Guenther
(This used to be commit fe8acb064433b286938e0b572ca1faa8a54414b7)

16 years agoMake more functions in pam_winbind static.
Günther Deschner [Thu, 3 Apr 2008 11:06:14 +0000 (13:06 +0200)]
Make more functions in pam_winbind static.

Guenther
(This used to be commit ea2175ee0e6288ccb132e86b9dd0bf8a0e4169c9)

16 years agowbinfo: use wbcLookupNames()
Stefan Metzmacher [Wed, 2 Apr 2008 04:10:04 +0000 (06:10 +0200)]
wbinfo: use wbcLookupNames()

metze
(This used to be commit 9d0e5a13215d4904084e81fde6098c70ee4d4636)

16 years agowbinfo: use wbcLookupRids()
Stefan Metzmacher [Wed, 2 Apr 2008 04:03:48 +0000 (06:03 +0200)]
wbinfo: use wbcLookupRids()

metze
(This used to be commit 046b26b763b16362dd662a77b2434641bf583bc2)

16 years agowbinfo: use wbcLookupSid()
Stefan Metzmacher [Wed, 2 Apr 2008 03:26:36 +0000 (05:26 +0200)]
wbinfo: use wbcLookupSid()

metze
(This used to be commit b917be4986bd55aeffae03b08cf476ea6302fa26)

16 years agowbinfo: catch NULL domain string as in other places
Stefan Metzmacher [Wed, 2 Apr 2008 04:02:45 +0000 (06:02 +0200)]
wbinfo: catch NULL domain string as in other places

metze
(This used to be commit ff4611832a0b498b83590279a7153e606a4720f5)

16 years agoregistry: remove parameter checks from smbconf backend: they are in libsmbconf.
Michael Adam [Thu, 3 Apr 2008 13:29:25 +0000 (15:29 +0200)]
registry: remove parameter checks from smbconf backend: they are in libsmbconf.

Michael
(This used to be commit 118cf3813336122a060916848e37d2d5d25bff92)

16 years agolibsmbconf: move initialization of registry value down after error checks.
Michael Adam [Thu, 3 Apr 2008 13:16:01 +0000 (15:16 +0200)]
libsmbconf: move initialization of registry value down after error checks.

Michael
(This used to be commit 2a8029985f9bde4da8ca20bc24d937150eab444c)

16 years agoFix rpccli_lsa_lookup_sids_noalloc.
Günther Deschner [Wed, 2 Apr 2008 22:23:50 +0000 (00:23 +0200)]
Fix rpccli_lsa_lookup_sids_noalloc.

When looking up e.g. a trusted doamin account, there is just no name.

Michael, please check.

Guenther
(This used to be commit ea3cfadc2504c891b4784719bd8e6debcc38c879)

16 years agoAdd NT_STATUS_RPC_CANNOT_SUPPORT.
Günther Deschner [Wed, 2 Apr 2008 13:26:27 +0000 (15:26 +0200)]
Add NT_STATUS_RPC_CANNOT_SUPPORT.

Guenther
(This used to be commit 9e15ce03ca66a0b5ffdb39dd2faaad6e0f967e31)

16 years agoFix trusted users on a DC that uses the old idmap syntax. There was no default backen...
Simo Sorce [Tue, 1 Apr 2008 22:25:47 +0000 (18:25 -0400)]
Fix trusted users on a DC that uses the old idmap syntax. There was no default backend therefore on IDs were mapped by default.
(This used to be commit f6069126e5e6d239b1ae00e897a420227f923e3f)

16 years agoFix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.
Jeremy Allison [Wed, 2 Apr 2008 18:23:36 +0000 (11:23 -0700)]
Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.
There is no reason to ensure the target host is ourselves, and
this breaks MS clients in some cases.
Jeremy.
(This used to be commit c19fdf43d16ce9fba3e8e12e6192bac31837715e)

16 years agoFix "net rpc trustdom establish" for win2k8 trusts.
Günther Deschner [Wed, 2 Apr 2008 10:29:24 +0000 (12:29 +0200)]
Fix "net rpc trustdom establish" for win2k8 trusts.

When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails
with some exotic RAP failure. Let's just try a netlogon getdcname call in
that case to convince ourselve we're talking to a proper machine.

Rafael, looks ok?

Guenther
(This used to be commit b12edbeffee1f7d1fd971cde9189e5137ddeb35b)