mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
@@ -165,7 +165,7 @@ static Class NSStringK;
|
||||
inDomain: (NSString *) sourceDomain
|
||||
{
|
||||
SOGoDomainDefaults *dd;
|
||||
NSNumber *udQueryLimit, *udQueryTimeout, *dotValue;
|
||||
NSNumber *udQueryLimit, *udQueryTimeout, *udGroupExpansionEnabled, *dotValue;
|
||||
|
||||
if ((self = [self init]))
|
||||
{
|
||||
@@ -238,6 +238,14 @@ static Class NSStringK;
|
||||
else
|
||||
_queryTimeout = [dd ldapQueryTimeout];
|
||||
|
||||
if ([[udSource allKeys] containsObject: @"SOGoLDAPGroupExpansionEnabled"])
|
||||
{
|
||||
udGroupExpansionEnabled = [udSource objectForKey: @"SOGoLDAPGroupExpansionEnabled"];
|
||||
_groupExpansionEnabled = [udGroupExpansionEnabled boolValue];
|
||||
}
|
||||
else
|
||||
_groupExpansionEnabled = [dd ldapGroupExpansionEnabled];
|
||||
|
||||
ASSIGN(_modulesConstraints, [udSource objectForKey: @"ModulesConstraints"]);
|
||||
ASSIGN(_filter, [udSource objectForKey: @"filter"]);
|
||||
ASSIGN(_userPasswordAlgorithm, [udSource objectForKey: @"userPasswordAlgorithm"]);
|
||||
@@ -1461,6 +1469,11 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
||||
return _groupObjectClasses;
|
||||
}
|
||||
|
||||
- (BOOL) groupExpansionEnabled
|
||||
{
|
||||
return _groupExpansionEnabled;
|
||||
}
|
||||
|
||||
static NSArray *
|
||||
_convertRecordToLDAPAttributes (LDAPSourceSchema *schema, NSDictionary *ldifRecord)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user