Failed to login by ldapuser3 - Ldap user - How to add user in ldap database

Failed to login when we added new user in LDAP setup.

Here the reference :slight_smile:
ldapsearch -x cn=ldapuser3 -b dc=example,dc=com

extended LDIF

LDAPv3

base <dc=example,dc=com> with scope subtree

filter: cn=ldapuser3

requesting: ALL

search result

search: 2
result: 0 Success

numResponses: 1

[root@rhel7-1 migrationtools]#
[root@rhel7-1 migrationtools]#
[root@rhel7-1 migrationtools]# ldapsearch -x cn=ldapuser3 -b dc=example,dc=com

extended LDIF

LDAPv3

base <dc=example,dc=com> with scope subtree

filter: cn=ldapuser3

requesting: ALL

search result

search: 2
result: 0 Success

numResponses: 1

[root@rhel7-1 migrationtools]# ldapsearch -x cn=ldapuser2 -b dc=example,dc=com

extended LDIF

LDAPv3

base <dc=example,dc=com> with scope subtree

filter: cn=ldapuser2

requesting: ALL

ldapuser2, People, example.com

dn: uid=ldapuser2,ou=People,dc=example,dc=com
uid: ldapuser2
cn: ldapuser2
sn: ldapuser2
mail: ldapuser2@example.com
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword:: e2NyeXB0fSQ2JElobmpaREYxJDh5U2p2TjZCc2dRQ0FKMVovWEpjWnpDWTFwT0l
uLzQ2VFJtYlphaldrLnNObjQwOTBKNWd6bW03ald5bXpJc0Q0QlNmbkFUQ0tkNXdVVjZWZEFiZVAx
shadowLastChange: 16926
shadowMin: 0
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 1002
gidNumber: 1002
homeDirectory: /home/ldapuser2

ldapuser2, Group, example.com

dn: cn=ldapuser2,ou=Group,dc=example,dc=com
objectClass: posixGroup
objectClass: top
cn: ldapuser2
userPassword:: e2NyeXB0fXg=
gidNumber: 1002

search result

search: 2
result: 0 Success

numResponses: 3

numEntries: 2

[root@rhel7-1 migrationtools]#
[root@rhel7-1 migrationtools]#
[root@rhel7-1 migrationtools]# getent passwd ldapuser3
ldapuser3:x:1003:1003::/home/ldapuser3:/bin/bash
[root@rhel7-1 migrationtools]#

by ldapuser 1 and ldapuser we are able to login but when - we create new user then failed.