SUSE Conversations

How to migrate users from passwd to openLDAP, on a SLES 10 server

By: fpatterson

May 7, 2008 10:38 am





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

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/ /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


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

Make sure to do backups first!

0 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.

Tags: , ,
Categories: SUSE Linux Enterprise Server, Technical Solutions

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.