Hi,

When performing a rename event (of a synchronized user) I want to check
if there isn't already an object with the same object name (CN)
somewhere in the vault ?

<token-query class-name="User" scope="subtree">
<arg-match-attr name="CN"/>
</arg-string>
<arg-string>
</token-query>

This query finds objects with the attribute CN the same as the user in
the current operation, but I'd rather find an object with the same
object name. Is it sufficient to query for the same CN ? Since 'other
name' is also stored in CN and Users created from a template have the
template name stored in CN.

I'm afraid when such a user is renamed the query performed searches for
object created from the same template and I want to rule that situation
out...

How do I query the Vault to find an object with the same
'leaf-most-segment-of-the-DN' as the object in the current operation
(the new name)?

JvH.


--
Jharting
------------------------------------------------------------------------
Jharting's Profile: http://forums.novell.com/member.php?userid=6961
View this thread: http://forums.novell.com/showthread.php?t=343090