Volker Lendecke
3ea64e0ad8
s3: Replace most calls to sid_append_rid() by sid_compose()
2010-01-10 20:56:16 +01:00
Bo Yang
133638c8ae
s3: Make winbindd_cache.c aware of domain offline to avoid unnecessary backend query.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-01-06 19:19:43 +08:00
Bo Yang
36493bf2f6
s3: Fix infinite loop in NCACN_IP_TCP asa there is no timeout. Assume lsa_pipe_tcp is ok but network is down, then send request is ok, but select() on writeable fds loops forever since there is no response.
...
Signed-off-by: Bo Yang <boyang@samba.org>
2010-01-06 19:19:35 +08:00
Jim McDonough
3a271a89b5
Prevent NULL dereference if group has no members
2009-12-30 15:06:07 -05:00
Volker Lendecke
b8fcba9cb8
s3: Pass netr_DomainTrustList instead of names and sids through (*trusted_domains)
2009-12-28 15:54:13 +01:00
Volker Lendecke
7e66145560
s3: Fix a bogus uninitialized variable warning
2009-12-26 12:26:07 +01:00
Bo Yang
cdb68bd2b6
s3: Fix crash in winbindd;(bug#6879).
...
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-03 12:54:19 +08:00
Günther Deschner
3d679a3b5f
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
...
Guenther
2009-11-26 20:03:17 +01:00
Volker Lendecke
a4aa38f8b9
s3:winbind: Make query_user_list in winbindd_rpc a bit more readable
2009-10-06 21:33:20 +02:00
Günther Deschner
c789d041f0
s3-winbindd: no reason to call winbindd_can_contact_domain() three times in query_user().
...
Guenther
2009-09-24 22:55:38 +02:00
Günther Deschner
6a8ef6c424
s3-winbindd: Fix Bug #6711 : trusts to windows 2008 (2008 r2) not working.
...
Winbindd should always try to use LSA via an schannel authenticated ncacn_ip_tcp
connection when talking to AD for LSA lookup calls.
In Samba <-> W2k8 interdomain trust scenarios, LookupSids3 and LookupNames4 via an
schannel ncacn_ip_tcp LSA connection are the *only* options to successfully resolve
sids and names.
Guenther
2009-09-22 16:49:31 +02:00
Günther Deschner
99c3fc1958
s3-winbindd: add and use winbindd_lookup_names().
...
Guenther
2009-09-17 08:54:31 +02:00
Günther Deschner
f0b52b8c31
s3-winbindd: add and use winbindd_lookup_sids().
...
Guenther
2009-09-17 08:54:19 +02:00
Volker Lendecke
99cf696150
s3:winbind: Fix a bug found by RPC-SAMR
...
We need to enumerate passdb alias members
Thanks to gd for bugging me :-)
2009-08-29 10:44:13 +02:00
Volker Lendecke
c6b36ce573
s3:winbind: WINBIND_USERINFO -> wbint_userinfo
2009-08-16 10:38:24 +02:00
Stefan Metzmacher
1e1445bc76
s3:winbindd: raise the timeout for lsa_Lookup*() calls from 10 to 35 seconds.
...
metze
2009-08-11 13:53:33 +02:00
Volker Lendecke
4fa28af91d
Fix some nonempty blank lines
2009-08-02 22:33:56 +02:00
Volker Lendecke
4f147388c0
Refactor 9b78af1f
: Fix lookupname recursion
...
Pass a "flags" argument instead of the original winbind command down the
name_to_sid chain. This way we are independent of the winbind commands and
can take the decision at a much higher level
2009-08-02 11:24:48 +02:00
Günther Deschner
b5bec1a6d7
s3-secdesc: use SEC_FLAG_MAXIMUM_ALLOWED instead of SEC_RIGHTS_MAXIMUM_ALLOWED.
...
Guenther
2009-04-21 12:40:47 +02:00
Günther Deschner
531af136f9
s3: remove POLICY_HND.
...
Guenther
2009-03-18 23:22:29 +01:00
Volker Lendecke
b29c69f459
Fix #6130 : Don't crash in winbindd_rpc lookup_groupmem() on unmapped members
...
Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug
2009-03-17 21:19:32 +01:00
Michael Adam
dd54e68014
s3-winbindd: make all winbind rpc-methods static.
...
Now that the methods are no longer needed in winbindd_ads,
we can make them static again.
Michael
2008-11-21 23:32:30 +01:00
Günther Deschner
a4c24b4d30
s3-samr-idl: cleanup.
...
Guenther
2008-11-10 21:46:25 +01:00
Günther Deschner
65dc1eeceb
s3: fix various samr callers.
...
Guenther
2008-10-15 17:11:27 +02:00
Michael Adam
1f8a7739ac
[s3]winbindd_rpc: add domain prefix to username in lookup_groupmem().
...
This makes the output of "getent group" of a domain group show the
domain prefix with "security = domain".
Michael
2008-09-23 10:00:26 +02:00
Gerald (Jerry) Carter
544cd1b4b9
winbindd: Update the calls to ws_name_XX() to reflect API changes.
...
* Ensures that all points an which a name is received or returned
to/from a client passes through the name aliases layer (users
and groups).
2008-09-16 10:27:59 -07:00
Volker Lendecke
e1102b8f48
Introduce rpccli_set_timeout()
...
Reduce dependency on "cli" member of rpc_pipe_client struct
(This used to be commit 2e4c1ba389
)
2008-04-20 00:14:26 +02:00
Günther Deschner
7269a504fd
Add my copyright.
...
Guenther
(This used to be commit d078a87571
)
2008-02-27 19:38:48 +01:00
Günther Deschner
c25958a046
Use netr_SamInfo3 everywhere in winbindd.
...
Guenther
(This used to be commit d9502eb753
)
2008-02-17 02:12:00 +01:00
Günther Deschner
ce7d5975b4
Convert last caller (in winbindd) to rpccli_samr_EnumDomainAliases.
...
Guenther
(This used to be commit 33a97b447c
)
2008-02-13 11:18:36 +01:00
Günther Deschner
55a8d956d1
Convert last caller (in winbindd) to rpccli_samr_EnumDomainGroups.
...
Guenther
(This used to be commit 8890bc481f
)
2008-02-13 11:18:36 +01:00
Günther Deschner
cdc07216e4
Convert last caller (in winbindd) to rpccli_samr_LookupRids.
...
Guenther
(This used to be commit 34c2566f02
)
2008-02-13 10:56:56 +01:00
Günther Deschner
9673162236
Fix the build of winbindd, sorry.
...
Guenther
(This used to be commit c62c89c8f0
)
2008-02-13 01:29:52 +01:00
Günther Deschner
0ba3d44f73
Use rpccli_lsa_EnumTrustDom all over the place.
...
Guenther
(This used to be commit a25e7ffbca
)
2008-02-13 00:29:37 +01:00
Günther Deschner
4c42f7999a
Use rpccli_samr_QueryUserInfo in net and winbindd.
...
Guenther
(This used to be commit a9ff676090
)
2008-02-12 18:16:56 +01:00
Günther Deschner
7329bd24f9
Fix winbindd msrpc_lookup_useraliases.
...
Guenther
(This used to be commit e196e527ae
)
2008-02-08 10:59:31 +01:00
Günther Deschner
781776d864
Use rpccli_samr_QueryDisplayInfo() all over the place.
...
Guenther
(This used to be commit 66b79add35
)
2008-02-08 00:10:55 +01:00
Günther Deschner
1c788bc365
Use rpccli_samr_GetGroupsForUser() all over the place.
...
Guenther
(This used to be commit d1c669920e
)
2008-02-07 14:25:18 +01:00
Günther Deschner
742fd39b7a
Use rpccli_samr_QueryDomainInfo() in winbindd.
...
Guenther
(This used to be commit dd9fa33e96
)
2008-02-06 02:09:44 +01:00
Günther Deschner
2823c1eab1
Use rpccli_samr_QueryGroupMember() all over the place.
...
Guenther
(This used to be commit 1793ed10df
)
2008-02-05 13:19:47 +01:00
Günther Deschner
0c6b6b461c
Use rpccli_samr_GetAliasMembership() in winbindd and rpcclient.
...
Guenther
(This used to be commit 5c16716285
)
2008-02-05 10:13:08 +01:00
Günther Deschner
37b56c0113
Use rpccli_samr_OpenUser() all over the place.
...
Guenther
(This used to be commit da90eb7653
)
2008-02-01 12:30:15 +01:00
Günther Deschner
482eaa8e5c
Use rpccli_samr_OpenGroup() all over the place.
...
Guenther
(This used to be commit d019fc69a9
)
2008-02-01 12:29:35 +01:00
Günther Deschner
5334b364c2
Remove rpccli_samr_close and use pidl generated function instead.
...
Guenther
(This used to be commit 64f0889401
)
2008-01-31 11:09:11 +01:00
Jeremy Allison
6fa81523f8
Ensure we don't access an uninitialized variable
...
(CID 535 - actually false but easy to shut up :-).
Jeremy.
(This used to be commit 4038bb3a94
)
2008-01-11 22:44:33 -08:00
Gerald (Jerry) Carter
4093b0632c
Add a missing check for dealing with a one-way trust in query_user().
...
(This used to be commit f89e356bda
)
2008-01-04 13:34:10 -06:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec
)
2007-12-15 22:09:36 +01:00
Jeremy Allison
6b6655edd9
Remove pstrings from everything except srv_spoolss_nt.c.
...
Jeremy.
(This used to be commit 0002a9e96b
)
2007-11-27 14:35:30 -08:00
Jeremy Allison
f88b7a076b
This is a large patch (sorry). Migrate from struct in_addr
...
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c312
)
2007-10-24 14:16:54 -07:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c
)
2007-10-18 17:40:25 -07:00