mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-18 06:54:15 +01:00
drop password parameter for authorized_user_token_ldap()
This commit is contained in:
parent
5709a4479a
commit
336351188b
@ -215,7 +215,6 @@ free_out:
|
|||||||
static int
|
static int
|
||||||
authorize_user_token_ldap (struct cfg *cfg,
|
authorize_user_token_ldap (struct cfg *cfg,
|
||||||
const char *user,
|
const char *user,
|
||||||
const char *password,
|
|
||||||
const char *token_id)
|
const char *token_id)
|
||||||
{
|
{
|
||||||
int retval = 0;
|
int retval = 0;
|
||||||
@ -1021,7 +1020,7 @@ pam_sm_authenticate (pam_handle_t * pamh,
|
|||||||
|
|
||||||
/* authorize the user with supplied token id */
|
/* authorize the user with supplied token id */
|
||||||
if (cfg->ldapserver != NULL || cfg->ldap_uri != NULL)
|
if (cfg->ldapserver != NULL || cfg->ldap_uri != NULL)
|
||||||
valid_token = authorize_user_token_ldap (cfg, user, onlypasswd, otp_id);
|
valid_token = authorize_user_token_ldap (cfg, user, otp_id);
|
||||||
else
|
else
|
||||||
valid_token = authorize_user_token (cfg, user, otp_id, pamh);
|
valid_token = authorize_user_token (cfg, user, otp_id, pamh);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user