Article
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>
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.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 2129 reads


0