(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:
@@ -765,6 +765,16 @@ krb5_425_conv_principal_ext(krb5_context context,
|
||||
dns_free_data(r);
|
||||
#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,
|
||||
|
Reference in New Issue
Block a user