(krb5_425_conv_principal_ext): try using lower case realm as domain,

but only when given a verification function


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10734 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-09-20 09:46:20 +00:00
parent a72c878c4f
commit 711a1c5f24

View File

@@ -765,6 +765,16 @@ krb5_425_conv_principal_ext(krb5_context context,
dns_free_data(r); dns_free_data(r);
#endif #endif
} }
if(func != NULL) {
snprintf(host, sizeof(host), "%s.%s", instance, realm);
strlwr(host);
ret = krb5_make_principal(context, &pr, realm, name, host, NULL);
if((*func)(context, pr)){
*princ = pr;
return 0;
}
krb5_free_principal(context, pr);
}
/* /*
* if the instance is the first component of the local hostname, * if the instance is the first component of the local hostname,