From 30bd897db2952a5ae0948532db3fb4438ce01e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 11 Dec 2004 18:55:18 +0000 Subject: [PATCH] (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 --- lib/hdb/hdb-ldap.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/hdb/hdb-ldap.c b/lib/hdb/hdb-ldap.c index 8dd072946..5275e8417 100644 --- a/lib/hdb/hdb-ldap.c +++ b/lib/hdb/hdb-ldap.c @@ -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; } }