Thursday, October 01, 2009

Setting up openLDAP on Red Hat Linux Enterprise 5

1. Install the openldap, openldap-servers and openldap-clients packages by running "yum install openldap", "yum install openldap-servers" "yum install openldap-clients"

2. Follow instructions at http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Deployment_Guide/s2-ldap-files-slapd-conf.html

3. Run "/sbin/service ldap start"

4. If you get an error message similar to Starting slapd: /bin/bash: /tmp/start-slapd.h Permission denied then do the following:

In the /etc/init.d/ldap file on the line that reads:

wrapper=`mktemp ${TMP:-/tmp}/start-slapd.XXXXXX`

change the name of the directory to /var/tmp or /opt/openldap/tmp

i.e. wrapper=`mktemp ${TMP:-/var/tmp}/start-slapd.XXXXXX`

The reason this change is necessary is because on the machine where this error occurs the /tmp directory has been barred from running scripts. This may happen to /var/tmp also in which case you may need to set it up elsewhere like I did on /opt/

No comments:

Post a Comment