Novell Home

Checking strings in OU-names, not object names

Novell Cool Solutions: Question & Answer

Posted: 21 Jul 2005

Q:
I'm using the eDir - AD driver and wanted to test the src-dn to filter out specified OU's in the Event transformation (at subscriber AND publisher).

How can I check for the string "resources" ONLY in ou-names, NOT in object names for the publisher AND subscriber?

A:
Assuming you can live with it in any container name (not just the organizational units), you could try .*resources.*\\.* Or, if you are trying to exclude anything under a container named exactly "resources", you could use .*\\resources\\.*

You could also build the srcdn variable differently so that it didn't include the RDN. Try using "length=-2" instead of "length=-1" on the Source DN token.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.