1
0
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:
Remi Mollon 2012-01-24 17:42:49 +01:00
parent b42307d169
commit fd465d1261

View File

@ -381,6 +381,7 @@ authorize_user_token_ldap (struct cfg *cfg,
/* Compare each value for the attribute against the token id. */
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(!strncmp (token_id, vals[i]->bv_val + yubi_prefix_len, strlen (token_id)))