Lines Matching full:shadow
64 #include <shadow.h>
649 struct spwd *shadow; in modify_ent() local
668 * Since there are no shadow maps this is done by accessing in modify_ent()
673 /* Try to get shadow information */ in modify_ent()
674 shadow = get_old_shadow(yppwd->newpw.pw_name, domain); in modify_ent()
676 /* If there is shadow information make password aging checks */ in modify_ent()
677 if (NULL != shadow) { in modify_ent()
680 if (shadow->sp_max != -1) { in modify_ent()
681 if (now < shadow->sp_lstchg + shadow->sp_min) { in modify_ent()
684 "the last change", shadow->sp_min); in modify_ent()
685 free_shadow_entry(shadow); in modify_ent()
691 shadow->sp_lstchg = now; in modify_ent()
694 write_shadow_info(domain, shadow); in modify_ent()
696 free_shadow_entry(shadow); in modify_ent()
1161 * DESCRIPTION :Extracts and decodes shadow information from the DIT
1167 * OUTPUT : Shadow information in malloced memory. To be freed by caller.
1183 /* OK just have no shadow info in DIT */ in get_old_shadow()
1187 /* Pull shadow apart */ in get_old_shadow()
1190 "Could not alloc for shadow decode"); in get_old_shadow()
1268 * DESCRIPTION: Writes shadow information back to the DIT.
1297 logmsg(MSG_NOMEM, LOG_ERR, "Could not aloc for shadow write"); in write_shadow_info()
1301 /* Build up shadow string */ in write_shadow_info()
1326 * DESCRIPTION: Frees up a shadow information structure