Lines Matching refs:password
69 char *password;
115 res = pam_get_item(pamh, PAM_AUTHTOK, (void **)&password);
119 if (password != NULL)
174 * The password prompt differs between users updating their
175 * own password, and users updating other an user's password
183 dgettext(TEXT_DOMAIN, "Enter %s's password: "),
191 dgettext(TEXT_DOMAIN, "Enter existing login password: "));
195 &password);
199 if (password == NULL) {
201 "got NULL password from get_authtok()");
211 * Non privileged user: so we need to check the old password
212 * and possible restrictions on password changes.
215 /* Get password and it's age from the repository specified */
248 * Chop off old SunOS-style password aging information.
250 * Note: old style password aging is only defined for UNIX-style
253 * support this style of password aging. If we don't remove
254 * the age field, users won't be able to change their password.
262 if (strcmp(crypt(password, rep_passwd), rep_passwd) != 0) {
269 * the password.
295 * change their password.
300 "this password."), service);
309 retval = pam_set_item(pamh, PAM_AUTHTOK, (void *)password);
312 if (password) {
313 (void) memset(password, 0, strlen(password));
314 free(password);