summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cache.c3
-rw-r--r--source3/winbindd/winbindd_creds.c3
-rw-r--r--source3/winbindd/winbindd_pam.c3
-rw-r--r--source3/winbindd/winbindd_proto.h3
4 files changed, 4 insertions, 8 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 5d12c2b3bc..d0f0e9b42f 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -3194,8 +3194,7 @@ bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
return NT_STATUS_IS_OK(status);
}
-bool lookup_cached_name(TALLOC_CTX *mem_ctx,
- const char *domain_name,
+bool lookup_cached_name(const char *domain_name,
const char *name,
struct dom_sid *sid,
enum lsa_SidType *type)
diff --git a/source3/winbindd/winbindd_creds.c b/source3/winbindd/winbindd_creds.c
index 11dbfed6ba..c4a700b70d 100644
--- a/source3/winbindd/winbindd_creds.c
+++ b/source3/winbindd/winbindd_creds.c
@@ -75,8 +75,7 @@ NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
enum lsa_SidType type;
- if (!lookup_cached_name(mem_ctx,
- domain->name,
+ if (!lookup_cached_name(domain->name,
user,
&cred_sid,
&type)) {
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 48df304f87..c162cc6feb 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -838,8 +838,7 @@ static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
parse_domain_user(state->request->data.auth.user, name_domain, name_user);
- if (!lookup_cached_name(state->mem_ctx,
- name_domain,
+ if (!lookup_cached_name(name_domain,
name_user,
&sid,
&type)) {
diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h
index 4e21b6558f..bc703a8775 100644
--- a/source3/winbindd/winbindd_proto.h
+++ b/source3/winbindd/winbindd_proto.h
@@ -115,8 +115,7 @@ NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
char **domain_name, char **name,
enum lsa_SidType *type);
-bool lookup_cached_name(TALLOC_CTX *mem_ctx,
- const char *domain_name,
+bool lookup_cached_name(const char *domain_name,
const char *name,
struct dom_sid *sid,
enum lsa_SidType *type);