summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c
index b2bf0360..a20905e9 100644
--- a/src/providers/ldap/sdap_async.c
+++ b/src/providers/ldap/sdap_async.c
@@ -1970,6 +1970,12 @@ static errno_t sdap_asq_search_parse_entry(struct sdap_handle *sh,
/* Find all suitable maps in the list */
vals = ldap_get_values_len(sh->ldap, msg->msg, "objectClass");
+ if (!vals) {
+ DEBUG(SSSDBG_OP_FAILURE,
+ ("Unknown entry type, no objectClass found for DN [%s]!\n", dn));
+ ret = EINVAL;
+ goto done;
+ }
for (mi =0; mi < state->num_maps; mi++) {
map = NULL;
for (i = 0; vals[i]; i++) {