Placing New Groupwise Accounts in Two PO Objects, by Name, with IDM
Novell Cool Solutions: Tip
By Aaron Burgemeister
Reader Rating
from 1 ratings
|
Digg This -
Slashdot This
Posted: 3 Apr 2007 |
Problem
A Forum reader recently asked:
"I'm trying to place new Groupwise accounts in two different PO objects. One PO takes all users with CN's beginning with A through K, the other takes L through Z. I've been playing with IDM Policy builder, but apart from creating a heap of separate rules for A through Z, I can't really come up with a tidy solution. Does anyone have a good stylesheet suggestion for this?"
And here's the response from Aaron Burgemeister ...
Solution
You should only need (at most) two rules. The first rule should use a regular expression to say this:
if username starts with a character in the set (case insensitive) [a-k] put them in POAtoK
The second rule says the opposite. You could even take out the second condition and have a rule that just runs if it's hit, assuming you break out of your policy after the first rule's actions are run.
<if username starts with [a-k]> <do set placement in POAtoK /> <break /> </if> <do set placement in POLtoZ /> #Not reached if first rule runs because of the break.
Ta-da! Policy Builder should make this fairly simple. Tons of material is available online regarding regular expressions.
Reader Comments
- Groupwise balancing made our environment shine.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
