(LDAP_message2entry): if the entry is missing both krb5PrincipalName

and uid, it must be broken, ignore it and return it doesn't exists.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14383 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-12-11 18:55:18 +00:00
parent 0308613ed4
commit 30bd897db2

View File

@@ -927,6 +927,10 @@ LDAP_message2entry(krb5_context context, HDB * db, LDAPMessage * msg,
ret = krb5_parse_name(context, unparsed_name, &ent->principal);
if (ret)
goto out;
} else {
krb5_set_error_string(context, "hdb-ldap: ldap entry missing"
"principal name");
return HDB_ERR_NOENTRY;
}
}