directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: Issue with Ldapsearch - apacheds
Date Thu, 15 Sep 2016 12:58:00 GMT
Try using -x (ldapsearch defaults to SASL BIND when -x is not present in
the command line)

On Thu, Sep 15, 2016 at 2:38 PM, Kailash Kalahasti <
kailash.kalahasti@gmail.com> wrote:

> Team,
>
> I have some issue while using ldapsearch with uid against apacheds
>
>
> *ldapsearch -h test.hostname.com <http://test.hostname.com> -p 3389 -D
> "uid=XYZ,ou=Users,dc=example,dc=com" -w *** -b
> "ou=Users,dc=example,dc=com"
> -s base "(&(objectclass=person)(uid=XYZ))"*
>
> but getting an error
>
>
> *The simple bind attempt failed*
> *Result Code:  49 (Invalid Credentials)*
> *Additional Information:  INVALID_CREDENTIALS: Bind failed: Attempt to
> lookup non-existant entry: uid=XYZ,ou=Users,dc=example,dc=com*
>
> is it something wrong with the query ? Im using some standard example LDIF
> file provided
>
>
> Here is the LDIF File used by me ( some example file i got form internet)
>
> version: 1
>
> dn: cn=Adan Abrams,ou=Users,dc=example,dc=com
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: person
> objectClass: organizationalPerson
> cn: Adan Abrams
> sn: Abrams
> description: 19741108000000Z
> employeeNumber: 7
> givenName: Adan
> telephoneNumber: 254-323-1920
> telephoneNumber: 902-451-7619
> uid: aabrams
> userPassword:: e1NTSEF9bzFtTWVQbHBmRHpBTUVHUy
> tab1RXNEtnTFVWZXJYSFE1TXFGSUE9P
>  Q==
>
> dn: ou=Groups,dc=example,dc=com
> objectClass: top
> objectClass: organizationalUnit
> ou: Groups
>
> dn: cn=Chuck Brunato,ou=Users,dc=example,dc=com
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: person
> objectClass: organizationalPerson
> cn: Chuck Brunato
> sn: Brunato
> description: 19650324000000Z
> employeeNumber: 3
> givenName: Chuck
> telephoneNumber: 169-637-3314
> telephoneNumber: 907-547-9114
> uid: cbrunato
> userPassword:: e1NTSEF9c2xGY3VTOVRrY2owZzZHMX
> NweE9DNGVNanlmYktMcC80TnhFVGc9P
>  Q==
>
> dn: dc=example,dc=com
> objectClass: top
> objectClass: domain
> dc: example
>
> dn: ou=Users,dc=example,dc=com
> objectClass: top
> objectClass: organizationalUnit
> ou: Users
>
> dn: cn=XYZ,ou=Users,dc=example,dc=com
> objectClass: top
> objectClass: inetOrgPerson
> objectClass: person
> objectClass: organizationalPerson
> cn: XYZ
> sn: XYZ
> description: 78654321
> employeeNumber: 520
> givenName: XYZLDAP
> telephoneNumber: 000-000-000
> uid: XYZ
> userPassword:: e1NTSEF9SVIvVHdFUkxJc21xbU9HUU
> hiN05aQ2ZFWUhGb0R0Z2tmU3ljY0E9P
>  Q==
>
>
> Please suggest if any experiences with the same issue .
>
>
> Kailash
>



-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message