Java 想要在linux机器中从LDAP响应中摆脱控制吗

Java 想要在linux机器中从LDAP响应中摆脱控制吗,java,ldap,unboundid-ldap-sdk,Java,Ldap,Unboundid Ldap Sdk,我们在项目中使用unbounded 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

我们在项目中使用unbounded 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
Ldap响应的示例:- 查询: ldapsearch-D“cn=目录管理器”-w dsfdsdf-h localhost-p 8080 -x-b“dc=example,dc=com”“(userid=2)” 答复: #扩展LDIF # #LDAPv3 #带作用域子树的基 #筛选器:(userid=2) #请求:全部 # #example.com dn:dc=example,dc=com 控件::IGZhbHNl----希望以此作为回应摆脱它 姓氏:姓氏 语言:英语 用户ID:2 #搜索结果 搜索:2 结果:0成功 #numResponses:2 #货币:1 对于此响应生成,我们在以下函数调用中将控制传递为空:- sendSearchResultEntry(messageID、条目、控件)

而非无限的ldapsdk正在做其余的事情


因此,请提供您有价值的研究:)

我不知道您在做什么。您使用的是ldapsearch还是“clientConnection.sendSearchResultEntry(messageID、条目、控件);”?是..在这种情况下,我们返回LdapSearch的响应,因为LdapSearch请求中没有传递任何控件,但是如果我们提供的控件为空,那么它将自动将控件设置为某个位置十六进制值,而不是每次显示控件IGZhbHN1的相同值..我们希望整个值不是参数值均为的控件不应出现