Date: | Fri, 23 Sep 2005 01:58:29 -0600 |
From: | "K.G. Gokulavasan" <kgokulavasan@novell.com> |
To: | <krb5-bugs@mit.edu> |
Subject: | List principals lists wrong principals if principal name contains back slash |
Hi,
When we were trying out principal names with special characters, we
found out that listprincs option of kadmin.local looks for the wrong
principals if the principal name contains a back slash. It looks for ']'
character instead of '\'.
(e.g.) if the principal name is a\/b@REALM, then
kadmin.local: listprincs a\\/b@REALM
looks for the principal a]]/b@REALM.
Proposed fix:
File: krb5-1.4.2/src/lib/kadm5/srv/svr_iters.c
lines: 110, 113
Existing:
case '\\':
*p++ = '\\';
*p++ = ++*glob;
break;
Proposed:
case '\\':
*p++ = '\\';
*p++ = *++glob;
break;
Regards,
Gokul.
When we were trying out principal names with special characters, we
found out that listprincs option of kadmin.local looks for the wrong
principals if the principal name contains a back slash. It looks for ']'
character instead of '\'.
(e.g.) if the principal name is a\/b@REALM, then
kadmin.local: listprincs a\\/b@REALM
looks for the principal a]]/b@REALM.
Proposed fix:
File: krb5-1.4.2/src/lib/kadm5/srv/svr_iters.c
lines: 110, 113
Existing:
case '\\':
*p++ = '\\';
*p++ = ++*glob;
break;
Proposed:
case '\\':
*p++ = '\\';
*p++ = *++glob;
break;
Regards,
Gokul.