Description of problem: For authenticated connection to ldap server I use this command: ldapsearch -D "uid=admin,cn=users,cn=accounts,dc=usmqe,dc=redhat,dc=com" -b "uid=testldap,cn=users,cn=accounts,dc=usmqe,dc=redhat,dc=com" -h usm-ldap_hostname -s sub "(objectclass=*)" "*" -W but if I configure ldap user in configuration with user "admin" or "uid=admin,cn=users,cn=accounts,dc=usmqe,dc=redhat,dc=com" it stores settings(according message in UI) but there are no users in add LDAP user page. There is this error in log: ERROR ldapauth.go:290 ListExternalUsers Error binding to LDAP Server:ldap://usm-ldap_hostname:389/. error: LDAP::Bind() error (32) : No such object ERROR ldapauth.go:290 ListExternalUsers Error binding to LDAP Server:ldap://usm-ldap_hostname.com:389/. error: LDAP::Bind() error (32) : No such object ERROR auth.go:186 getExternalUsers Unable to List the users:LDAP::Bind() error (32) : No such object ERROR auth.go:186 getExternalUsers] Unable to List the users:LDAP::Bind() error (32) : No such object [negroni] Completed 500 Internal Server Error in 413.848835ms Tim's opinion: <tim__> i think its because user name 'admin' already exist in localauth Version-Release number of selected component (if applicable): rhscon-core-0.0.8-10.el7.x86_64 rhscon-ui-0.0.19-1.el7.noarch rhscon-ceph-0.0.6-10.el7.x86_64 How reproducible: 100% Expected results: User for LDAP connection can have same name as existing user in USM.
Patch sent to upstream for review: https://review.gerrithub.io/275286
The fix patch available https://review.gerrithub.io/#/c/277201/ This patch provides search attribute (uid/cn) details based on directory service type.
Tested with rhscon-core-0.0.29-1.el7scon.x86_64 rhscon-ui-0.0.43-1.el7scon.noarch and it works. -->VERIFIED