Lines Matching refs:rp
406 kadm5int_acl_impose_restrictions(kcontext, recp, maskp, rp)
410 restriction_t *rp;
416 ("* kadm5int_acl_impose_restrictions(..., *maskp=0x%08x, rp=0x%08x)\n",
417 *maskp, (long)rp));
418 if (!rp)
420 if (rp->mask & (KADM5_PRINC_EXPIRE_TIME|KADM5_PW_EXPIRATION))
424 if (rp->mask & KADM5_ATTRIBUTES) {
425 recp->attributes |= rp->require_attrs;
426 recp->attributes &= ~(rp->forbid_attrs);
429 if (rp->mask & KADM5_POLICY_CLR) {
432 } else if (rp->mask & KADM5_POLICY) {
433 if (recp->policy && strcmp(recp->policy, rp->policy)) {
438 recp->policy = strdup(rp->policy); /* XDR will free it */
444 if (rp->mask & KADM5_PRINC_EXPIRE_TIME) {
446 || (recp->princ_expire_time > (now + rp->princ_lifetime)))
447 recp->princ_expire_time = now + rp->princ_lifetime;
450 if (rp->mask & KADM5_PW_EXPIRATION) {
452 || (recp->pw_expiration > (now + rp->pw_lifetime)))
453 recp->pw_expiration = now + rp->pw_lifetime;
456 if (rp->mask & KADM5_MAX_LIFE) {
458 || (recp->max_life > rp->max_life))
459 recp->max_life = rp->max_life;
462 if (rp->mask & KADM5_MAX_RLIFE) {
464 || (recp->max_renewable_life > rp->max_renewable_life))
465 recp->max_renewable_life = rp->max_renewable_life;