Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
<rule>
<description>Print Code Notify</description>
<comment xml:space="preserve">This uses a mapping table lib-PrintCodes that stores known PrintCodes. If a code is found that is not in the table it will email us and it will add it to the bottom of the Mapping Table with the PrintCode and the value False. The condition group excludes Students and Alumni so that the Lookups are only being done on staff. </comment>
<conditions>
<and>
<if-attr mode="regex" name="printcode" op="equal">...\....\.70104\...</if-attr>
</and>
</conditions>
<actions>
<do-set-local-variable name="printcodeNotiy" scope="policy">
<arg-string>
<token-map dest="notify" src="currentprintcode" table="..\..\Library\lib-PrintCode">
<token-attr name="printcode"/>
</token-map>
</arg-string>
</do-set-local-variable>
<do-set-local-variable name="lcl.printcode" scope="policy">
<arg-string>
<token-attr name="printcode"/>
</arg-string>
</do-set-local-variable>
<do-if>
<arg-conditions>
<and>
<if-local-variable mode="regex" name="printcodeNotiy" op="equal">.*FALSE.*</if-local-variable>
</and>
</arg-conditions>
<arg-actions>
<do-break/>
</arg-actions>
<arg-actions>
<do-if>
<arg-conditions>
<and>
<if-attr mode="regex" name="noEmail" op="not-equal">.*TRUE.*</if-attr>
</and>
</arg-conditions>
<arg-actions>
<do-send-email server="idmmail.davenport.edu" type="html">
<arg-string name="to">
<token-text xml:space="preserve">abc@davenport.edu</token-text>
</arg-string>
<arg-string name="from">
<token-text xml:space="preserve">Customer.Service@davenport.edu</token-text>
</arg-string>
<arg-string name="subject">
<token-text xml:space="preserve">New PrintCode Found "</token-text>
<token-local-variable name="lcl.printcode"/>
<token-text xml:space="preserve">"</token-text>
</arg-string>
<arg-string name="message">
<token-text xml:space="preserve">IDM dedicated a new PrintCode this means we need to adjust Equitrac for a new department and review IDM code for possible changes. Please have the person at DU who works on Equitrac adjust this new Department for employee printing. The known codes are stored in lib-PrintCode not in Code</token-text>
<token-local-variable name="lcl.printcode"/>
<token-text xml:space="preserve">" Is the new Number. </token-text>
<token-text xml:space="preserve">This message Produced by sub-etp-PrintingCodesAlert,cn=Subscriber,cn=BusinessLogic,cn=DriverSet1,o=services
</token-text>
</arg-string>
</do-send-email>
<do-set-local-variable name="myMappingTable" scope="policy">
<arg-node-set>
<token-xml-parse>
<token-base64-decode>
<token-src-attr name="DirXML-Data">
<arg-dn>
<token-global-variable name="myMappingTableDN"/>
</arg-dn>
</token-src-attr>
</token-base64-decode>
</token-xml-parse>
</arg-node-set>
</do-set-local-variable>
<do-set-local-variable name="myNewRow" scope="policy">
<arg-node-set>
<token-xml-parse>
<token-text xml:space="preserve"><row>
<col></token-text>
<token-local-variable name="lcl.printcode"/>
<token-text xml:space="preserve"></col>
<col>FALSE</col>
</row></token-text>
</token-xml-parse>
</arg-node-set>
</do-set-local-variable>
<do-clone-xpath dest-expression="$myMappingTable/mapping-table" src-expression="$myNewRow/row"/>
<do-set-src-attr-value name="DirXML-Data">
<arg-dn>
<token-global-variable name="myMappingTableDN"/>
</arg-dn>
<arg-value type="string">
<token-text xml:space="preserve"><?xml version="1.0"
encoding="UTF-8"?></token-text>
<token-xml-serialize>
<token-local-variable name="myMappingTable"/>
</token-xml-serialize>
</arg-value>
</do-set-src-attr-value>
</arg-actions>
<arg-actions/>
</do-if>
</arg-actions>
</do-if>
</actions>
</rule>
</policy>