From b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Thu, 27 Jun 2013 17:07:36 +0200 Subject: Replace new_subdomain() with find_subdomain_by_name() new_subdomain() will create a new domain object and should not be used anymore in the priovder code directly. Instead a reference to the domain from the common domain object should be used. --- src/providers/ad/ad_access.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/providers/ad') diff --git a/src/providers/ad/ad_access.c b/src/providers/ad/ad_access.c index 4e4dc8833..746017dc5 100644 --- a/src/providers/ad/ad_access.c +++ b/src/providers/ad/ad_access.c @@ -44,10 +44,9 @@ ad_access_handler(struct be_req *breq) /* Handle subdomains */ if (strcasecmp(pd->domain, be_ctx->domain->name) != 0) { - domain = new_subdomain(breq, be_ctx->domain, - pd->domain, NULL, NULL, NULL); + domain = find_subdomain_by_name(be_ctx->domain, pd->domain, true); if (domain == NULL) { - DEBUG(SSSDBG_OP_FAILURE, ("new_subdomain failed.\n")); + DEBUG(SSSDBG_OP_FAILURE, ("find_subdomain_by_name failed.\n")); be_req_terminate(breq, DP_ERR_FATAL, PAM_SYSTEM_ERR, NULL); return; } -- cgit