LDAP: do not log error on OSX groups request

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1550 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-11-22 09:38:37 +00:00
parent e07438a445
commit 7e199b398a
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ public class LdapConnection extends AbstractConnection {
static final String OD_USER_CONTEXT = "cn=users, o=od";
static final String OD_CONFIG_CONTEXT = "cn=config, o=od";
static final String COMPUTER_CONTEXT = "cn=computers, o=od";
static final String OD_GROUP_CONTEXT = "cn=groups, o=od";
/**
* Root DSE naming contexts (default and OpenDirectory)
@ -1414,7 +1415,7 @@ public class LdapConnection extends AbstractConnection {
} else {
DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_SEARCH_ANONYMOUS_ACCESS_FORBIDDEN", currentMessageId, dn));
}
} else if (dn != null && dn.length() > 0 && !OD_CONFIG_CONTEXT.equals(dn)) {
} else if (dn != null && dn.length() > 0 && !OD_CONFIG_CONTEXT.equals(dn) && !OD_GROUP_CONTEXT.equals(dn)) {
DavGatewayTray.debug(new BundleMessage("LOG_LDAP_REQ_SEARCH_INVALID_DN", currentMessageId, dn));
}