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 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 50 votes, average: 0.00 out of 5 (0 votes, average: 0.00 out of 5)
You need to be a registered member to rate this post.
Loading...
Categories: Uncategorized

Disclaimer: As with everything else at NetIQ Cool Solutions, this content is definitely not supported by NetIQ, so Customer Support will not be able to help you if it has any adverse effect on your environment.  It just worked for at least one person, and perhaps it will be useful for you too.  Be sure to test in a non-production environment.

Leave a Reply

No Comments
By: dgersic
Jul 19, 2006
12:00 am
Reads:
1,709
Score:
Unrated
Active Directory Automation Cloud Computing Cloud Security Configuration Customizing Data Breach DirXML Drivers End User Management Identity Manager Importing-Exporting / ICE/ LDIF Intelligent Workload Management Knowledge Depot LDAP Migrating from Windows XP or 2003 to SUSE Linux Monitoring Open Enterprise Server Passwords Reporting Secure Access Sentinel Supported Troubleshooting Workflow