diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-05-23 15:33:58 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-05-27 12:49:34 -0400 |
commit | f3458ed803ae97b6c6c7c63baeb82b26c4943d4c (patch) | |
tree | 371945b9e3ccc374f4a4211de295b99fd7669ae2 /src/lib/kadm5 | |
parent | 1e123231769fe640f446442cb210664d280ccbac (diff) | |
download | krb5-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')
-rw-r--r-- | src/lib/kadm5/unit-test/api.current/init.exp | 27 |
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 b324df887..d9ae3fbd8 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 {} { |