Home
last modified time | relevance | path

Searched refs:authtok (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/pam-krb5/tests/module/
H A Dpassword-t.c40 const char *authtok; in check_authtok() local
42 retval = pam_get_item(pamh, PAM_AUTHTOK, (PAM_CONST void **) &authtok); in check_authtok()
44 is_string(config->newpass, authtok, "...and it is correct"); in check_authtok()
79 config.authtok = newpass; in main()
88 config.authtok = NULL; in main()
129 config.authtok = newpass; in main()
134 config.authtok = krbconf->password; in main()
143 config.authtok = NULL; in main()
H A Dalt-auth-t.c42 config.authtok = krbconf->password; in main()
68 config.authtok = "bogus incorrect password"; in main()
75 config.authtok = krbconf->password; in main()
H A Dexpired-t.c151 config.authtok = krbconf->password; in main()
156 config.authtok = newpass; in main()
H A Dbad-authtok-t.c40 config.authtok = "BAD PASSWORD THAT WILL NOT WORK"; in main()
H A Dstacked-t.c37 config.authtok = krbconf->password; in main()
H A Dlong-t.c39 config.authtok = password; in main()
H A Dfast-t.c39 config.authtok = krbconf->password; in main()
H A Drealm-t.c42 config.authtok = krbconf->password; in main()
H A Dfast-anon-t.c94 config.authtok = krbconf->password; in main()
H A Dcache-cleanup-t.c40 config.authtok = krbconf->password; in main()
/freebsd/lib/libpam/modules/pam_guest/
H A Dpam_guest.c72 const char *authtok, *guests, *user; in pam_sm_authenticate() local
88 err = pam_get_authtok(pamh, PAM_AUTHTOK, &authtok, NULL); in pam_sm_authenticate()
92 strcmp(user, authtok) != 0) in pam_sm_authenticate()
95 pam_set_item(pamh, PAM_RUSER, authtok); in pam_sm_authenticate()
/freebsd/contrib/openpam/lib/libpam/
H A Dpam_get_authtok.c65 const char **authtok, in pam_get_authtok() argument
77 *authtok = NULL; in pam_get_authtok()
111 *authtok = prevauthtok; in pam_get_authtok()
160 r = pam_get_item(pamh, item, (const void **)authtok); in pam_get_authtok()
/freebsd/lib/libpam/modules/pam_exec/
H A Dpam_exec.c174 const char *authtok; in _pam_exec() local
260 authtok = item; in _pam_exec()
261 if (authtok == NULL && rc == PAM_SUCCESS) { in _pam_exec()
269 rc = pam_get_authtok(pamh, PAM_AUTHTOK, &authtok, NULL); in _pam_exec()
273 authtok_size = strlen(authtok) + 1; in _pam_exec()
391 if ((wlen = write(chin[1], authtok, authtok_size)) < 0) { in _pam_exec()
398 authtok += wlen; in _pam_exec()
/freebsd/contrib/pam-krb5/module/
H A Dauth.c231 maybe_retrieve_password(struct pam_args *args, int authtok, const char **pass) in maybe_retrieve_password() argument
241 status = pam_get_item(args->pamh, authtok, (PAM_CONST void **) pass); in maybe_retrieve_password()
278 prompt_password(struct pam_args *args, int authtok, const char **pass) in prompt_password() argument
282 const char *prompt = (authtok == PAM_AUTHTOK) ? NULL : "Current"; in prompt_password()
304 status = pam_set_item(args->pamh, authtok, password); in prompt_password()
313 status = pam_get_item(args->pamh, authtok, (PAM_CONST void **) pass); in prompt_password()
778 int authtok = (service == NULL) ? PAM_AUTHTOK : PAM_OLDAUTHTOK; in pamk5_password_auth() local
849 status = maybe_retrieve_password(args, authtok, &pass); in pamk5_password_auth()
878 status = prompt_password(args, authtok, &pass); in pamk5_password_auth()
/freebsd/contrib/pam-krb5/tests/fakepam/
H A Ddata.c110 *data = pamh->authtok; in pam_get_item()
154 free(pamh->authtok); in pam_set_item()
155 pamh->authtok = strdup(data); in pam_set_item()
156 if (pamh->authtok == NULL) in pam_set_item()
H A Dscript.h56 const char *authtok; /* Stored as AUTHTOK before PAM. */ member
H A Dscript.c300 if (config->authtok != NULL) in run_script()
301 pamh->authtok = bstrdup(config->authtok); in run_script()
H A Dpam.h56 char *authtok; member
H A Dgeneral.c90 free(pamh->authtok); in pam_end()
/freebsd/contrib/pam-krb5/tests/data/scripts/password/
H A Dauthtok-force1 # Test password change with new authtok set but not old. -*- conf -*-
H A Dauthtok1 # Test password change with new authtok set but not old. -*- conf -*-
/freebsd/contrib/pam-krb5/tests/data/scripts/basic/
H A Dforce-first1 # Test force_first_pass without an authtok. -*- conf -*-
H A Dforce-first-debug1 # Test force_first_pass without an authtok. -*- conf -*-
/freebsd/contrib/pam-krb5/tests/data/scripts/bad-authtok/
H A Dno-prompt1 # Defer prompting to the Kerberos library after bad authtok. -*- conf -*-
/freebsd/contrib/pam-krb5/tests/
H A DTESTS23 module/bad-authtok valgrind

12