Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'fix-ldap-filter' of https://github.com/sgehrig/zf2 into…
Browse files Browse the repository at this point in the history
… hotfix/ldap-filter-import
  • Loading branch information
weierophinney committed Feb 9, 2012
2 parents 5d2013f + 8f8e24b commit 1a88668
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Adapter/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @uses Zend\Authentication\Adapter
* @uses Zend\Ldap\Ldap
* @uses Zend\Ldap\Exception
* @uses Zend\Ldap\Filter\Filter
* @uses Zend\Ldap\Filter
* @category Zend
* @package Zend_Authentication
* @subpackage Adapter
Expand Down Expand Up @@ -447,9 +447,9 @@ protected function _checkGroupMembership(\Zend\Ldap\Ldap $ldap, $canonicalName,
$user = $dn;
}

$groupName = \Zend\Ldap\Filter\Filter::equals($adapterOptions['groupAttr'], $adapterOptions['group']);
$membership = \Zend\Ldap\Filter\Filter::equals($adapterOptions['memberAttr'], $user);
$group = \Zend\Ldap\Filter\Filter::andFilter($groupName, $membership);
$groupName = \Zend\Ldap\Filter::equals($adapterOptions['groupAttr'], $adapterOptions['group']);
$membership = \Zend\Ldap\Filter::equals($adapterOptions['memberAttr'], $user);
$group = \Zend\Ldap\Filter::andFilter($groupName, $membership);
$groupFilter = $adapterOptions['groupFilter'];
if (!empty($groupFilter)) {
$group = $group->addAnd($groupFilter);
Expand Down

0 comments on commit 1a88668

Please sign in to comment.