Accept any alias, not just the last value

If the entry's krbPrincipalName attribute is multi-valued, accept any of
the values, not just the last one we happen to examine.

https://fedorahosted.org/freeipa/ticket/3966

Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
This commit is contained in:
Nalin Dahyabhai authored and Petr Viktorin committed 2014-05-30 09:48:05 +02:00
1 parent 9f2c4705d7
commit fabd5cd62f
1 file changed
+3
+3
View File
@@ -776,6 +776,9 @@ static krb5_error_code ipadb_find_principal(krb5_context kcontext,
} else {
found = (strcmp(vals[i]->bv_val, (*principal)) == 0);
}
if (found) {
break;
}
}
ldap_value_free_len(vals);