Lines Matching defs:shpwd

89 	struct 	spwd 	*shpwd)
115 if ((shpwd->sp_inact > 0) && (retval == sizeof (ll)) &&
124 if (((time_t)((ll.ll_time / DAY) + shpwd->sp_inact)
126 (shpwd->sp_lstchg != 0) &&
127 (shpwd->sp_lstchg != -1) &&
128 ((shpwd->sp_lstchg + shpwd->sp_inact) < DAY_NOW)) {
149 new_password_check(shpwd, flags)
150 struct spwd *shpwd;
163 if (shpwd->sp_pwdp[0] == '\0') {
164 if (((shpwd->sp_max == -1) ||
165 ((time_t)shpwd->sp_lstchg > now) ||
166 ((now >= (time_t)(shpwd->sp_lstchg +
167 shpwd->sp_min)) &&
168 (shpwd->sp_max >= shpwd->sp_min)))) {
183 struct spwd *shpwd,
203 if (shpwd->sp_lstchg == 0)
207 if (shpwd->sp_max < 0 || shpwd->sp_max < shpwd->sp_min)
211 if (now < (time_t)(shpwd->sp_lstchg + shpwd->sp_max))
219 if (idledays > 0 && (now < (time_t)(shpwd->sp_lstchg + idledays)))
244 struct spwd shpwd)
251 if ((shpwd.sp_warn > 0) && (shpwd.sp_max > 0) &&
252 (now + shpwd.sp_warn) >= (time_t)(shpwd.sp_lstchg + shpwd.sp_max)) {
253 days = (time_t)(shpwd.sp_lstchg + shpwd.sp_max) - now;
297 struct spwd shpwd = {NULL, NULL,
326 shpwd.sp_namp = user;
367 shpwd.sp_pwdp = attr_pw[2].data.val_s;
394 shpwd.sp_lstchg = attr_spw[0].data.val_i;
395 shpwd.sp_min = attr_spw[1].data.val_i;
396 shpwd.sp_max = attr_spw[2].data.val_i;
397 shpwd.sp_warn = attr_spw[3].data.val_i;
398 shpwd.sp_inact = attr_spw[4].data.val_i;
399 shpwd.sp_expire = attr_spw[5].data.val_i;
400 shpwd.sp_flag = attr_spw[6].data.val_i;
406 if (shpwd.sp_pwdp == NULL)
408 else if (strncmp(shpwd.sp_pwdp, LOCKSTRING,
411 else if (strcmp(shpwd.sp_pwdp, NOPWDRTR) == 0)
424 user, pw, shpwd.sp_lstchg, shpwd.sp_min, shpwd.sp_max,
425 shpwd.sp_warn, shpwd.sp_inact, shpwd.sp_expire);
447 if (shpwd.sp_pwdp != NULL &&
448 strncmp(shpwd.sp_pwdp, LOCKSTRING, sizeof (LOCKSTRING) - 1) == 0) {
466 if (shpwd.sp_pwdp[0] == '\0' &&
485 if (shpwd.sp_expire > 0 &&
486 (time_t)shpwd.sp_expire < DAY_NOW) {
494 if (check_for_login_inactivity(pw_uid, &shpwd)) {
502 if (error = new_password_check(&shpwd, flags)) {
509 if ((error = perform_passwd_aging_check(pamh, &shpwd, flags))
518 warn_user_passwd_will_expire(pamh, shpwd);
543 if (shpwd.sp_pwdp) {
544 (void) memset(shpwd.sp_pwdp, 0, strlen(shpwd.sp_pwdp));
545 free(shpwd.sp_pwdp);