Technical Tip

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

tip
Reads:

1081

Score:
0
0
 
Comments:

0

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!





User Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <i> <strong> <cite> <code> <img><ul> <ol> <li> <div> <dl> <dt> <dd> <h1> <b> <strong> <h2> <h3> <pre> <table> <td> <tr> <th> <blockquote>
  • Lines and paragraphs break automatically.
  • Glossary terms will be automatically marked with links to their descriptions. If there are certain phrases or sections of text that should be excluded from glossary marking and linking, use the special markup, [no-glossary] ... [/no-glossary]. Additionally, these HTML elements will not be scanned: a, abbr, acronym, code, pre.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

© 2008 Novell, Inc. All Rights Reserved.