The openLDAP packages that Novell put in place on SLES 10 did not include the migration tools.

There are some good migration tools to turn your /etc/passwd, /etc/group and /etc/shadow files into a ldap database.

Please see http://www.padl.com/OSS/MigrationTools.html

Let’s suppose you copied the Migration files from the padl web site to the /tmp directory. You can use the following command line to execute it:

/tmp/migrate_passwd.pl /etc/passwd >> /tmp/ldap.ldif

Now you have to import /tmp/ldap.ldif file into your ldap database. In order to do that, you will have to run ldapadd command like the following one:

ldapadd -x  -f /tmp/ldap.ldif -D "<YOUR ROOTDN VALUE>" -w password

Example:

ldapadd -x  -f /tmp/ldap.ldif -D cn=administrator,o=novell -w password

Make sure to do backups first!

(Visited 1 times, 1 visits today)
Tags: , ,
Category: SUSE Linux Enterprise Server, Technical Solutions
This entry was posted Wednesday, 7 May, 2008 at 10:38 am
You can follow any responses to this entry via RSS.

Leave a Reply

Your email address will not be published. Required fields are marked *

No comments yet