mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-01-19 16:52:17 +01:00
add comment
This commit is contained in:
parent
b42307d169
commit
fd465d1261
@ -381,6 +381,7 @@ authorize_user_token_ldap (struct cfg *cfg,
|
|||||||
/* Compare each value for the attribute against the token id. */
|
/* Compare each value for the attribute against the token id. */
|
||||||
for (i = 0; vals[i] != NULL; i++)
|
for (i = 0; vals[i] != NULL; i++)
|
||||||
{
|
{
|
||||||
|
/* Only values containing this prefix are considered. */
|
||||||
if ((!cfg->yubi_prefix || !strncmp (cfg->yubi_prefix, vals[i]->bv_val, yubi_prefix_len)))
|
if ((!cfg->yubi_prefix || !strncmp (cfg->yubi_prefix, vals[i]->bv_val, yubi_prefix_len)))
|
||||||
{
|
{
|
||||||
if(!strncmp (token_id, vals[i]->bv_val + yubi_prefix_len, strlen (token_id)))
|
if(!strncmp (token_id, vals[i]->bv_val + yubi_prefix_len, strlen (token_id)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user