Changes

Jump to: navigation, search

OPS335-Lab-ldap

31 bytes added, 13:39, 27 March 2020
INVESTIGATION 2: Adding Users to LDAP
Perform the Following steps on your LDAP server VM:
*Before we start adding users, we need to tell the tool that is going to translate between normal user accounts and LDAP structure a little about our domain.
*Make a backup of the '''/usr/share/migrationtools/migrate_common.ph ''' to the '''/root ''' directory.Modify the following parameters in the '''original ''' file to the values shown below:
<source>$DEFAULT_MAIL_DOMAIN = "andrew.ops";
$DEFAULT_BASE = "dc=andrew,dc=ops";
$EXTENDED_SCHEMA = 1;</source>
*Add /Create a new user to this machine with your username and a UID of 10000. Set their password as well.
*Migrating them into LDAP will take several steps:
*Extract the passwd entries of your new user from /etc/passwd to a file called ldapusers.entry
</source>
*Use the '''migrate_passwd.pl ''' file to convert the user information you extracted earlier into an ldif file:
<source>/usr/share/migrationtools/migrate_passwd.pl /root/ldapusers.entry /root/ldapusers.ldif</source>
This should generate an ldif file similar to the following:
572
edits

Navigation menu