Subject: How to find the user?
Author: eLDAP
In response to: Group Account
Posted on: 01/17/2015 02:57:10 AM
ldapsearch -h localhost -p 389 -b "cn=users,dc=example" -s sub "(uid=Smith, J\5coh=n)"
Here in the filter (uid: Smith, J\oh=n), ',' and '=' are normal chars and only '\' is special and hence must be encoded as '\5c'
The search should succeed and bring result:
dn: uid=Smith\, J\\oh\=n,cn=users,dc=example
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
givenName: J\oh=n
sn: Smith
uid: Smith, J\oh=n
>
> On 01/17/2015 02:40:58 AM
eLDAP wrote:
The group to whom the user belongs is
dn: cn=special users,ou=groups,dc=example
objectclass: top
objectclass: groupofuniquenames
cn: special users
ou: groups
uniquemember: uid=Smith\, J\\oh\=n,cn=users,dc=example
uniquemember: uid=Joe Smith,cn=users,dc=example
References: