Lines Matching full:policy

115     ent.policy = name;  in create_simple_policy()
135 check(kadm5_get_policy(handle, x->policy, &g)); in compare_policy()
137 assert(strcmp(g.policy, x->policy) == 0); in compare_policy()
160 create_simple_princ(krb5_principal princ, char *policy) in create_simple_princ() argument
168 ent.policy = policy; in create_simple_princ()
169 if (policy != NULL) in create_simple_princ()
208 assert(strcmp(g.policy, x->policy) == 0); in compare_princ()
225 kadm5_get_policy(handle, g.policy, &pol) == 0) { in compare_princ()
226 /* Check the policy pw_max_life computation. */ in compare_princ()
237 assert(g.policy == NULL); in compare_princ()
286 /* Specify a policy so that kadmin/history is created. */ in test_chpass()
333 delete_policy(ent->policy); in cpol_test_compare()
345 ent.policy = "create-policy-test"; in test_create_policy()
405 /* Fails with existing policy name. */ in test_create_policy()
406 ent.policy = "test-pol"; in test_create_policy()
409 /* Fails with null or empty policy name, or invalid character in name. */ in test_create_policy()
410 ent.policy = NULL; in test_create_policy()
412 ent.policy = ""; in test_create_policy()
414 ent.policy = "pol\7"; in test_create_policy()
417 /* Fails with null handle or policy ent. */ in test_create_policy()
468 /* Fails with empty password or password prohibited by policy. */ in test_create_principal()
470 ent.policy = "test-pol"; in test_create_principal()
478 ent.policy = "nonexistent-pol"; in test_create_principal()
482 /* Test pw_expiration explicit specifications vs. policy pw_max_life. */ in test_create_principal()
483 ent.policy = "test-pol"; in test_create_principal()
496 ent.policy = "dict-only-pol"; in test_create_principal()
510 /* Fails with existing policy name. */ in test_create_principal()
540 krb5_principal princ = parse_princ("delete-policy-test-princ"); in test_delete_policy()
542 /* Fails with unknown policy. */ in test_delete_policy()
543 dpol_test_fail("admin", "delete-policy-test", KADM5_UNK_POLICY); in test_delete_policy()
545 /* Fails with empty policy name. */ in test_delete_policy()
549 create_simple_policy("delete-policy-test"); in test_delete_policy()
550 dpol_test_succeed("admin/delete", "delete-policy-test"); in test_delete_policy()
552 /* Succeeds even if a principal references the policy, since we now allow in test_delete_policy()
554 create_simple_policy("delete-policy-test"); in test_delete_policy()
555 create_simple_princ(princ, "delete-policy-test"); in test_delete_policy()
556 dpol_test_succeed("admin", "delete-policy-test"); in test_delete_policy()
625 assert(strcmp(ent.policy, name) == 0); in gpol_test_succeed()
643 /* Fails with unknown policy. */ in test_get_policy()
644 dpol_test_fail("admin", "unknown-policy", KADM5_UNK_POLICY); in test_get_policy()
646 /* Fails with empty or null policy name or a null handle. */ in test_get_policy()
651 /* Fails over RPC unless "get" ACL is granted or the principal's own policy in test_get_policy()
1027 ent.policy = "modify-policy-test"; in test_modify_policy()
1028 create_simple_policy(ent.policy); in test_modify_policy()
1081 delete_policy(ent.policy); in test_modify_policy()
1083 /* Fails with empty or null policy name. */ in test_modify_policy()
1084 ent.policy = NULL; in test_modify_policy()
1086 ent.policy = ""; in test_modify_policy()
1089 /* Fails with null handle or policy ent. */ in test_modify_policy()
1158 /* Setting a policy causes a pw_expiration computation. Explicit in test_modify_principal()
1159 * PW_EXPIRATION overrides the policy. */ in test_modify_principal()
1162 ent.policy = "dict-only-pol"; in test_modify_principal()
1164 ent.policy = "test-pol"; in test_modify_principal()
1264 * self-service if the policy minimum life has not elapsed since the last in test_randkey()
1277 /* Succeeds with change privilege in spite of policy minimum life. */ in test_randkey()