[krbdev.mit.edu #3190] List principals lists wrong principals if principal name contains back slash

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[krbdev.mit.edu #3190] List principals lists wrong principals if principal name contains back slash

Greg Hudson via RT
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.

_______________________________________________
krb5-bugs mailing list
[hidden email]
https://mailman.mit.edu/mailman/listinfo/krb5-bugs