Lines Matching refs:policy
313 * If a policy was specified, load it.
317 if ((ret = kadm5_get_policy(handle->lhandle, entry->policy,
506 adb.policy = entry->policy;
509 /* increment the policy ref count, if any */
533 /* decrement the policy ref count */
538 * policy refcount wil be too high.
577 adb.policy, &polent))
647 /* get the new policy */
648 ret = kadm5_get_policy(handle->lhandle, entry->policy, &npol);
663 /* if we already have a policy, get it to decrement the refcnt */
666 if(strcmp(adb.policy, entry->policy)) {
668 adb.policy, &opol);
686 /* set us up to use the new policy */
688 if (adb.policy)
689 free(adb.policy);
690 adb.policy = strdup(entry->policy);
692 /* set pw_max_life based on new policy */
706 ret = kadm5_get_policy(handle->lhandle, adb.policy, &opol);
716 if (adb.policy)
717 free(adb.policy);
718 adb.policy = NULL;
889 adb.policy && (adb.aux_attributes & KADM5_POLICY)) {
890 if ((entry->policy = strdup(adb.policy)) == NULL) {
1161 * pol (r) adb's policy
1230 * The policy must have changed! Shrink the array.
1452 if ((ret = kadm5_get_policy(handle->lhandle, adb.policy, &pol)))
1485 /* the policy was loaded before */
1695 if ((ret = kadm5_get_policy(handle->lhandle, adb.policy,
1862 if ((ret = kadm5_get_policy(handle->lhandle, adb.policy,
2087 if ((ret = kadm5_get_policy(handle->lhandle, adb.policy,
2319 princ.policy, &pol)) != KADM5_OK) {