must kinit as admin again

This commit is contained in:
Trevor Cooper 2023-08-23 11:27:47 -07:00
parent fac560caa1
commit 365e4e9192
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -119,6 +119,7 @@ sub run {
assert_script_run "printf 'correcthorse\nbatterystaple\nbatterystaple' | kinit test2\@$ipa_realm"; assert_script_run "printf 'correcthorse\nbatterystaple\nbatterystaple' | kinit test2\@$ipa_realm";
# add a sudo rule # add a sudo rule
assert_script_run "echo '$ipa_admin_password' | kinit admin";
assert_script_run 'ipa sudorule-add testrule --desc="Test rule in IPA" --hostcat=all --cmdcat=all --runasusercat=all --runasgroupcat=all'; assert_script_run 'ipa sudorule-add testrule --desc="Test rule in IPA" --hostcat=all --cmdcat=all --runasusercat=all --runasgroupcat=all';
assert_script_run 'ipa sudorule-add-user testrule --users="test1"'; assert_script_run 'ipa sudorule-add-user testrule --users="test1"';
validate_script_output 'ipa sudorule-show testrule', sub { $_ =~ m/Rule name: testrule/ }; validate_script_output 'ipa sudorule-show testrule', sub { $_ =~ m/Rule name: testrule/ };