Added feature: Passing of AUTHTOK to other modules.
This commit is contained in:
parent
b1c345d16d
commit
5d1e23c188
1 changed files with 4 additions and 0 deletions
|
@ -365,6 +365,10 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh, int flags,
|
|||
debug(pamh, "Could not get password from user. No TTY?");
|
||||
return PAM_AUTH_ERR;
|
||||
}
|
||||
else
|
||||
{
|
||||
pam_set_item(pamh, PAM_AUTHTOK, opts.passwd);
|
||||
}
|
||||
}
|
||||
|
||||
if( PAM_SUCCESS != parse_opts(&opts, argc, argv, PAM_SM_AUTH) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue