(krb5_425_conv_principal_ext): always put hostnames in lower case
(default_v4_name_convert): add imap git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8887 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -546,6 +546,7 @@ struct v4_name_convert {
|
|||||||
{ "ftp", "ftp" },
|
{ "ftp", "ftp" },
|
||||||
{ "hprop", "hprop" },
|
{ "hprop", "hprop" },
|
||||||
{ "pop", "pop" },
|
{ "pop", "pop" },
|
||||||
|
{ "imap", "imap" }
|
||||||
{ "rcmd", "host" },
|
{ "rcmd", "host" },
|
||||||
{ NULL, NULL }
|
{ NULL, NULL }
|
||||||
};
|
};
|
||||||
@@ -658,7 +659,17 @@ krb5_425_conv_principal_ext(krb5_context context,
|
|||||||
inst = hp->h_name;
|
inst = hp->h_name;
|
||||||
#endif
|
#endif
|
||||||
if(inst) {
|
if(inst) {
|
||||||
ret = krb5_make_principal(context, &pr, realm, name, inst, NULL);
|
char *low_inst = strdup(inst);
|
||||||
|
|
||||||
|
if (low_inst == NULL) {
|
||||||
|
#ifdef USE_RESOLVER
|
||||||
|
dns_free_data(r);
|
||||||
|
#endif
|
||||||
|
return ENOMEM;
|
||||||
|
}
|
||||||
|
ret = krb5_make_principal(context, &pr, realm, name, low_inst,
|
||||||
|
NULL);
|
||||||
|
free (low_inst);
|
||||||
if(ret == 0) {
|
if(ret == 0) {
|
||||||
if(func == NULL || (*func)(context, pr)){
|
if(func == NULL || (*func)(context, pr)){
|
||||||
*princ = pr;
|
*princ = pr;
|
||||||
|
Reference in New Issue
Block a user