Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What's the easy way to do this?

share|improve this question
add comment

2 Answers

up vote 5 down vote accepted
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

share|improve this answer
1  
@TessellatingHeckler: Thanks, very high quality answer!! Cheers!! –  blunders Oct 22 '10 at 3:16
add comment

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.

share|improve this answer
    
@Fladi: Thanks! –  blunders Oct 22 '10 at 11:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.