Changes

Jump to: navigation, search

OPS335-Lab-ldap

375 bytes added, 02:09, 6 January 2020
INVESTIGATION 2: Authenticating against LDAP
$DEFAULT_BASE = "dc=andrew,dc=ops";
$EXTENDED_SCHEMA = 1;</source>
#*Add 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>
grep -w <your username> /etc/passwd > /root/ldapusers.entry
</source>
*Use the ldapadd command to enter this new information into the database(see the Itzgeek tutorial for an example). As before use simple authentication, the distinguished name of the ldap administrator, and get prompted for a password.* Use ldapsearch to confirm that the new users have been added to the database.<br />You should get output similar to the following:
<source>
# extended LDIF
** jane with the UID 10001 and full name Jane Greystoke
** guest with the uid 10002 and full name Andrew's Guests
 
== INVESTIGATION 3: Authenticating against LDAP ==
* Read the second page of the Itzgeek guide for instructions on how to configure a CentOS machine to authenticate against an LDAP server.
* Follow those instructions for vm1, vm2, and vm3. Make sure that you update the IP address of your server in the arguments to the authconfig command.
* Confirm that you can log in using all three usernames on all your nested VMs (except vm4).
== INVESTIGATION 34: Using Ldif Files ==
An important capability of ldap is the ability to update the information in the database.
*Most updates will be run with specially formatted ldif files. These use the same structure as the files you created to add users, but will be shorter as they will only be changing one attribute.
'''Depending on your professor you will either be asked to submit the lab in class, or online. Follow the appropriate set of instructions below'''
===Online Submission (Peter CallaghanAhad Mammadov's sections only)===
Follow the instructions for lab X on blackboard.
572
edits

Navigation menu