How to handle special characters in LDAP query -
i use ldapsearch on ubuntu
- access ldap server
- create cache-file returned results lookup addresses, phone-numbers, etc.
to create cache file use command
ldapsearch -h ldap.example.domain -lll -d cn=***,cn=***,dc=***,dc=*** -w -s 1 -b cn=***,dc=***,dc=*** "cn=*" sn givenname
works out, of cases, if search cache-file names, containing umlaut characters (e.g. üöäß
), no results returned.
reason:
max müller
for example encoded
max tco8bgxlcg==
by ldap server , therefore unusable within cache file. there possibility resolve this?
note: cannot change results of ldap server itself, since have no root access it.
what seeing normal ldapsearch results. generally, should not need create cache file ldap fast. values see in result base64 encoded.
you use unboundid ldap sdk java has memory based ldap server run locally.
Comments
Post a Comment