1.

How Can We Migrate Users In Ldap?

Answer»

Following:

  • Make changes according to your domain in /usr/share/migrationtools/migrate_common.ph
  • # ./migrate_base.pl > /root/base.ldif
  • # getent passwd | tail -N 5 > /root/users <<For 5 users>>
  • # getent shadow | tail -n 5 > /root/passwords <<For 5 users>>
  • # getent group | tail -n 5 > /root/groups <<For 5 groups>>
  • # ./migrate_passwd.pl /root/users
  • # ./migrate_passwd.pl /root/users > /root/users.ldif
  • # ./migrate_group.pl /root/groups
  • # ./migrate_group.pl /root/users > /root/groups.ldif
  • Update these files to LDAP server
    • # ldapadd -x -W -D “cn=Manager,dc=example,dc=com” -f /root/base.ldif
    • # ldapadd -x -W -D ‘cn=Manager,dc=example,dc=com” -f /root/users.ldif
    • # ldapadd -x -W -D “cn=Manager,dc=example,dc=com” -f /root/groups.ldif
  • VERIFY: # ldapsearch -x -B “dc=example,dc=com”

Following:



Discussion

No Comment Found