[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap database directory permission denied

On Tuesday, 4 August 2009 17:40:58 yilmaz wrote:
> Hello,
>    I have a problem to run openldap in a different directory other than
> /var/lib/ldap  I am using Redhat  AS 4 (update 4) with selinux disabled.
> Openldap version is 2.4.13 . The message written into syslog is "line 24:
> invalid path: Permission denied " . Line 24 specifies
> is a different directory than /var/lib/ldap and directory has the 755
> permission of the user running ldap daemon.
> Google search has revealed some issues on ubuntu and on redhat with selinux
> enabled but I have neither of these.
> If I change the directory to /var/lib/ldap everything works fine. I hope
> someone could shed me light on this issue.

$ ls -ldZ /var/lib/ldap

$ man chcon


# chcon --reference=/var/lib/ldap /var/myotherldapdir

However, this really has nothing to do with OpenLDAP, please consult SElinux 
documentation and support resources.