Added feature: Passing of AUTHTOK to other modules.

This commit is contained in:
Sascha Spreitzer 2009-05-25 11:08:24 +02:00
parent b1c345d16d
commit 5d1e23c188

View file

@ -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) )