Article
article
Reads:
1107
Score:
Problem
A Forum reader asked the following question:
"I found a sample in the documentation for the GroupWise Driver, but I can't seem to make it work. How/where do I apply XSLT if I'm using IDM 2 and the GW Driver?"
And here's a solution from David Gersic ...
Solution
I'm doing it here, using the following code in the Subscriber Command Transform:
<?xml version="1.0" encoding="UTF-8"?><policy> <rule> <description>Account Disabled - Change Mailbox to Not Visible</description> <conditions> <and> <if-op-attr name="Login Disabled" op="changing-to">TRUE</if-op-attr> </and> </conditions> <actions> <do-set-dest-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">4</token-text> </arg-value> </do-set-dest-attr-value> <do-set-src-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">4</token-text> </arg-value> </do-set-src-attr-value> <do-break/> </actions> </rule> <rule> <description>Account Enabled - Change Mailbox to Visible</description> <conditions> <and> <if-op-attr name="Login Disabled" op="changing-to">FALSE</if-op-attr> </and> </conditions> <actions> <do-set-dest-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">2</token-text> </arg-value> </do-set-dest-attr-value> <do-set-src-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">2</token-text> </arg-value> </do-set-src-attr-value> <do-break/> </actions> </rule> <rule> <description>Account Expired - Change Mailbox to Not Visible</description> <conditions> <and> <if-global-variable name="GW.UserExpire" op="equal">expire</if-global-variable> <if-op-attr name="NGW: Mailbox Expiration Time" op="changing"/> <if-op-attr mode="regex" name="NGW: Mailbox Expiration Time" op="changing-to">.*</if-op-attr> <if-class-name op="equal">User</if-class-name> </and> </conditions> <actions> <do-set-dest-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">4</token-text> </arg-value> </do-set-dest-attr-value> <do-set-src-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">4</token-text> </arg-value> </do-set-src-attr-value> <do-break/> </actions> </rule> <rule> <description>Account Unexpired - Change Mailbox to Visible</description> <conditions> <and> <if-global-variable name="GW.UserExpire" op="equal">expire</if-global-variable> <if-op-attr name="NGW: Mailbox Expiration Time" op="changing"/> <if-op-attr mode="regex" name="NGW: Mailbox Expiration Time" op="changing-from">.*</if-op-attr> <if-class-name op="equal">User</if-class-name> </and> </conditions> <actions> <do-set-dest-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">2</token-text> </arg-value> </do-set-dest-attr-value> <do-set-src-attr-value name="NGW: Visibility"> <arg-value type="string"> <token-text xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">2</token-text> </arg-value> </do-set-src-attr-value> <do-break/> </actions> </rule> </policy>





0