go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  How bind with the user account?
 
Subject: How bind with the user account?
Author: eLDAP
In response to: How to find the user?
Posted on: 01/17/2015 03:01:44 AM

ldapsearch -h localhost -p 389 -D "uid=Smith\, J\\oh\=n,cn=users,dc=example"
 -w secret -b "cn=users,dc=example" -s sub "(uid=Smith, John)"


Here, all tree chars ',', '\' and '=' must be escaped by '\'.


 

> On 01/17/2015 02:57:10 AM eLDAP wrote:

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 






References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.