| 1 | = Monthly Process: EDIR Unit Changes Following BOR Structure Table Changes = |
| 2 | Original author: Beth Mercer - 20070607 |
| 3 | |
| 4 | |
| 5 | Approximately monthly, IR updates their BOR structure table and the corresponding |
| 6 | EDIR_STRUCTURE table, adding/deleting/modifying unit records. An EDIR stored procedure |
| 7 | is subsequently executed to update EDIR unit records with EDIR_STRUCTURE table changes. |
| 8 | Following the EDIR update, departments depending on EDIR unit information are informed of |
| 9 | the changes and requested to provide feedback. |
| 10 | |
| 11 | # on receipt of email stating BOR table updates are complete, |
| 12 | # update the registry and generate and apply directory LDIF |
| 13 | |
| 14 | # either via Appworx: |
| 15 | |
| 16 | EDIR_UNIT_UPDATES |
| 17 | |
| 18 | # or manually: |
| 19 | |
| 20 | # execute stored procedure to update registry |
| 21 | # ssh to sxldap account on summit |
| 22 | cd $HOME/local/ldap/registry |
| 23 | sqlplus / |
| 24 | @execute_xprocess |
| 25 | -- when prompted, enter the following: |
| 26 | ldap_dept_maint(false,return_status) |
| 27 | |
| 28 | -- the resulting output will be written to /tmp |
| 29 | exit |
| 30 | |
| 31 | # on completion of the registry update, |
| 32 | # copy and apply resulting LDIF |
| 33 | |
| 34 | # ask DBA group to execute the following to |
| 35 | # add world read permission to ldif files in /tmp |
| 36 | ~oracle/local/production/PMldap_tmp_chmod.ksh |
| 37 | |
| 38 | # after the file permissions have been changed, |
| 39 | # copy the resulting ldif to sxldap owned |
| 40 | # directory and to iplanet account on eklutna |
| 41 | cd $HOME/appworx/ |
| 42 | ./manage_ldif_files.ksh |
| 43 | |
| 44 | # after copying the resulting ldif, |
| 45 | # tell iplanet on eklutna to apply it |
| 46 | ./apply_ldif_files.ksh |
| 47 | |
| 48 | # have DBA group run this script to |
| 49 | # delete ldif from /tmp/ |
| 50 | ~oracle/local/production/PMldap_tmp_cleanup.ksh |
| 51 | |
| 52 | # after confirming LDIF applied, |
| 53 | # email summary of changes to sdedirregistry@email.alaska.edu |
| 54 | |
| 55 | # changes are listed in ldap_RPTS_dept_<date>.changes file |
| 56 | cd $HOME/local/ldap/extracts/ |
| 57 | ls -lrt *dept*changes|tail -1 # check date/time stamp |
| 58 | awk '{print $1}' $(ls -1rt *dept*changes|tail -1)|sort |uniq -c |
| 59 | |
| 60 | # compare EDIR structure to BOR structure and send |
| 61 | # email to Budget Offices soliciting response to unit changes |
| 62 | |
| 63 | cd $HOME/local/ldap/query |
| 64 | sqlplus / |
| 65 | @compare_edir_structure_to_bor.sql |
| 66 | exit |
| 67 | |
| 68 | # copy and paste screen output to email for budget offices |
| 69 | # with request for feedback |
| 70 | Recipients: Joan Harings <anjmh@uaa.alaska.edu>, Phill Harrington <fnplh@uaf.edu>, Lynn Wrightsman <lynn.wrightsman@uaf.edu>, Barbara Hyde <barbara.hyde@uas.alaska.edu>, Barbara Stockwell <barbara.stockwell@alaska.edu> |
| 71 | CC: sdedirregistry@email.alaska.edu |
| 72 | |
| 73 | # if the budget office respond with feedback |
| 74 | # then |
| 75 | # move EDIR data to new unit records if applicable |
| 76 | (TBD - see beth in meantime) |
| 77 | |
| 78 | # flag to keep, or delete, old unit records if applicable |
| 79 | (TBD - see beth in meantime) |
| 80 | |
| 81 | # Note: No EDIR unit record will be dropped from EDIR unless flagged |
| 82 | # in the EDIR_STRUCTURE table. This allows EDIR to reflect units w/o |
| 83 | # budget that are **not** retained in the BOR structure table. |
| 84 | |
| 85 | # notify sdtsaa of new/obsolete EDIRroles (associated with unit changes) |
| 86 | # NOTE: run show scripts before running add/delete scripts in next step |
| 87 | |
| 88 | # first generate list of new and obsolete edir unit related roles |
| 89 | # send 2 emails to sdtsaa; one with needed one with obsolete |
| 90 | @show_needed_dlevel_roles.sql |
| 91 | @show_needed_unit_roles.sql |
| 92 | @show_obsolete_dlevel_roles.sql |
| 93 | @show_obsolete_unit_roles.sql |
| 94 | |
| 95 | # update LDAP_ZUAUSR_ADMIN table, adding needed roles and deleting obsolete roles |
| 96 | # NOTE: run show scripts before running add/delete scripts |
| 97 | |
| 98 | @add_needed_dlevel_roles.sql |
| 99 | @add_needed_unit_roles.sql |
| 100 | @delete_obsolete_dlevel_roles.sql |
| 101 | @delete_obsolete_unit_roles.sql |
| 102 | |
| 103 | ########################################################[[br]] |
| 104 | LEGACY CHANGE HISTORY - NOTE: All subsequent changes are recorded in TracWiki[[br]] |
| 105 | ########################################################[[br]] |
| 106 | 20070906 sxelm corrected ldap_dept_maint reference (erroneously ldap_dept_update) |
| 107 | 20070608 sxelm replaced edir-admin-l references with sdedirregistry |
| 108 | 20070607 sxelm added reference to Appworx job that circumvents need for DBA support |