summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/unit-test
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2013-05-23 15:33:58 -0400
committerGreg Hudson <ghudson@mit.edu>2013-05-27 12:49:34 -0400
commitf3458ed803ae97b6c6c7c63baeb82b26c4943d4c (patch)
tree371945b9e3ccc374f4a4211de295b99fd7669ae2 /src/lib/kadm5/unit-test
parent1e123231769fe640f446442cb210664d280ccbac (diff)
downloadkrb5-f3458ed803ae97b6c6c7c63baeb82b26c4943d4c.tar.gz
krb5-f3458ed803ae97b6c6c7c63baeb82b26c4943d4c.tar.xz
krb5-f3458ed803ae97b6c6c7c63baeb82b26c4943d4c.zip
Make empty passwords work via init_creds APIs
In the gak_data value used by krb5_get_as_key_password, separate the already-known password from the storage we might have allocated to put it in, so that we no longer use an empty data buffer to determine whether we know the password. This allows empty passwords to work via the API. Remove the kadm5 test which explicitly uses an empty password. Based on a patch from Stef Walter. ticket: 7642
Diffstat (limited to 'src/lib/kadm5/unit-test')
-rw-r--r--src/lib/kadm5/unit-test/api.current/init.exp27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lib/kadm5/unit-test/api.current/init.exp b/src/lib/kadm5/unit-test/api.current/init.exp
index b324df887c..d9ae3fbd82 100644
--- a/src/lib/kadm5/unit-test/api.current/init.exp
+++ b/src/lib/kadm5/unit-test/api.current/init.exp
@@ -99,33 +99,6 @@ proc test6 {} {
}
if { $RPC } { test6 }
-test "init 7"
-proc test7 {} {
- global test
-
- send "kadm5_init admin \"\" \$KADM5_ADMIN_SERVICE null \$KADM5_STRUCT_VERSION \$KADM5_API_VERSION_3 server_handle\n"
-
- expect {
- -re "assword\[^\r\n\]*:" { }
- -re "key:$" { }
- eof {
- fail "$test: eof instead of password prompt"
- api_exit
- api_start
- return
- }
- timeout {
- fail "$test: timeout instead of password prompt"
- return
- }
- }
- one_line_succeed_test "admin"
- if {! [cmd {kadm5_destroy $server_handle}]} {
- error_and_restart "$test: couldn't close database"
- }
-}
-if { $RPC } { test7 }
-
test "init 8"
proc test8 {} {