We are using unboundid-ldapsdk library for our project ,in the response we are getting the control as inbound character in the Ldap response example as:-
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
for this response generation we are passing control as empty in the following function call:- clientConnection.sendSearchResultEntry(messageID, entry, controls);
and than the unboundid-ldapsdk is doing the rest of things.
so please provide your valuable research to this :)