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
--On Wednesday, June 23, 2010 12:50 PM +0530 Mail Admin pinemail11@gmail.com wrote:
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.
- 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?
Find the "directory" line in slapd.conf, which specifies the directory in which to store the database. This is, of course, easily discovered by reading the man pages.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
Stop slapd. Move the directory. Change the directory in slapd.conf. Start slapd.
- chris
Chris Jacobs, Systems Administrator Apollo Group | Apollo Marketing | Aptimus 2001 6th Ave Ste 3200 | Seattle, WA 98121 phone: 206.441.9100 x1245 | mobile: 206.601.3256 | fax: 206.441.9661 email: chris.jacobs@apollogrp.edu
----- Original Message ----- From: openldap-technical-bounces+chris.jacobs=apollogrp.edu@OpenLDAP.org openldap-technical-bounces+chris.jacobs=apollogrp.edu@OpenLDAP.org To: Mail Admin pinemail11@gmail.com; openldap-technical@openldap.org openldap-technical@openldap.org Sent: Thu Jun 24 11:10:32 2010 Subject: Re: How to change openldap database directory
--On Wednesday, June 23, 2010 12:50 PM +0530 Mail Admin pinemail11@gmail.com wrote:
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.
- 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?
Find the "directory" line in slapd.conf, which specifies the directory in which to store the database. This is, of course, easily discovered by reading the man pages.
--Quanah
--
Quanah Gibson-Mount Principal Software Engineer Zimbra, Inc -------------------- Zimbra :: the leader in open source messaging and collaboration
This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
openldap-technical@openldap.org