blunders Asked: 2010-10-22 17:33:31 +0800 CST2010-10-22 17:33:31 +0800 CST 2010-10-22 17:33:31 +0800 CST How do I tell if OpenLDAP is installed on CentOS, and test that it's working? 772 What's the easy way to do this? centos testing ldap openldap 2 Answers Voted Best Answer TessellatingHeckler 2010-10-22T18:52:19+08:002010-10-22T18:52:19+08:00 yum list installed will show you if it's installed. chkconfig --list will show you if the service is running (might be called slapd) Config will be somewhere like /etc/openldap/* and you can see if it's been configured. Test it by querying it with something like: ldapsearch -x -b 'dc=mycompany,dc=com' 'objectclass=*' but you might have to know how it's (supposed to be) configured to know what to search for. http://home.roadrunner.com/~computertaijutsu/ldap.html Fladi 2010-10-23T03:19:41+08:002010-10-23T03:19:41+08:00 Another way would be: pidof slapd If this results in an integer (the PID of the process), you have a running OpenLDAP server. If there is no output, it's not running.
will show you if it's installed.
will show you if the service is running (might be called slapd)
Config will be somewhere like /etc/openldap/* and you can see if it's been configured.
Test it by querying it with something like:
but you might have to know how it's (supposed to be) configured to know what to search for.
http://home.roadrunner.com/~computertaijutsu/ldap.html
Another way would be:
If this results in an integer (the PID of the process), you have a running OpenLDAP server. If there is no output, it's not running.