1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

23812 Commits

Author SHA1 Message Date
Volker Lendecke
4f715d1102 Fix an uninitialized variable
(This used to be commit 8b2d9ee8c54ed84f83fdecf04e656dd66b622abb)
2008-04-07 12:20:21 +02:00
Björn Jacke
b6e9fffaa2 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)
2008-04-07 11:49:54 +02:00
Volker Lendecke
768a5a23e0 Fix bug 5375
Thanks to Moskvin for testing
(This used to be commit d3c31aa36c451f0a19496cd33c0b055b466e6b09)
2008-04-07 10:20:39 +02:00
Volker Lendecke
aa41d74843 Fix a misleading debug message
(This used to be commit 494b32197f0872b115f0cd1a35421d00a89360a6)
2008-04-07 10:20:32 +02:00
Stefan Metzmacher
74325d79ad net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
metze
(This used to be commit 31375c02631cb3f37a8bbd4ea17d3ef69c4d07bf)
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
1e39a6196c net_rpc: let get_user_tokens() use wbcListUsers()
metze
(This used to be commit 4f712452e911db1f0aa74e3ccd636c1a18bdf9ef)
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
1d08dbbd4c wbinfo: make use of wbcGetGroups()
metze
(This used to be commit c78f4dc043523842cf42f1a3fd4e8f3855518efa)
2008-04-06 13:42:00 +02:00
Stefan Metzmacher
cb4e77d991 libwbclient: add wbcGetGroups()
metze
(This used to be commit 596d030b976102e7476a2460fce355914c4e8210)
2008-04-06 13:42:00 +02:00
Volker Lendecke
7d0ebc1976 Fix a C++ warning
(This used to be commit c274fe7d21badb42ca8d4d1115ae6bffdb19485f)
2008-04-06 12:27:16 +02:00
Volker Lendecke
abe1431ad3 Remove external refs to winbindd_fd
(This used to be commit 18bf2b2028e64403a79b7cc06d3185a3e526d97d)
2008-04-06 12:27:08 +02:00
Volker Lendecke
c18dca113c wbcAllocateGid returns a gid_t, not a uid_t
(This used to be commit 3130fb7b32285b8501f5ee8cbc62b478c09cccd3)
2008-04-06 11:28:46 +02:00
Volker Lendecke
c7ab11f52d Re-run "make idl"
(This used to be commit 26218826c327d85c2ef8d0d1addaef24d249d6bf)
2008-04-06 00:48:27 +02:00
Jeremy Allison
1a64916775 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)
2008-04-04 15:28:14 -07:00
Günther Deschner
8337291250 Fix _samr_GetUserPwInfo() (to return more then just zeros).
Guenther
(This used to be commit 624371ce32a7c0816963745059e743e5b3e92e2a)
2008-04-04 23:41:56 +02:00
Günther Deschner
8c9d6322de Fix _samr_GetDomPwInfo (to return more then zeros).
Guenther
(This used to be commit 1cde9579f10ab8c43c25dfd6e5c658c7653f9a37)
2008-04-04 23:41:56 +02:00
Jeremy Allison
40d16fa275 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)
2008-04-04 11:14:09 -07:00
Michael Adam
0000eeb9b8 net_rpc_registry: return available error code on failure in deletevalue.
Michael
(This used to be commit 0dc9840cefb08b2732d294eb45508ce687ded324)
2008-04-04 17:52:35 +02:00
Michael Adam
c7aa3dd3c0 net_rpc_registry: consistently return error upon wrong use.
Michael
(This used to be commit 26e3d71cd0b2d1bb31c50627ea71267328d52448)
2008-04-04 17:50:41 +02:00
Michael Adam
ae790f9b89 net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.

Michael
(This used to be commit 68d08ecf92be3444b759300237b2b7cf5238d022)
2008-04-04 17:24:53 +02:00
Michael Adam
65088387c0 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)
2008-04-04 17:05:00 +02:00
Michael Adam
0bd2ac7130 net_rpc_registry: use utility function print_registry_value().
Michael
(This used to be commit 3d039b518f04b9dd3c87b9af2ec816e049554e27)
2008-04-04 17:05:00 +02:00
Michael Adam
2ce236cbaf net_rpc_registy: use function print_registry_key
Michael
(This used to be commit cc1da3ee2c369181efa6d150c966571d0aff0728)
2008-04-04 17:05:00 +02:00
Michael Adam
06466de5e9 net_registry: split utility function of common interest out into util module.
Michael
(This used to be commit 3bf890783fadd245c59280173627a6caca2dbefe)
2008-04-04 17:05:00 +02:00
Michael Adam
2478949821 mapping_tdb: fix enumeration of mappings.
db->traverse_read returns the number of traversed object on success.

Michael
(This used to be commit 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c)
2008-04-04 17:05:00 +02:00
Michael Adam
eab99a9eee Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael
(This used to be commit 7b16cb1023abd4fb2b2f08cf723d38c8c6ae68a0)
2008-04-04 16:47:52 +02:00
Michael Adam
1b3f36b2b5 mapping.tdb: fix creation of entries with GROUP_PREFIX
Macro is no expanded inside literal string.

