(fix) only consider SMTP proxyAddresses for AD (fixes #3842)

This commit is contained in:
Ludovic Marcotte 2016-10-17 11:40:17 -04:00
parent 8d6e0342ec
commit b40d5e24d1

View file

@ -919,8 +919,11 @@ groupObjectClasses: (NSArray *) newGroupObjectClasses
{
ldapValue = [allValues objectAtIndex: i];
r = [ldapValue rangeOfString: @":"];
if (r.length)
{
// We only keep "smtp" ones
if ([[ldapValue lowercaseString] hasPrefix: @"smtp"])
[emails addObject: [ldapValue substringFromIndex: r.location+1]];
}
else