| /freebsd/contrib/pam-krb5/tests/module/ |
| H A D | password-t.c | 40 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 D | alt-auth-t.c | 42 config.authtok = krbconf->password; in main() 68 config.authtok = "bogus incorrect password"; in main() 75 config.authtok = krbconf->password; in main()
|
| H A D | expired-t.c | 151 config.authtok = krbconf->password; in main() 156 config.authtok = newpass; in main()
|
| H A D | bad-authtok-t.c | 40 config.authtok = "BAD PASSWORD THAT WILL NOT WORK"; in main()
|
| H A D | stacked-t.c | 37 config.authtok = krbconf->password; in main()
|
| H A D | long-t.c | 39 config.authtok = password; in main()
|
| H A D | fast-t.c | 39 config.authtok = krbconf->password; in main()
|
| H A D | realm-t.c | 42 config.authtok = krbconf->password; in main()
|
| H A D | fast-anon-t.c | 94 config.authtok = krbconf->password; in main()
|
| H A D | cache-cleanup-t.c | 40 config.authtok = krbconf->password; in main()
|
| /freebsd/lib/libpam/modules/pam_guest/ |
| H A D | pam_guest.c | 72 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 D | pam_get_authtok.c | 65 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 D | pam_exec.c | 174 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 D | auth.c | 231 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 D | data.c | 110 *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 D | script.h | 56 const char *authtok; /* Stored as AUTHTOK before PAM. */ member
|
| H A D | script.c | 300 if (config->authtok != NULL) in run_script() 301 pamh->authtok = bstrdup(config->authtok); in run_script()
|
| H A D | pam.h | 56 char *authtok; member
|
| H A D | general.c | 90 free(pamh->authtok); in pam_end()
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/password/ |
| H A D | authtok-force | 1 # Test password change with new authtok set but not old. -*- conf -*-
|
| H A D | authtok | 1 # Test password change with new authtok set but not old. -*- conf -*-
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/basic/ |
| H A D | force-first | 1 # Test force_first_pass without an authtok. -*- conf -*-
|
| H A D | force-first-debug | 1 # Test force_first_pass without an authtok. -*- conf -*-
|
| /freebsd/contrib/pam-krb5/tests/data/scripts/bad-authtok/ |
| H A D | no-prompt | 1 # Defer prompting to the Kerberos library after bad authtok. -*- conf -*-
|
| /freebsd/contrib/pam-krb5/tests/ |
| H A D | TESTS | 23 module/bad-authtok valgrind
|