I have Redhat 7 server system which is configured for LDAP server. I need to know how many ldap users are available on the LDAP server. How to get this information in LDAP server? Is there any command available for that in Red Hat 7 system…?
To get the info about ldap server and the info about the user available in ldap server
use the below command from client machine
#getent passwd
once look at the below link it may helps you
It shows all usernames. I need to view only available ldap users
ldapsearch -ZW -x -D “uid=rnatarajan,ou=users,dc=xxxxx,dc=com” -p 389 -h ldap1.com -b “dc=xxxx,dc=com” -b “objectclass=*”