mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
LDAP: fix galfind search: add uid in response and use cn in fullsearch filter
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1529 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
112a744216
commit
89bc774493
@ -1691,6 +1691,7 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
Contact contact = new Contact();
|
||||
contact.setName(response.get("Name"));
|
||||
contact.put("imapUid", response.get("Name"));
|
||||
contact.put("uid", response.get("Name"));
|
||||
if (LOGGER.isDebugEnabled()) {
|
||||
for (String key : response.keySet()) {
|
||||
if (!IGNORE_ATTRIBUTE_SET.contains(key) && !GALFIND_ATTRIBUTE_MAP.containsValue(key)) {
|
||||
|
@ -1369,7 +1369,7 @@ public class LdapConnection extends AbstractConnection {
|
||||
// full search
|
||||
for (char c = 'A'; c <= 'Z'; c++) {
|
||||
if (!abandon && persons.size() < sizeLimit) {
|
||||
for (ExchangeSession.Contact person : session.galFind(session.startsWith("imapUid", String.valueOf(c)),
|
||||
for (ExchangeSession.Contact person : session.galFind(session.startsWith("cn", String.valueOf(c)),
|
||||
convertLdapToContactReturningAttributes(returningAttributes), sizeLimit).values()) {
|
||||
persons.put(person.get("uid"), person);
|
||||
if (persons.size() == sizeLimit) {
|
||||
|
Loading…
Reference in New Issue
Block a user