[19482] in Kerberos_V5_Development
Special character in hostname may cause problem for built-in test
daemon@ATHENA.MIT.EDU (Neng Xue)
Wed Sep 7 20:06:24 2016
Message-ID: <57D0AB6F.5070108@oracle.com>
Date: Wed, 07 Sep 2016 17:06:07 -0700
From: Neng Xue <neng.xue@oracle.com>
MIME-Version: 1.0
To: krb5-bugs@mit.edu, krbdev@mit.edu
Cc: Solaris Krb iTeam <kerberos_iteam_ww_grp@oracle.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
Hi,
Recently I noticed there is a problem running MIT built-in test suite on
a machine with special symbols in its hostname.
To be specific:
My machine's hostname is neng-kz
In this case, codes located in line 413 from
src/lib/kadm5/unit-test/api.current/init-v2.exp
will time/error out since it can only match special symbols '/@' as
specified in the regular expression. In my case, the hostname contains
symbol '-' which caused the expect script to error out.
-------------------------------------
send "puts \$KADM5_ADMIN_SERVICE\n"
expect {
-re "(\[a-zA-Z/@\]+)\n$prompt" {
set KADM5_ADMIN_SERVICE $expect_out(1,string)
}
default {
error_and_restart "$test: timeout/eof getting admin_service"
return
}
}
send "puts \$KADM5_CHANGEPW_SERVICE\n"
expect {
-re "(\[a-zA-Z/@\]+)\n$prompt" {
set KADM5_CHANGEPW_SERVICE $expect_out(1,string)
}
default {
error_and_restart "$test: timeout/eof getting changepw_service"
return
}
}
-------------------------------------
I confirmed that if I added '-' to the regular expression, the test
suite can match and pass.
So is this the expected behavior or can I work around it by not changing
my machine's hostname? Thanks.
Best
--
Neng Xue
Oracle Solaris Software Engineer
Santa Clara, CA, USA
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev