Novell Home

Running Domino Console Commands on Password Change

Novell Cool Solutions: Tip
By Perry Nuffer

Digg This - Slashdot This

Posted: 14 Mar 2007
 

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>


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell