Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
(fix) only consider SMTP proxyAddresses for AD (fixes #3842)
  • Loading branch information
extrafu committed Oct 17, 2016
1 parent 8d6e034 commit b40d5e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion SoObjects/SOGo/LDAPSource.m
Expand Up @@ -919,9 +919,12 @@ - (void) _fillEmailsOfEntry: (NGLdapEntry *) ldapEntry
{
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];
Expand Down

0 comments on commit b40d5e2

Please sign in to comment.