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

Re: Name/Location of .db file

hi jonathan-
you will probably find them under /usr/tmp...
also just for kicks here is how i go about saving what i had in the .dbb
and rebuilding it
with a newldif file....

cd /usr/local/etc/openldap # dir on my sys where openldap hides out :)
kill -TERM `cat /usr/local/var/slapd.pid` # this kills slapd
ldbmcat -n /usr/tmp/id2entry.dbb > rebuildldif #this stores the current
contents of the dbb
					       #in the file rebuildldif as a backup file

ldif2ldbm -j 6 -i newldif #this puts a new ldif file in the db or you
could make your 
			  #changes to the rebuildldif and feed it that...

/usr/local/libexec/slapd -f slapd.conf #this of course restarts slapd 

I got the above from a gent over at sendmail....it has worked for me
several times...as I 
continue to learn openldap and ldap in general....

take care-

jonathan wrote:
> I'm trying to evaluate OpenLDAP (slapd). I've compiled the latest stable
> release on RedHat 6, but I think I've botched the initial load.
> I want to erase the directory database and start again, but I cannot
> figure out where the directory information is actually stored.
> Can anyone tell me what the file is likely called and where it's kept?
> Thanks,
> Jonathan Donald

Ray Schneider
Operations Engineer	http://www.scoreboardinc.com
Founded gmulug		http://www.af-design.com/gmulug

Premature optimization is the root of all evil.
                            -D. Knuth