The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

OpenLDAP setup

Discussion in 'General Discussion' started by pglock, Jul 15, 2008.

  1. pglock

    pglock Member

    Joined:
    Jun 14, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    I have sucessfully installed OpenLDAP from rpm on WHM using:

    Code:
    openldap
    openldap-devel
    openldap-servers
    openldap-clients
    I have followed the documentation on the openldap site, configured the slapd.conf, set ownership for all ldap files/directories to ldap.ldap and set a root password. So far, so good.

    When I run 'slaptest -d10' as root I get:

    Code:
    root@glockaa1 [~]# slaptest -d 10
    bdb_db_init: Initializing BDB database
    config file testing succeeded
    bdb(dc=glockaa1,dc=miniserver,dc=com): Database handles remain at environment close
    bdb(dc=glockaa1,dc=miniserver,dc=com): Open database handle: dn2id.bdb
    bdb(dc=glockaa1,dc=miniserver,dc=com): Open database handle: id2entry.bdb
    bdb_db_destroy: close failed: Invalid argument (22)
    and when I try to start slapd I get:

    Code:
    root@glockaa1 [~]# /etc/init.d/ldap start
    Checking configuration files for slapd:  config file testing succeeded
                                                               [  OK  ]
    Starting slapd: /etc/init.d/functions: line 148: /tmp/start-slapd.Y19535: Permission denied
                                                               [FAILED]
    
    Any ideas?
     
  2. pglock

    pglock Member

    Joined:
    Jun 14, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    <bump> anyone? </bump>
     
  3. Kurieuo

    Kurieuo Well-Known Member

    Joined:
    Dec 13, 2002
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Australia
    I get this same error, and came across the following on the net which helps explain things: http://www.openldap.org/lists/openldap-bugs/200604/msg00060.html

    'tmp' is mounted with noexec permissions and when OpenLDAP is run a script gets created in /tmp which needed executing. I have not tried any solutions yet, as I am currently recompiling Apache to add LDAP to PHP. However, the one provided at that URL has the following as a solution:

     
    #3 Kurieuo, Aug 9, 2008
    Last edited: Aug 9, 2008
Loading...

Share This Page