mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-05 05:18:51 +00:00
fix(core): decompose LDAP nested groups
This commit is contained in:
@@ -2031,9 +2031,9 @@ _makeLDAPChanges (NGLdapConnection *ldapConnection,
|
||||
NSMutableArray *dns, *uids, *logins;
|
||||
NSString *dn, *login;
|
||||
SOGoUserManager *um;
|
||||
NSDictionary *d;
|
||||
NSDictionary *d, *contactInfos;
|
||||
SOGoUser *user;
|
||||
NSArray *o;
|
||||
NSArray *o, *users;
|
||||
NSAutoreleasePool *pool;
|
||||
int i, c;
|
||||
NGLdapEntry *entry;
|
||||
@@ -2098,8 +2098,17 @@ _makeLDAPChanges (NGLdapConnection *ldapConnection,
|
||||
user = [SOGoUser userWithLogin: login roles: nil];
|
||||
if (user)
|
||||
{
|
||||
[logins addObject: login];
|
||||
[members addObject: user];
|
||||
contactInfos = [self lookupContactEntryWithUIDorEmail: login inDomain: nil];
|
||||
if ([contactInfos objectForKey: @"isGroup"])
|
||||
{
|
||||
users = [self membersForGroupWithUID: login];
|
||||
[members addObjectsFromArray: users];
|
||||
}
|
||||
else
|
||||
{
|
||||
[logins addObject: login];
|
||||
[members addObject: user];
|
||||
}
|
||||
}
|
||||
[pool release];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user