diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 3ca2e286..c366dda0 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -323,15 +323,18 @@ errno_t sdap_parse_deref(TALLOC_CTX *mem_ctx, goto done; } + orig_dn = dref->derefVal.bv_val; + DEBUG(SSSDBG_TRACE_LIBS, + ("Dereferenced DN: %s\n", orig_dn)); + if (!dref->attrVals) { - DEBUG(2, ("Dereferenced entry has no attributes\n")); + DEBUG(SSSDBG_MINOR_FAILURE, + ("Dereferenced entry [%s] has no attributes\n", + orig_dn)); ret = EINVAL; goto done; } - orig_dn = dref->derefVal.bv_val; - DEBUG(7, ("Dereferenced DN: %s\n", orig_dn)); - ocs = NULL; for (dval = dref->attrVals; dval != NULL; dval = dval->next) { if (strcasecmp("objectClass", dval->type) == 0) { |