forked from extern/egroupware
* ActiveDirectory/Mail: fix groups as distribution lists
This commit is contained in:
parent
85a7679049
commit
0b0aae31a3
@ -104,6 +104,7 @@ class Ads extends Ldap
|
||||
|
||||
// get filter for accounts (incl. additional filter from setup)
|
||||
$this->accountsFilter = $this->accounts_ads->type_filter('u');
|
||||
$this->contactsFilter = "(|(objectclass=contact)$this->accountsFilter)";
|
||||
|
||||
if ($ds)
|
||||
{
|
||||
|
@ -76,6 +76,12 @@ class Ldap
|
||||
*/
|
||||
var $accountsFilter = '(objectclass=posixaccount)';
|
||||
|
||||
/**
|
||||
* Filter used for all addressbooks
|
||||
* @var string
|
||||
*/
|
||||
var $contactsFilter = '(objectclass=inetorgperson)';
|
||||
|
||||
/**
|
||||
* @var string $allContactsDN holds the base DN of all addressbook
|
||||
*/
|
||||
@ -825,7 +831,7 @@ class Ldap
|
||||
$objectFilter = $this->accountsFilter;
|
||||
break;
|
||||
default:
|
||||
$objectFilter = '(objectclass=inetorgperson)';
|
||||
$objectFilter = $this->contactsFilter;
|
||||
break;
|
||||
}
|
||||
// exclude expired accounts
|
||||
|
Loading…
Reference in New Issue
Block a user