diff options
| author | Greg Hudson <ghudson@mit.edu> | 2009-05-07 19:51:46 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2009-05-07 19:51:46 +0000 |
| commit | d1b0cf22c197d15ad16b7bad15776845053e605a (patch) | |
| tree | b9ba33a99d72dd78910ca9206d068316272b8a2c /src/lib/kadm5/unit-test | |
| parent | 8eb13e1a4ed504c1db92b363fb19d0b4efad64e6 (diff) | |
| download | krb5-d1b0cf22c197d15ad16b7bad15776845053e605a.tar.gz krb5-d1b0cf22c197d15ad16b7bad15776845053e605a.tar.xz krb5-d1b0cf22c197d15ad16b7bad15776845053e605a.zip | |
Allow more than 10 past keys to be stored by a policy
Remove the arbitrary limit of 10 past keys in policies. We were not
taking advantage of that limit in any other code.
ticket: 6482
target_version: 1.7
tags: pullup
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22323 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/unit-test')
| -rw-r--r-- | src/lib/kadm5/unit-test/api.0/crte-policy.exp | 35 | ||||
| -rw-r--r-- | src/lib/kadm5/unit-test/api.2/crte-policy.exp | 35 |
2 files changed, 0 insertions, 70 deletions
diff --git a/src/lib/kadm5/unit-test/api.0/crte-policy.exp b/src/lib/kadm5/unit-test/api.0/crte-policy.exp index e2d02a37f..e2185c76a 100644 --- a/src/lib/kadm5/unit-test/api.0/crte-policy.exp +++ b/src/lib/kadm5/unit-test/api.0/crte-policy.exp @@ -743,41 +743,6 @@ proc test21 {} { } test21 -# Description: (21.5) Rejects 11 for pw_history_num. -# 01/24/94: pshuang: untried. - -test "create-policy 21.5" -proc test215 {} { - global test - global prompt - - if {! (( ! [policy_exists "$test/a"]) || - [delete_policy "$test/a"])} { - error_and_restart "$test: couldn't delete principal \"$test/a\"" - return - } - - if {! [cmd { - ovsec_kadm_init admin admin $OVSEC_KADM_ADMIN_SERVICE null \ - $OVSEC_KADM_STRUCT_VERSION $OVSEC_KADM_API_VERSION_1 \ - server_handle - }]} { - perror "$test: unexpected failure in init" - return - } - - one_line_fail_test [format { - ovsec_kadm_create_policy $server_handle {"%s/a" 0 0 0 0 11 0} \ - {OVSEC_KADM_POLICY OVSEC_KADM_PW_HISTORY_NUM} - } $test] "BAD_HISTORY" - if { ! [cmd {ovsec_kadm_destroy $server_handle}]} { - perror "$test: unexpected failure in destroy" - return - } -} -test215 - - # Description: (22) Fails for user with no access bits. test "create-policy 22" proc test22 {} { diff --git a/src/lib/kadm5/unit-test/api.2/crte-policy.exp b/src/lib/kadm5/unit-test/api.2/crte-policy.exp index f11253c2c..2c42cb43f 100644 --- a/src/lib/kadm5/unit-test/api.2/crte-policy.exp +++ b/src/lib/kadm5/unit-test/api.2/crte-policy.exp @@ -743,41 +743,6 @@ proc test21 {} { } test21 -# Description: (21.5) Rejects 11 for pw_history_num. -# 01/24/94: pshuang: untried. - -test "create-policy 21.5" -proc test215 {} { - global test - global prompt - - if {! (( ! [policy_exists "$test/a"]) || - [delete_policy "$test/a"])} { - error_and_restart "$test: couldn't delete principal \"$test/a\"" - return - } - - if {! [cmd { - kadm5_init admin admin $KADM5_ADMIN_SERVICE null \ - $KADM5_STRUCT_VERSION $KADM5_API_VERSION_2 \ - server_handle - }]} { - perror "$test: unexpected failure in init" - return - } - - one_line_fail_test [format { - kadm5_create_policy $server_handle {"%s/a" 0 0 0 0 11 0} \ - {KADM5_POLICY KADM5_PW_HISTORY_NUM} - } $test] "BAD_HISTORY" - if { ! [cmd {kadm5_destroy $server_handle}]} { - perror "$test: unexpected failure in destroy" - return - } -} -test215 - - # Description: (22) Fails for user with no access bits. test "create-policy 22" proc test22 {} { |
