ldap_bind: Invalid credentials (49)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi
I am trying to search ldap user using the following command but with invalid credentials error:

# ldapsearch -x -h ldaps://idm.example.net -p 636 -b "dc=example,dc=net" -D "uid=ldapbind,cn=users,cn=account,dc=example,dc=net"  uid=ambariadmin1 -W
Enter LDAP Password: 
ldap_bind: Invalid credentials (49)

I have double checked the password but the error still persists.

Before that, i have added a ldap bind user with the following procedure

[root@example ~]# cat ldapbind.ldif 
dn: uid=ldapbind,cn=users,cn=accounts,dc=example,dc=net
changetype: add
objectclass: account
objectclass: simplesecurityobject
uid: ambaribind
userPassword: secret123
passwordExpirationTime: 20380119031407Z
nsIdleTimeout: 0

[root@example ~]# ldapmodify -h example.net -p 389 -x -D "cn=Directory Manager" -w 'secret123' -f ldapbind.ldif
adding new entry "uid=ldapbind,cn=users,cn=accounts,dc=example,dc=net"
[root@example ~]# ipa user-show ambaribind --raw --all
  dn: uid=ldapbind,cn=users,cn=accounts,dc=example,dc=net
  uid: ldapbind
  nsaccountlock: FALSE
  has_password: TRUE
  has_keytab: FALSE
  objectClass: account
  objectClass: simplesecurityobject
  objectClass: top

Without bind user, i can search the user 
[root@example ~]# ldapsearch -x -h idm.infodetics.net  -p 389 -b "cn=ambari,dc=example,dc=net" uid=ambariadmin1

Can any one plz guide me where is the issue ?
Regards
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-users@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux