Skip to content

Commit

Permalink
fix(core): LDAP group expansion must use all user sources
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed May 5, 2020
1 parent 5da7903 commit 7b5c787
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SoObjects/SOGo/LDAPSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,8 @@ - (NSArray *) membersForGroupWithUID: (NSString *) uid
if (user)
{
[logins addObject: login];
[members addObject: user];
[members addObject: [NSDictionary dictionaryWithObject: login
forKey: @"c_uid"]];
}
[pool release];
}
Expand All @@ -2092,11 +2093,11 @@ - (NSArray *) membersForGroupWithUID: (NSString *) uid
pool = [NSAutoreleasePool new];
login = [uids objectAtIndex: i];
user = [SOGoUser userWithLogin: login roles: nil];

if (user)
{
[logins addObject: [user loginInDomain]];
[members addObject: user];
[logins addObject: login];
[members addObject: [NSDictionary dictionaryWithObject: login
forKey: @"c_uid"]];
}
[pool release];
}
Expand Down

0 comments on commit 7b5c787

Please sign in to comment.