From 4f147388c0512fc291cc53764c017d7117154afc Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 2 Aug 2009 10:43:05 +0200 Subject: 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 --- source3/winbindd/winbindd_ads.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/winbindd/winbindd_ads.c') diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c index 08afb46674..137a88505c 100644 --- a/source3/winbindd/winbindd_ads.c +++ b/source3/winbindd/winbindd_ads.c @@ -404,14 +404,14 @@ static NTSTATUS enum_local_groups(struct winbindd_domain *domain, /* convert a single name to a sid in a domain - use rpc methods */ 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) { - return reconnect_methods.name_to_sid(domain, mem_ctx, orig_cmd, - domain_name, name, + return reconnect_methods.name_to_sid(domain, mem_ctx, + domain_name, name, flags, sid, type); } -- cgit