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

How to change openldap database directory

Hello Team,

I am very new to Linux and Openldap. We have setup a mail server on CentOS, Postfix, Dovecot, etc witth OpenLDAP as backend.

1) We want to change the daabase directory of Openldap from /var/lib/ldap to /var/vmail/ldap . Could someone please let me know the settings I need to make to achieve this?

2) I tried to creae /var/lib/ldap as a linked folder (actual database located under /var/vmail/ldap). Permissions to the files and folders under this were set exactly the same. when I start ldap service, i get the following error:
backend_startup_one: bi_db_open failed! (-1)
slap_startup failed (test would succeed using the -u switch)    [FAILED]
stale lock files may be present in /var/lib/ldap/dbname  [WARNING]
If I remove the linked folder and copy the contents to /var/lib/ldap, everything works perfectly fine. Is linked folder not going to work for ldap? or am I missing something here? (Please note that the folder /var/vmail is a separate LUN in the SAN).

I would like to achieve any one of the scinario mentioned above. Any help on this would be highly appreciated.

Best Regards
PineMail Admin