Skip Menu |
 

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.
From: tlyu@mit.edu
Subject: CVS Commit
* svr_iters.c (glob_to_regexp): Increment pointer, not character,
when handling backslash quoting. Patch from K.G. Gokulavasan.

Commit By: tlyu



Revision: 17399
Changed Files:
U trunk/src/lib/kadm5/srv/ChangeLog
U trunk/src/lib/kadm5/srv/svr_iters.c
From: tlyu@mit.edu
Subject: CVS Commit
pull up r17399 from trunk

Commit By: tlyu



Revision: 17419
Changed Files:
U branches/krb5-1-4/src/lib/kadm5/srv/ChangeLog
U branches/krb5-1-4/src/lib/kadm5/srv/svr_iters.c