<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — How to change Openldap database directory]]></title>
		<link>https://forum.iredmail.org/topic1020-how-to-change-openldap-database-directory.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic1020.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to change Openldap database directory.]]></description>
		<lastBuildDate>Sun, 27 Jun 2010 08:45:59 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4460.html#p4460</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Change &#039;directory&#039; parameter in slapd.conf. Don&#039;t forget to set correct permission on new database directory.</p></blockquote></div><p>This method works for me on CENTOS 5.5, i386. Did you have correct permission on new database directory.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 27 Jun 2010 08:45:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4460.html#p4460</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4454.html#p4454</link>
			<description><![CDATA[<p>Here is the list of files under the database directory.<br />total 444044<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 Apr 21 03:40 accessPolicy.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May 15 23:41 accountStatus.bdb<br />-rw-r--r-- 1 ldap ldap&nbsp; &nbsp; &nbsp; 4096 Jun 25 23:57 alock<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;20480 May 15 23:41 cn.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;24576 Apr 19 20:26 __db.001<br />-rwx------ 1 ldap ldap 104857600 Apr 19 20:26 __db.002<br />-rwx------ 1 ldap ldap 335552512 Apr 19 20:26 __db.003<br />-rwx------ 1 ldap ldap&nbsp; &nbsp;2359296 Apr 19 20:26 __db.004<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; 557056 Apr 19 20:26 __db.005<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;24576 Apr 19 20:26 __db.006<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; &nbsp;921 Apr 19 20:26 DB_CONFIG<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;28672 May 15 23:41 dn2id.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May 15 23:41 domainAdmin.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 Apr 19 20:30 domainBackupMX.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May 15 23:41 domainGlobalAdmin.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:41 domainName.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;24576 May&nbsp; 4 20:56 enabledService.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:41 givenName.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 Apr 21 03:40 hasMember.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:56 homeDirectory.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;98304 May 15 23:41 id2entry.bdb<br />-rwx------ 1 ldap ldap&nbsp; 10485760 Jun 25 23:57 log.0000000001<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;28672 May 15 23:41 mail.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:56 mailMessageStore.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:41 memberOfGroup.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:56 mtaTransport.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;16384 May 15 23:41 objectClass.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 May&nbsp; 4 20:41 ou.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp; 8192 Apr 19 20:30 shadowAddress.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;16384 May&nbsp; 4 20:56 sn.bdb<br />-rwx------ 1 ldap ldap&nbsp; &nbsp; &nbsp;16384 May&nbsp; 4 20:56 uid.bdb</p>]]></description>
			<author><![CDATA[null@example.com (PineMail11)]]></author>
			<pubDate>Sat, 26 Jun 2010 10:01:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4454.html#p4454</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4445.html#p4445</link>
			<description><![CDATA[<p>Can you list all files in you directory and paste here?</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sat, 26 Jun 2010 01:42:34 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4445.html#p4445</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4442.html#p4442</link>
			<description><![CDATA[<p>Increased the logging as you sugested, but it did not log anything in openldap.log file. Tried to set the logging level and 128 and -1 as well, still nothing logged in the log file.<br />Also there is no .lock file under ldap or database directory. There was a file by name &quot;alock&quot;. Tried to remove this file, but did not make any difference.<br />If I remove the database from ldap folder, service starts fine.</p><p>Any other idea?</p>]]></description>
			<author><![CDATA[null@example.com (PineMail11)]]></author>
			<pubDate>Fri, 25 Jun 2010 19:00:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4442.html#p4442</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4440.html#p4440</link>
			<description><![CDATA[<p>Can you try to set &#039;loglevel 256&#039; in slapd.conf and then restart openldap? it will give your more details.</p><p>If it doesn&#039;t work, please make sure openldap is stopped, remove &#039;*.lock&#039; files under your ldap database directory, and then restart openldap.</p><p>post related log in /var/log/openldap.log here.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 25 Jun 2010 17:04:23 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4440.html#p4440</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4439.html#p4439</link>
			<description><![CDATA[<p>Thanks Zhang for the reply.<br />In fact, that is the first thing I did, I get the following error when I start ldap service.</p><p>Checking configuration files for slapd: bdb_db_open: Cannot access database directory /var/vamail/ldap/mydomain.com (13)<br />Backend_startup_one: bi_db_open failed! (-1)<br />Slap_startup failed (test would succeed using the –u switch) [FAILED]<br />Stale lock files may be present in /var/vmail/ldap/mydomain.com [WARNING]</p><p>Permission looks exactly the same. Any idea why this error?</p>]]></description>
			<author><![CDATA[null@example.com (PineMail11)]]></author>
			<pubDate>Fri, 25 Jun 2010 16:59:56 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4439.html#p4439</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4412.html#p4412</link>
			<description><![CDATA[<p>Change &#039;directory&#039; parameter in slapd.conf. Don&#039;t forget to set correct permission on new database directory.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 24 Jun 2010 10:22:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4412.html#p4412</guid>
		</item>
		<item>
			<title><![CDATA[How to change Openldap database directory]]></title>
			<link>https://forum.iredmail.org/post4411.html#p4411</link>
			<description><![CDATA[<p>Hello Team,</p><p>We are using iRedMail 0.6.0 with Openldap backend and iRedAdmin 1.2.0. As a part of disaster recovery strategy, we want to change the openldap database location.</p><p>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?</p><p>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: <br />backend_startup_one: bi_db_open failed! (-1)<br />slap_startup failed (test would succeed using the -u switch)&nbsp; &nbsp; [FAILED]<br />stale lock files may be present in /var/lib/ldap/dbname&nbsp; [WARNING]<br />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 folder is a separate LUN in the SAN). </p><p>I would like to achieve any one of the scinario mentioned above. I tried to get some help from Openldap forum and tech support, but did not get any reply back. Any help on this would be highly appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (PineMail11)]]></author>
			<pubDate>Thu, 24 Jun 2010 10:06:40 +0000</pubDate>
			<guid>https://forum.iredmail.org/post4411.html#p4411</guid>
		</item>
	</channel>
</rss>
