我正在使用unboundid ldap sdk執行ldap查詢。運行ldap搜索查詢時遇到了一個奇怪的問題。當我針對包含50k個條目的組運行查詢時,我得到一個異常。我的例外:已超出LDAPException大小限制
LDAPException(resultCode=4 (size limit exceeded), errorMessage='size limit exceeded')
at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.nextElement(LDAPSearchResults.java:254)
at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.next(LDAPSearchResults.java:279)
現在奇怪的是我已經設置maxResultSize在搜索100K限制比爲什麼我收到這個錯誤? 我的代碼是
ld = new LDAPConnection();
ld.connect(ldapServer, 389);
LDAPSearchConstraints ldsc = new LDAPSearchConstraints();
ldsc.setMaxResults(100000);
ld.setSearchConstraints(ldsc);
任何人有什麼想法?
哪個LDAP服務器供應商? – jwilleke