Check that the value represented by 'alias-
context_in_SLASH_notation' is correct. If I'm not mistaken, a search
will only return that particular error if the base of the search cannot
be found.

I'm not sure, but may also need to specify the class-name as blank or
User because Alias objects lie about what their base class is.

--

Father Ramon


jroosen@sollogix.de wrote:
> Hello,
>
> I'm trying to search for an alias-object by its property
> Aliased Object Name. I need this when a userobject is renamed
> in IDV; then the correspnding alias should be renamed as well.
> I want to search for the aliased object Name to prevent malfunctioning
> with name inconsistencies between object and aliase-name.
> So we are dealing with a rename user operation within the CT-Rule of the
> publisher-channel.
>
> I'm doing things like:
>
> to find the application (destination) DN of the current object
> (currently the destination object is not renamed, we are just in progress)
> THIS WORKS FINE!
> <do-set-local-variable name="lvAppDn">
> <arg-string>
> <token-xpath expresion='query:readObject($destQueryProcessor, string
> (association), "", @class-name, "")/@src-dn'/>
> </arg-string>
> </do-set-local-variable>
>
> to bring the found DN into the one and other format
> THIS WORKS FINE!!
> <do-set-local-variable name="lvAppDn">
> <arg-string>
> <token-parse-dn dest-dn-format="ldap">
> <token-local-variable name="lvAppDn"/>
> </token-parse-dn>
> </arg-string>
> </do-set-local-variable>
>
> and then do a query for the alias
> FOR THIS I GET AN ERROR -601 (NO SUCH ENTRY)
> <do-set-local-variable name="lvFoundAlias">
> <arg-string>
> <token-xpath expresion='query:search
> ($destQueryProcessor, 'subtree', '', 'alias-
> context_in_SLASH_notation', 'Alias', 'Aliased Object Name',
> $lvAppDn, '')/@src-dn'/>
> </arg-string>
> </do-set-local-variable>
>
> The parse-dn was inserted by me for playing around. I tried the formats
> SLASH, TYPEFULL-SLASH and LDAP.
> When I do a simmilar search on the dest-NDS with ice it works well. But
> within ice I'm search for the attribute 'aliasedObjectName' which is
> different spelling than the original 'Aliased Object Name' within
> eDirectory.
>
> Further more I ask myself how the search in realized by dirxml. Within
> the edir database such a reference like 'Aliased Object Name' is a
> hexadecimal Object-ID. So dirxml has to convert my input-parameter lvAppDn
> into such an object-ID. In this case, the format of the search DN
> shouldn't be a matter anyway. Am I right?
>
> I hope someeone can help me.
>
> Best regards
> Juergen Roosen
>