diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2016-06-15 16:56:55 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-07 10:24:57 +0200 |
commit | e0243c7f3638c819051b7235097a0bb2d06374fb (patch) | |
tree | b7a1203dca52775715575e75147bf1be38cb1e15 /src/providers/ldap/sdap.c | |
parent | da1fd52202cffa3260470565b74af885a466cb00 (diff) | |
download | sssd-e0243c7f3638c819051b7235097a0bb2d06374fb.tar.gz sssd-e0243c7f3638c819051b7235097a0bb2d06374fb.tar.xz sssd-e0243c7f3638c819051b7235097a0bb2d06374fb.zip |
SDAP: Search functions don't need to construct per-domain names
The names are all internally qualified already, no need to distinguish
between subdomain users and main domain users.
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/providers/ldap/sdap.c')
-rw-r--r-- | src/providers/ldap/sdap.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 9a56d7a14..b0ff02b30 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -1565,15 +1565,9 @@ sdap_get_primary_name(TALLOC_CTX *memctx, return EINVAL; } - name = sss_get_domain_name(memctx, orig_name, dom); - if (name == NULL) { - DEBUG(SSSDBG_OP_FAILURE, - "Failed to format original name [%s]\n", orig_name); - return ENOMEM; - } - DEBUG(SSSDBG_TRACE_FUNC, "Processing object %s\n", name); + DEBUG(SSSDBG_TRACE_FUNC, "Processing object %s\n", orig_name); - *_primary_name = name; + *_primary_name = talloc_steal(memctx, name); return EOK; } |