Changes

Jump to: navigation, search

OPS335-Lab-ldap

18 bytes added, 10:29, 28 March 2020
m
INVESTIGATION 4: Using Ldif Files
*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.
572
edits

Navigation menu