Hi, I recently installed OpenLdap-2.3.27 on my new redhat ES4. Can I use the old entries(Openldap 2.0.x) database(ldbm) on new Openldap-2.3.27. I copied all the entries and put it on the new server. but I am not able to read them in new server
Thks&Rgds --Venkat
On 4/4/07, Venkat Reddy Valluri venkat.valluri@quinnfable.com wrote:
Hi, I recently installed OpenLdap-2.3.27 on my new redhat ES4. Can I use the old entries(Openldap 2.0.x) database(ldbm) on new Openldap-2.3.27. I copied all the entries and put it on the new server. but I am not able to read them in new server
You need to slapcat the old database and slapadd the data into the new one. (or with 2.0 slapcat might have been called ldbmcat or something like that)
Can you please give me the best link for instructions to do this Thanks in advance --Venkat
-----Original Message----- From: matthew sporleder [mailto:msporleder@gmail.com] Sent: Wednesday, April 04, 2007 10:45 AM To: Venkat Reddy Valluri Cc: openldap-software@openldap.org Subject: Re: Can old database(ldbm, openldap-2.0.x) work with new database(ldbm openldap-2.3.27)
On 4/4/07, Venkat Reddy Valluri venkat.valluri@quinnfable.com wrote:
Hi, I recently installed OpenLdap-2.3.27 on my new redhat ES4. Can I use the old entries(Openldap 2.0.x) database(ldbm) on new Openldap-2.3.27. I copied all the entries and put it on the new server. but I am not able to read them in new server
You need to slapcat the old database and slapadd the data into the new one. (or with 2.0 slapcat might have been called ldbmcat or something like that)
On Wednesday 04 April 2007, Venkat Reddy Valluri wrote:
Can you please give me the best link for instructions to do this
Really, you could have found this very easily from the documentation, but, something like this should work:
[root@server1] service ldap stop [root@server1] slapcat -l backup.ldif [root@server1] scp backup.ldif server2:
[root@server2] service ldap stop [root@server2] slapadd -l backup.ldif [root@server2] service ldap start
(or, if you are using: http://anorien.warwick.ac.uk/mirrors/buchan/openldap/rhel4/ :
[root@server2] service ldap2.3 stop [root@server2] slapadd2.3 -l backup.ldif [root@server2] service ldap2.3 start )
However, openldap 2.0 was very lax at schema checking, and 2.1 and later are a lot more strict, so you may have some cleanup to do before the slapadd ...
Regards, Buchan
http://www.openldap.org/faq/data/cache/842.html
There's lots of threads on point in the openldap-software archives. In general, threads containing "slapcat and slapadd" often refer to this...
Now would be an excellent chance to change from ldbm to bdb or hdb, unless you don't particularly care about data integrity, ability to do backups, etc.
On Wed, 4 Apr 2007, Venkat Reddy Valluri wrote:
Hi, I recently installed OpenLdap-2.3.27 on my new redhat ES4. Can I use the old entries(Openldap 2.0.x) database(ldbm) on new Openldap-2.3.27. I copied all the entries and put it on the new server. but I am not able to read them in new server
Thks&Rgds --Venkat
openldap-software@openldap.org