Volker Lendecke
d3c31aa36c
Fix bug 5375
...
Thanks to Moskvin for testing
2008-04-07 10:20:39 +02:00
Volker Lendecke
494b32197f
Fix a misleading debug message
2008-04-07 10:20:32 +02:00
Stefan Metzmacher
31375c0263
net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
...
metze
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
4f712452e9
net_rpc: let get_user_tokens() use wbcListUsers()
...
metze
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
c78f4dc043
wbinfo: make use of wbcGetGroups()
...
metze
2008-04-06 13:42:00 +02:00
Stefan Metzmacher
596d030b97
libwbclient: add wbcGetGroups()
...
metze
2008-04-06 13:42:00 +02:00
Volker Lendecke
c274fe7d21
Fix a C++ warning
2008-04-06 12:27:16 +02:00
Volker Lendecke
18bf2b2028
Remove external refs to winbindd_fd
2008-04-06 12:27:08 +02:00
Volker Lendecke
3130fb7b32
wbcAllocateGid returns a gid_t, not a uid_t
2008-04-06 11:28:46 +02:00
Volker Lendecke
26218826c3
Re-run "make idl"
2008-04-06 00:48:27 +02:00
Jeremy Allison
1e7e7d86a1
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.
2008-04-04 15:28:14 -07:00
Günther Deschner
624371ce32
Fix _samr_GetUserPwInfo() (to return more then just zeros).
...
Guenther
2008-04-04 23:41:56 +02:00
Günther Deschner
1cde9579f1
Fix _samr_GetDomPwInfo (to return more then zeros).
...
Guenther
2008-04-04 23:41:56 +02:00
Jeremy Allison
92d9f20852
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.
2008-04-04 11:14:09 -07:00
Michael Adam
0dc9840cef
net_rpc_registry: return available error code on failure in deletevalue.
...
Michael
2008-04-04 17:52:35 +02:00
Michael Adam
26e3d71cd0
net_rpc_registry: consistently return error upon wrong use.
...
Michael
2008-04-04 17:50:41 +02:00
Michael Adam
68d08ecf92
net: change split_hive_key() to properly allocate subkeyname
...
instead of returning a pointer into another string.
Michael
2008-04-04 17:24:53 +02:00
Michael Adam
61d09caef3
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
2008-04-04 17:05:00 +02:00
Michael Adam
3d039b518f
net_rpc_registry: use utility function print_registry_value().
...
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
cc1da3ee2c
net_rpc_registy: use function print_registry_key
...
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
3bf890783f
net_registry: split utility function of common interest out into util module.
...
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
2be2188a97
mapping_tdb: fix enumeration of mappings.
...
db->traverse_read returns the number of traversed object on success.
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
7b16cb1023
Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
...
Michael
2008-04-04 16:47:52 +02:00
Michael Adam
872a3d3d38
mapping.tdb: fix creation of entries with GROUP_PREFIX
...
Macro is no expanded inside literal string.
Michael
2008-04-04 16:47:51 +02:00
Günther Deschner
65b4cb20ea
Use sid_array_from_info3 in lookup_usergroups_cached().
...
Guenther
2008-04-04 02:53:40 +02:00
Günther Deschner
352f8440c7
Always uppercase cli->srv_name_slash.
...
Not that I think it is of any importance...
Guenther
2008-04-04 01:44:43 +02:00
Günther Deschner
c7ae1a9b53
Remove some dead code in rpcclient.
...
Guenther
2008-04-04 01:44:16 +02:00
Günther Deschner
f550cdb6f2
Move rpccli_try_samr_connects out of rpcclient.
...
Guenther
2008-04-04 01:40:29 +02:00
Günther Deschner
3709185912
Fix pam_winbind macros.
...
Guenther
2008-04-03 17:23:22 +02:00
Günther Deschner
bf960f57e7
Use pwb_context in pam_winbind.
...
Guenther
2008-04-03 16:27:18 +02:00
Günther Deschner
d62676cf88
Add _pam_winbind_init/free_context.
...
Guenther
2008-04-03 16:27:18 +02:00
Günther Deschner
fe8acb0644
Add pwb_context to pam_winbind.h.
...
Guenther
2008-04-03 16:27:18 +02:00
Günther Deschner
ea2175ee0e
Make more functions in pam_winbind static.
...
Guenther
2008-04-03 16:27:18 +02:00
Stefan Metzmacher
9d0e5a1321
wbinfo: use wbcLookupNames()
...
metze
2008-04-03 15:49:19 +02:00
Stefan Metzmacher
046b26b763
wbinfo: use wbcLookupRids()
...
metze
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
b917be4986
wbinfo: use wbcLookupSid()
...
metze
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
ff4611832a
wbinfo: catch NULL domain string as in other places
...
metze
2008-04-03 15:49:18 +02:00
Michael Adam
118cf38133
registry: remove parameter checks from smbconf backend: they are in libsmbconf.
...
Michael
2008-04-03 15:43:04 +02:00
Michael Adam
2a8029985f
libsmbconf: move initialization of registry value down after error checks.
...
Michael
2008-04-03 15:43:04 +02:00
Günther Deschner
ea3cfadc25
Fix rpccli_lsa_lookup_sids_noalloc.
...
When looking up e.g. a trusted doamin account, there is just no name.
Michael, please check.
Guenther
2008-04-03 00:27:02 +02:00
Günther Deschner
9e15ce03ca
Add NT_STATUS_RPC_CANNOT_SUPPORT.
...
Guenther
2008-04-03 00:26:55 +02:00
Simo Sorce
f6069126e5
Fix trusted users on a DC that uses the old idmap syntax. There was no default backend therefore on IDs were mapped by default.
2008-04-03 00:26:35 +02:00
Jeremy Allison
c19fdf43d1
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.
2008-04-02 11:23:36 -07:00
Günther Deschner
b12edbeffe
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
2008-04-02 12:29:24 +02:00
Günther Deschner
8a1a9f967d
Apply some const in clirap.
...
Guenther
2008-04-02 12:23:07 +02:00
Günther Deschner
4714bae0db
Some fixes for netdomjoin-gui and support for browsing/joining OUs.
...
Guenther
2008-04-02 11:18:10 +02:00
Günther Deschner
0058ab30de
Make sure to hand down the domain name in libnetapi NetUnjoinDomain.
...
Guenther
2008-04-02 11:14:15 +02:00
Günther Deschner
0970369ca0
Fix NETLOGON credential chain with Windows 2008 all over the place.
...
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.
Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.
Guenther
2008-04-02 11:12:47 +02:00
Stefan Metzmacher
547eacf605
smbd: always close the base_fsp even if the real close returned an error
...
Otherwise we may end up with share mode entry without an open file.
Volker, Jeremy: please check...
metze
2008-04-01 18:47:42 +02:00
Stefan Metzmacher
ff87260f12
wbinfo: use wbcInterfaceDetails()
...
metze
2008-04-01 18:30:10 +02:00