mirror of
https://github.com/moparisthebest/davmail
synced 2024-11-12 04:15:08 -05:00
LDAP: additional ignore attribute and improves log
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@468 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
6726a464fb
commit
aa9e56de99
@ -189,6 +189,7 @@ public class LdapConnection extends AbstractConnection {
|
||||
IGNORE_MAP.add("augmentconfiguration");
|
||||
IGNORE_MAP.add("ou");
|
||||
IGNORE_MAP.add("apple-realname");
|
||||
IGNORE_MAP.add("apple-group-nestedgroup");
|
||||
}
|
||||
|
||||
// LDAP version
|
||||
@ -605,12 +606,11 @@ public class LdapConnection extends AbstractConnection {
|
||||
|
||||
String sValue = value.toString();
|
||||
|
||||
DavGatewayTray.debug(attributeName + " = " + value);
|
||||
|
||||
if (attributeName.equalsIgnoreCase("uid") && sValue.equals(userName)) {
|
||||
// replace with actual alias instead of login name search
|
||||
if (sValue.equals(userName)) {
|
||||
sValue = session.getAlias();
|
||||
DavGatewayTray.debug("Replaced " +userName+ " with " + sValue+" in uid filter");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user