1
0
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:
mguessan 2009-03-19 15:04:30 +00:00
parent 6726a464fb
commit aa9e56de99

View File

@ -189,6 +189,7 @@ public class LdapConnection extends AbstractConnection {
IGNORE_MAP.add("augmentconfiguration"); IGNORE_MAP.add("augmentconfiguration");
IGNORE_MAP.add("ou"); IGNORE_MAP.add("ou");
IGNORE_MAP.add("apple-realname"); IGNORE_MAP.add("apple-realname");
IGNORE_MAP.add("apple-group-nestedgroup");
} }
// LDAP version // LDAP version
@ -605,12 +606,11 @@ public class LdapConnection extends AbstractConnection {
String sValue = value.toString(); String sValue = value.toString();
DavGatewayTray.debug(attributeName + " = " + value);
if (attributeName.equalsIgnoreCase("uid") && sValue.equals(userName)) { if (attributeName.equalsIgnoreCase("uid") && sValue.equals(userName)) {
// replace with actual alias instead of login name search // replace with actual alias instead of login name search
if (sValue.equals(userName)) { if (sValue.equals(userName)) {
sValue = session.getAlias(); sValue = session.getAlias();
DavGatewayTray.debug("Replaced " +userName+ " with " + sValue+" in uid filter");
} }
} }