Article

pnuffer's picture
article
Reads:

5085

Score:
0
0
 
Comments:

0

Running Domino Console Commands on Password Change

(View Disclaimer)

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>


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell