diff options
author | Sumit Bose <sbose@redhat.com> | 2013-06-27 17:07:36 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-28 20:20:59 +0200 |
commit | b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7 (patch) | |
tree | e406479c4d454d765b86c8a99e0929c198e991dd /src/providers/ldap | |
parent | 5e60c73cb91d1659755fb5ea829837db68d46163 (diff) | |
download | sssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.tar.gz sssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.tar.bz2 sssd-b8d703cf3aba81800cf1b8ccca64bb00ef0b30f7.zip |
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.
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/sdap_access.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index e7454234..53df7b0e 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -110,10 +110,9 @@ sdap_access_send(TALLOC_CTX *mem_ctx, /* Get original user DN, take care of subdomain users as well */ if (strcasecmp(pd->domain, be_ctx->domain->name) != 0) { - user_dom = new_subdomain(state, be_ctx->domain, pd->domain, - NULL, NULL, NULL); + user_dom = find_subdomain_by_name(be_ctx->domain, pd->domain, true); if (user_dom == NULL) { - DEBUG(SSSDBG_OP_FAILURE, ("new_subdomain failed.\n")); + DEBUG(SSSDBG_OP_FAILURE, ("find_subdomain_by_name failed.\n")); ret = ENOMEM; goto done; } |