Lines Matching defs:user
144 const char *user;
149 retval = pam_get_user(pamh, &user, USER_PROMPT);
153 PAM_LOG("Got user: %s", user);
176 asprintf(&principal, "%s/%s", (const char *)sourceuser, user);
178 od_principal_for_user(pamh, user, &principal);
180 principal = strdup(user);
261 /* Verify the local user exists (AFTER getting the password) */
262 if (strchr(user, '@')) {
281 if (getpwnam_r(user, &pwdbuf, pwbuffer, sizeof(pwbuffer), &pwd) != 0 || pwd == NULL) {
439 const void *user;
476 retval = pam_get_item(pamh, PAM_USER, &user);
480 PAM_LOG("Got user: %s", (const char *)user);
514 if (getpwnam_r(user, &pwdbuf, pwbuffer, sizeof(pwbuffer), &pwd) != 0 || pwd == NULL) {
540 PAM_LOG("pam_sm_setcred: krb5 user %s doesn't have a principal", (char *)user);
547 PAM_LOG("pam_sm_setcred: krb5 user %s doesn't have a password", (char *)user);
770 const void *user;
776 retval = pam_get_item(pamh, PAM_USER, &user);
780 PAM_LOG("Got user: %s", (const char *)user);
817 if (krb5_kuserok(pam_context, princ, (const char *)user))
848 const void *user;
854 retval = pam_get_item(pamh, PAM_USER, &user);
858 PAM_LOG("Got user: %s", (const char *)user);
873 krbret = krb5_parse_name(pam_context, (const char *)user, &princ);
980 * user. If the Kerberos server doesn't respond, assume the user is