question about princ type assignment in krb5_ldap_get_principal()
Will Fiveash
William.Fiveash at sun.com
Tue Jun 13 20:49:17 EDT 2006
In krb5_ldap_get_principal() in
src/plugins/kdb/ldap/libkdb_ldap/ldap_principal2.c I see:
if ((values=ldap_get_values(ld, ent, "objectclass")) != NULL) {
for(i=0; values[i] != NULL; ++i)
if (strcasecmp(values[i], "krbprincipal") == 0) {
ptype = KDB_SERVICE_PRINCIPAL;
break;
}
ldap_value_free(values);
}
Why is ptype set to KDB_SERVICE_PRINCIPAL if the objectclass is
krbprincipal?
--
Will Fiveash
Sun Microsystems Inc.
Austin, TX, USA (TZ=CST6CDT)
More information about the krbdev
mailing list