Skip to content

Commit

Permalink
Need to include base filter when searching for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Mar 23, 2013
1 parent 868f116 commit 0f20d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/rlm_ldap/rlm_ldap.c
Expand Up @@ -348,9 +348,9 @@ static int rlm_ldap_groupcmp(void *instance, REQUEST *request, UNUSED VALUE_PAIR
strlcpy(filter, gr_filter, sizeof(filter));
strlcpy(basedn, check->vp_strvalue, sizeof(basedn));
} else {
snprintf(filter, sizeof(filter), "(&(%s=%s)%s)",
snprintf(filter, sizeof(filter), "(&(%s=%s)%s%s)",
inst->groupobj_name_attr,
check->vp_strvalue, gr_filter);
check->vp_strvalue, inst->base_filter, gr_filter);

/*
* rlm_ldap_find_user does this, too. Oh well.
Expand Down

0 comments on commit 0f20d91

Please sign in to comment.