<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=7336462756272110356&amp;blogName=Adminlinux.org++++(......)&amp;publishMode=PUBLISH_MODE_HOSTED&amp;navbarType=BLUE&amp;layoutType=CLASSIC&amp;searchRoot=http://www.adminlinux.org/search&amp;blogLocale=en_GB&amp;homepageUrl=http://www.adminlinux.org/&amp;vt=6729395747110618495" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div>

Dreaming Linux, Use free software Save the World....

Tuesday, 23 December 2008

How to Rebuild a corrupt Ldap Database

Rebuilding the Ldap Database is very simple, and yes you will have to rebuild the database sooner or later.

Here is how.

#Stop the services:
/etc/init.d/ldap stop

#rename folder
mv /var/lib/ldap /var/lib/ldap.backup.date

#create folder
mkdir /var/lib/ldap

#add database info
slapadd –l /backups/ldap_backup.ldif

#Set Owner
chown –R ldap:ldap /var/lib/ldap

#Set Perms
chmod –R 755 /var/lib/ldap

#Start Services
/etc/init.d/ldap start

Ldap should OK now.

Need Help? Join Our Chat Room

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home