Article

aburgemeister's picture
article
Reads:

1857

Score:
0
0
 
Comments:

0

Placing New Groupwise Accounts in Two PO Objects, by Name, with IDM

(View Disclaimer)

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.


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

© 2012 Novell