(fix) only consider SMTP proxyAddresses for AD (fixes #3842)
This commit is contained in:
parent
8d6e0342ec
commit
b40d5e24d1
|
@ -919,9 +919,12 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
|
|||
{
|
||||
ldapValue = [allValues objectAtIndex: i];
|
||||
r = [ldapValue rangeOfString: @":"];
|
||||
|
||||
if (r.length)
|
||||
{
|
||||
[emails addObject: [ldapValue substringFromIndex: r.location+1]];
|
||||
// We only keep "smtp" ones
|
||||
if ([[ldapValue lowercaseString] hasPrefix: @"smtp"])
|
||||
[emails addObject: [ldapValue substringFromIndex: r.location+1]];
|
||||
}
|
||||
else
|
||||
[emails addObject: ldapValue];
|
||||
|
|
Loading…
Reference in a new issue