Michael
(This used to be commit 872a3d3d38287ab9cbb260d05777481d94e03539)
2008-04-04 16:47:51 +02:00
Günther Deschner
bea4541e11 Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
(This used to be commit 65b4cb20ea3fb806cfd50281e08f32bea70fafce)
2008-04-04 02:53:40 +02:00
Günther Deschner
69b23a39cd Always uppercase cli->srv_name_slash.
Not that I think it is of any importance...

Guenther
(This used to be commit 352f8440c74bc22416e21783e1dc5fecf5869902)
2008-04-04 01:44:43 +02:00
Günther Deschner
be9b46b2ce Remove some dead code in rpcclient.
Guenther
(This used to be commit c7ae1a9b53ef578cf4dfdf8e05915817c69896b5)
2008-04-04 01:44:16 +02:00
Günther Deschner
29f44dc144 Move rpccli_try_samr_connects out of rpcclient.
Guenther
(This used to be commit f550cdb6f240830ee1e3a2dfe5f4128bca0cf836)
2008-04-04 01:40:29 +02:00
Günther Deschner
e7553ab79c Fix pam_winbind macros.
Guenther
(This used to be commit 37091859126167e84e55afe8a32025ac0f65065e)
2008-04-03 17:23:22 +02:00
Günther Deschner
3020cd44ad Use pwb_context in pam_winbind.
Guenther
(This used to be commit bf960f57e7adf09cdf096f2c72065ea1ff8b0daa)
2008-04-03 16:27:18 +02:00
Günther Deschner
a654ed6089 Add _pam_winbind_init/free_context.
Guenther
(This used to be commit d62676cf886d910334b3d6f7ce0147b75ef53aec)
2008-04-03 16:27:18 +02:00
Günther Deschner
b365cd3fc5 Add pwb_context to pam_winbind.h.
Guenther
(This used to be commit fe8acb064433b286938e0b572ca1faa8a54414b7)
2008-04-03 16:27:18 +02:00
Günther Deschner
b592abf1ac Make more functions in pam_winbind static.
Guenther
(This used to be commit ea2175ee0e6288ccb132e86b9dd0bf8a0e4169c9)
2008-04-03 16:27:18 +02:00
Stefan Metzmacher
4124c7b7a3 wbinfo: use wbcLookupNames()
metze
(This used to be commit 9d0e5a13215d4904084e81fde6098c70ee4d4636)
2008-04-03 15:49:19 +02:00
Stefan Metzmacher
f963e50de7 wbinfo: use wbcLookupRids()
metze
(This used to be commit 046b26b763b16362dd662a77b2434641bf583bc2)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
421f9d2e6b wbinfo: use wbcLookupSid()
metze
(This used to be commit b917be4986bd55aeffae03b08cf476ea6302fa26)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
e8ca249d3f wbinfo: catch NULL domain string as in other places
metze
(This used to be commit ff4611832a0b498b83590279a7153e606a4720f5)
2008-04-03 15:49:18 +02:00
Michael Adam
2830626877 registry: remove parameter checks from smbconf backend: they are in libsmbconf.
Michael
(This used to be commit 118cf3813336122a060916848e37d2d5d25bff92)
2008-04-03 15:43:04 +02:00
Michael Adam
24c54ee4fb libsmbconf: move initialization of registry value down after error checks.
Michael
(This used to be commit 2a8029985f9bde4da8ca20bc24d937150eab444c)
2008-04-03 15:43:04 +02:00
Günther Deschner
dc2274819e 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)
2008-04-03 00:27:02 +02:00
Günther Deschner
b028fd3f8c Add NT_STATUS_RPC_CANNOT_SUPPORT.
Guenther
(This used to be commit 9e15ce03ca66a0b5ffdb39dd2faaad6e0f967e31)
2008-04-03 00:26:55 +02:00
Simo Sorce
a123abdb91 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)
2008-04-03 00:26:35 +02:00
Jeremy Allison
3ebb6be00d 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)
2008-04-02 11:23:36 -07:00
Günther Deschner
832adaa5ab 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)
2008-04-02 12:29:24 +02:00
Günther Deschner
da7863c4c9 Apply some const in clirap.
Guenther
(This used to be commit 8a1a9f967db25d3928f19e46d60af249f934f323)
2008-04-02 12:23:07 +02:00
Günther Deschner
68bfa9682b Some fixes for netdomjoin-gui and support for browsing/joining OUs.
Guenther
(This used to be commit 4714bae0dbbb2ad010c2929f83de6bca84cfac46)
2008-04-02 11:18:10 +02:00
Günther Deschner
6c1c07bde3 Make sure to hand down the domain name in libnetapi NetUnjoinDomain.
Guenther
(This used to be commit 0058ab30de943f134792e3d66051206086987110)
2008-04-02 11:14:15 +02:00
Günther Deschner
99d3590455 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
(This used to be commit 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +02:00