<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Sid? What is he on about now? &#187; LDAP</title>
	<atom:link href="http://sidrit.wordpress.com/tag/ldap/feed/" rel="self" type="application/rss+xml" />
	<link>http://sidrit.wordpress.com</link>
	<description>The Almost-Daily Issue</description>
	<lastBuildDate>Fri, 23 Jan 2009 14:28:26 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='sidrit.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/f5c4786753302ab3b2733320c76230af?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Sid? What is he on about now? &#187; LDAP</title>
		<link>http://sidrit.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sidrit.wordpress.com/osd.xml" title="Sid? What is he on about now?" />
		<item>
		<title>LDAP Strikes again</title>
		<link>http://sidrit.wordpress.com/2007/03/17/ldap-strikes-again/</link>
		<comments>http://sidrit.wordpress.com/2007/03/17/ldap-strikes-again/#comments</comments>
		<pubDate>Sat, 17 Mar 2007 09:29:07 +0000</pubDate>
		<dc:creator>Sidrit Trandafili</dc:creator>
				<category><![CDATA[Fix-it !]]></category>
		<category><![CDATA[LDAP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nsswitch]]></category>

		<guid isPermaLink="false">http://sidrit.wordpress.com/2007/03/17/ldap-strikes-again/</guid>
		<description><![CDATA[Last  night around 1Am i was called in @ work due to &#8216; a few strange techie things happening here, Sid &#8216;.
Once got there figured out it was a lack of internal networking due.
For this to be thanked was our Microdowell UPS System holding the web/auth/smb machine.
This last pc is a Fedora 6 machine, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sidrit.wordpress.com&blog=975087&post=5&subd=sidrit&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Last  night around 1Am i was called in @ work due to &#8216; a few strange techie things happening here, Sid &#8216;.<br />
Once got there figured out it was a lack of internal networking due.<br />
For this to be thanked was our Microdowell UPS System holding the web/auth/smb machine.</p>
<p>This last pc is a Fedora 6 machine, which amongst many services runs also Ldap, for smb and mail authentication.</p>
<p>Trying to restart the machine, i was stuck forever on:</p>
<p><span id="more-5"></span><br />
<code>Starting System Message Bus ....</code></p>
<p>As i had the chance to figure out from the booting info, there was a previous failure to startup ldap.<br />
At least to start the machine, the solution seemed to be getting in Runlevel 1 ( which i basically the only mode that will be able to go through ) and edit /etc/nssswitch.conf.<br />
In this file commented all the lines that take info from Ldap.<br />
i.e:</p>
<p><code>#protocols:  files ldap</code></p>
<p>This will allow the system to start the services without the slapd support-</p>
<p>Now, i have heards a lot of folks around blaming Samba for the same problem.</p>
<p>I suggest them to look in the same file and they will probably notice that Ldap is set to give samba auth too.</p>
<p>So that started the server which after i edited the nsswitch again and tried to restart ldap, responded with the following:</p>
<p><code><br />
[root@tserver]# /etc/rc.d/init.d/ldap start<br />
Checking configuration files for slapd:  bdb_db_open: unclean shutdown detected; attempting recovery.<br />
bdb_db_open: Recovery skipped in read-only mode. Run manual recovery if errors are encountered.<br />
bdb_db_open: Database cannot be opened, err 13. Restore from backup!<br />
bdb(dc=domain,dc=com): DB_ENV-&gt;lock_id_free interface requires an environment configured for the locking subsystem<br />
backend_startup_one: bi_db_open failed! (13)<br />
slap_startup failed (test would succeed using the -u switch)<br />
[FAILED]<br />
stale lock files may be present in /var/lib/ldap          </p>
<p></code></p>
<p>so the server won&#8217;t start at all.</p>
<p>Now, Ldap is a wonderful piece of software but this is a very very annoying problem to have.</p>
<p>This is what will  help you:</p>
<p><code><br />
[root@theserver]# /usr/sbin/slapd_db_recover -v -h /var/lib/ldap<br />
Finding last valid log LSN: file: 1 offset 5324863<br />
Recovery starting from [1][5213551]<br />
Recovery complete at Sat Mar 17 09:13:51 2007<br />
Maximum transaction ID 8000040d Recovery checkpoint [1][5324863]<br />
</code></p>
<p>And at the end of this process you have to chown the files in /var/lib/ldap to<br />
ldap.ldap</p>
<p>Conclusively, if this happens (and knowing Ldap, it will)  this is what&#8217;s to be done:</p>
<li>Enter in runlevel 1, edit /etc/nsswitch.conf and comment out the lines that have ldap  and reboot.<br />
Edit the file again.<br />
try service ldap start ( to make sure this is your case)<br />
If the result is similar to mine above do:</p>
<p>/usr/sbin/slapd_db_recover -v -h /var/lib/ldap<br />
chown -R ldap.ldap /var/lib/ldap
</li>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sidrit.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sidrit.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sidrit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sidrit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sidrit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sidrit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sidrit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sidrit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sidrit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sidrit.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sidrit.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sidrit.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sidrit.wordpress.com&blog=975087&post=5&subd=sidrit&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://sidrit.wordpress.com/2007/03/17/ldap-strikes-again/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sidrit Trandafili</media:title>
		</media:content>
	</item>
	</channel>
</rss>