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_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/winbindd/winbindd_cache.c') diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 6c14f9d76a..b8872a18d4 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1608,9 +1608,9 @@ skip_save: /* 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) { @@ -1657,8 +1657,8 @@ do_query: DEBUG(10,("name_to_sid: [Cached] - doing backend query for name for domain %s\n", domain->name )); - status = domain->backend->name_to_sid(domain, mem_ctx, orig_cmd, - domain_name, name, sid, type); + status = domain->backend->name_to_sid(domain, mem_ctx, domain_name, + name, flags, sid, type); /* and save it */ refresh_sequence_number(domain, false); -- cgit