Changes

Jump to: navigation, search

OPS335-Lab-ldap

1,335 bytes added, 21:41, 30 October 2019
INVESTIGATION 3: Using Ldif Files
== INVESTIGATION 3: 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.
*Each entry in an ldif file identifies an object to work with, and a changetype (which is an action to take on that object). Depending on the changetype, there might be an extra line for information to be changed or added.
*Write an ldif file called update1.ldif that will add the attribute roomNumber to the user with your username. Set the value of roomNumber to be the room your class takes place in.
*Use ldapmodify to apply this file to your database, then run a search to confirm the new entry has been added.
*Write a new ldif file called update2.ldif that will replace the email address of the user with your username so that it has your actual Seneca email address. Use ldapmodify again to apply this change to the database.
*Write a third ldif file called update3.ldif to delete the user john from the database, then apply that change using ldapmodify again.
*Use ldapsearch to confirm that these changes have taken place.
*Note that it is possible to write ldif files to make multiple changes at once, but that is beyond this course.
== COMPLETING THE LAB ==
932
edits

Navigation menu