summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_reconnect.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-02 10:43:05 +0200
committerVolker Lendecke <vl@samba.org>2009-08-02 11:24:48 +0200
commit4f147388c0512fc291cc53764c017d7117154afc (patch)
treeb4a4ee3fba145c2c2710c4c782d653b245d96fdc /source3/winbindd/winbindd_reconnect.c
parent62fec968193e8a96ccffef216aba30ffb681d33a (diff)
downloadsamba-4f147388c0512fc291cc53764c017d7117154afc.tar.gz
samba-4f147388c0512fc291cc53764c017d7117154afc.tar.bz2
samba-4f147388c0512fc291cc53764c017d7117154afc.zip
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
Diffstat (limited to 'source3/winbindd/winbindd_reconnect.c')
-rw-r--r--source3/winbindd/winbindd_reconnect.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/source3/winbindd/winbindd_reconnect.c b/source3/winbindd/winbindd_reconnect.c
index 25debccc5a..1d71a75458 100644
--- a/source3/winbindd/winbindd_reconnect.c
+++ b/source3/winbindd/winbindd_reconnect.c
@@ -83,21 +83,20 @@ static NTSTATUS enum_local_groups(struct winbindd_domain *domain,
/* convert a single name to a sid in a domain */
static NTSTATUS name_to_sid(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
- enum winbindd_cmd orig_cmd,
const char *domain_name,
const char *name,
+ uint32_t flags,
DOM_SID *sid,
enum lsa_SidType *type)
{
NTSTATUS result;
- result = msrpc_methods.name_to_sid(domain, mem_ctx, orig_cmd,
- domain_name, name,
- sid, type);
+ result = msrpc_methods.name_to_sid(domain, mem_ctx, domain_name, name,
+ flags, sid, type);
if (NT_STATUS_EQUAL(result, NT_STATUS_UNSUCCESSFUL))
- result = msrpc_methods.name_to_sid(domain, mem_ctx, orig_cmd,
- domain_name, name,
+ result = msrpc_methods.name_to_sid(domain, mem_ctx,
+ domain_name, name, flags,
sid, type);
return result;