Tweaked test case to exercise the bug.
ticket: 5667
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21285
dc483132-0cff-0310-8789-
dd5450dbe970
/* and trailing null. If glob has no @, also allocate space for */
/* the realm. */
append_realm = (realm != NULL) && (strchr(glob, '@') == NULL);
- p = (char *) malloc(strlen(glob)*2+ 3 + (append_realm ? 2 : 0));
+ p = (char *) malloc(strlen(glob)*2+ 3 + (append_realm ? 3 : 0));
if (p == NULL)
return ENOMEM;
*regexp = p;
if (append_realm) {
*p++ = '@';
+ *p++ = '.';
*p++ = '*';
}
global KEY
global spawn_id
- spawn $KADMIN -p krbtest/admin@$REALMNAME -q "get_principals *"
+ # "*" would match everything
+ # "*n" should match a few like kadmin/admin but see ticket 5667
+ spawn $KADMIN -p krbtest/admin@$REALMNAME -q "get_principals *n"
expect_after {
"Cannot contact any KDC" {
fail "kadmin ldb lost KDC"