HP-UX Reference (11i v2 03/08) - 3 Library Functions A-M (vol 6)
g
getprpwent(3) getprpwent(3)
int fd_nlogins; /* consecutive unsuccessful logins */
char fd_unsuctty[14]; /* tty of last unsuccessful login */
int fd_max_tries; /* maximum unsuc login tries allowed */
char fd_lock; /* Unconditionally lock account? */
};
struct pr_flag {
unsigned short
/* Identity: */
fg_name:1, /* Is fd_name set? */
fg_uid:1, /* Is fd_uid set? */
fg_encrypt:1, /* Is fd_encrypt set? */
fg_owner:1, /* Is fd_owner set? */
fg_boot_auth:1, /* Is fd_boot_auth set? */
fg_pw_audid:1, /* Is fd_auditcntl set? */
fg_pw_audflg:1, /* Is fd_auditdisp set? */
/* Password maintenance parameters: */
fg_min:1, /* Is fd_min set? */
fg_maxlen:1, /* Is fd_maxlen set? */
fg_expire:1, /* Is fd_expire set? */
fg_lifetime:1, /* Is fd_lifetime set? */
fg_schange:1, /* Is fd_schange set? */
fg_uchange:1, /* Is fd_fchange set? */
fg_acct_expire:1, /* Is fd_acct_expire set? */
fg_max_llogin:1, /* Is fd_max_llogin set? */
fg_pw_expire_warning:1, /* Is fd_pw_expire_warning set? */
fg_pswduser:1, /* Is fd_pswduser set? */
fg_pick_pwd:1, /* Is fd_pick_pwd set? */
fg_gen_pwd:1, /* Is fd_gen_pwd set? */
fg_restrict:1, /* Is fd_restrict set? */
fg_nullpw:1, /* Is fd_nullpw set? */
fg_pwchanger:1, /* Is fd_pwchanger set? */
fg_pw_admin_num:1, /* Is fd_pw_admin_num set? */
fg_gen_chars:1, /* Is fd_gen_chars set? */
fg_gen_letters:1, /* Is fd_gen_letters set? */
fg_tod:1, /* Is fd_tod set? */
/* Login parameters: */
fg_slogin:1, /* Is fd_slogin set? */
fg_suctty: 1, /* is fd_suctty set ? */
fg_unsuctty: 1, /* is fd_unsuctty set ? */
fg_ulogin:1, /* Is fd_ulogin set? */
fg_nlogins:1, /* Is fd_nlogins set? */
fg_max_tries:1, /* Is fd_max_tries set? */
fg_lock:1; /* Is fd_lock set? */
};
struct pr_passwd {
struct pr_field ufld; /* user specific fields */
struct pr_flag uflg; /* user specific flags */
struct pr_field sfld; /* system wide fields */
struct pr_flag sflg; /* system wide flags */
};
The protected password database stores user authentication profiles. The pr_passwd structure in the
user-specific entry refers to parameters specific to a user. The pr_passwd structure in the system default
database sets parameters that are used when there is no user-specific override.
The user-specific entry is keyed on the fd_name field, which is a cross reference to the
/etc/passwd or
the Network Information Service Plus (NIS+) passwd table entry for the user. The fd_uid field must
match the UID in that file or the NIS+ passwd table as well. The fd_encrypt field is the encrypted pass-
word. The password is encrypted in eight character segments, so the size of this field is a multiple of the
number of characters in an encrypted segment (AUTH_CIPHERTEXT_SIZE macro).
HP-UX 11i Version 2: August 2003 − 2 − Hewlett-Packard Company Section 3−−399