mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-12-01 15:24:12 +01:00
Compare Token from LDAP and Input Against Configured Length
This commit is contained in:
parent
b5bd00db81
commit
027f5950d8
@ -436,7 +436,7 @@ authorize_user_token_ldap (struct cfg *cfg,
|
|||||||
{
|
{
|
||||||
retval = AUTH_NOT_FOUND;
|
retval = AUTH_NOT_FOUND;
|
||||||
}
|
}
|
||||||
if(token_id && !strncmp (token_id, vals[i]->bv_val + yubi_attr_prefix_len, strlen (vals[i]->bv_val + yubi_attr_prefix_len)))
|
if(token_id && !strncmp(token_id, vals[i]->bv_val + yubi_attr_prefix_len, cfg->token_id_length))
|
||||||
{
|
{
|
||||||
DBG ("Token found :: %s", vals[i]->bv_val);
|
DBG ("Token found :: %s", vals[i]->bv_val);
|
||||||
retval = AUTH_FOUND;
|
retval = AUTH_FOUND;
|
||||||
|
Loading…
Reference in New Issue
Block a user