Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.

Running Domino Console Commands on Password Change

Absent Member.
Absent Member.
0 0 3,441
0 Likes

Problem



A Forum reader recently asked:



"We are doing password sync between our Identity Vault and the httpPassword for Domino. I need to be able to run a few Domino Console commands when a password change comes from the Identity Vault. Any ideas on how to do this?"



And here's the response from Perry Nuffer ...



Solution



Try this:



<?xml version="1.0" encoding="UTF-8"?>
<policy xmlns:notes="http://www.novell.com/dirxml/notesdriver">
<rule>
<description>Trap distribution password, set Notes HTTPPassword, and
send Domino console commands</description>
<conditions>
<and>
<if-op-attr name="nspmDistributionPassword" op="available"/>
</and>
</conditions>
<actions>
<do-set-dest-attr-value class-name="User" name="HTTPPassword">
<arg-value type="string">
<token-op-attr name="nspmDistributionPassword"/>
</arg-value>
</do-set-dest-attr-value>
<do-strip-op-attr name="nspmDistributionPassword"/>
<do-append-xml-element expression=".."
name="notes:domino-console-command"/>
<do-append-xml-text
expression="../notes:domino-console-command[last()]">
<arg-string>
<token-text xml:space="preserve">load nserver -c "show nlcache
reset"</token-text>
</arg-string>
</do-append-xml-text>
<do-append-xml-element expression=".."
name="notes:domino-console-command"/>
<do-append-xml-text
expression="../notes:domino-console-command[last()]">
<arg-string>
<token-text xml:space="preserve">load nupdall names.nsf -t
"$users"</token-text>
</arg-string>
</do-append-xml-text>
</actions>
</rule>
</policy>

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.