1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Fix OSX directory search on uid

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1294 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-07-26 23:45:18 +00:00
parent 2426acdbea
commit 60066db7be

View File

@ -1088,13 +1088,14 @@ public class LdapConnection extends AbstractConnection {
return null;
}
ExchangeSession.Condition condition;
ExchangeSession.Condition condition = null;
if (operator == LDAP_FILTER_EQUALITY) {
condition = session.equals(contactAttributeName, value);
} else if ("*".equals(value)) {
condition = session.not(session.isNull(contactAttributeName));
} else {
// do not allow substring search on integer field imapUid
} else if (!"imapUid".equals(contactAttributeName)){
// endsWith not supported by exchange, convert to contains
if (mode == LDAP_SUBSTRING_FINAL || mode == LDAP_SUBSTRING_ANY) {
condition = session.contains(contactAttributeName, value);