想要摆脱linux机器中LDAP响应的控制

时间:2015-11-30 12:38:17

标签: java ldap unboundid-ldap-sdk

我们正在为项目使用unboundid-ldapsdk库,在响应中我们将控件作为Ldap响应示例中的入站字符: -

Example of Ldap Response :-
Query:
 ldapsearch -D "cn=Directory Manager" -w dsfdsdf -h localhost -p 8080 
-x -b  "dc=example,dc=com"  "(userid=2)"


Response:

# extended LDIF
#
# LDAPv3
# base <dc=example,dc=com> with scope subtree
# filter: (userid=2)
# requesting: ALL
#

# example.com
dn: dc=example,dc=com
control:: IGZhbHNl   ----want to get rid of this in response
LastName: LastName
language: English
USERID: 2

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

对于这个响应生成,我们在以下函数调用中将控制传递为空: - clientConnection.sendSearchResultEntry(messageID,entry,controls);

而且unboundid-ldapsdk正在完成剩下的工作。

所以请为此提供宝贵的研究:)

0 个答案:

没有答案