Anonymous_User Absent Member.
Absent Member.
184 views

Matching object of diffrent class


Hi,

I have an object class that I transform to the User class in the
publisher ctp.
Now my problem is that I would like the matching rule to work but I
notice that it queries with object-class and that is wrong in my case.
Can I change the queried object-class? or do I need to convert the
object class already in the itp or should I do the matching later in the
ctp where I currently have most of my code?

Thanks


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=48798

Labels (1)
0 Likes
7 Replies
Knowledge Partner
Knowledge Partner

Re: Matching object of diffrent class

joakim ganse wrote:

> I have an object class that I transform to the User class in the
> publisher ctp.


Why don't you do it in schema mapping, where it usually belongs and works best?
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Matching object of diffrent class


Because I have another class mapped to User there and as far as I know
it is only possible to have 1-1 mapping there.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=48798

0 Likes
Knowledge Partner
Knowledge Partner

Re: Matching object of diffrent class

joakim ganse wrote:

> Because I have another class mapped to User there and as far as I know
> it is only possible to have 1-1 mapping there.


you can have multiple schema mapping policies in the policyset and they can
also be DirXMLScript-based...
______________________________________________
https://www.is4it.de/identity-access-management
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Matching object of diffrent class

Hey Lothar Haeger, on 27.09.2013 11:59:02, you wrote:

> joakim ganse wrote:
>
> > Because I have another class mapped to User there and as far as I
> > know it is only possible to have 1-1 mapping there.

>
> you can have multiple schema mapping policies in the policyset and
> they can also be DirXMLScript-based...


Just so you know, there are some issues though if you do DirXML Script
based schema mapping and want to notify/subscribe on publisher changes
to such an attribute/class.

see:
https://forums.netiq.com/showthread.php?437-do-rename-op-attr-doesn-t-ap
ply-to-init-params-driver-filter-bugor-feature for more details.

The GCV approach I settled on in that thread has it's own issue. Events
are not queued in the IDVault event cache when a filter attribute is
set via GCV expansion (as this only occurs at driver startup). There's
a (as yet not fixed) bug raised for this issue.

However for your specific scenario, I think the DirXML Script based
schema mapping should work just fine.

--
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
jtl1 Absent Member.
Absent Member.

Re: Matching object of diffrent class

On 2013-09-27 09:54, joakim ganse wrote:
>
> Hi,
>
> I have an object class that I transform to the User class in the
> publisher ctp.
> Now my problem is that I would like the matching rule to work but I
> notice that it queries with object-class and that is wrong in my case.
> Can I change the queried object-class? or do I need to convert the
> object class already in the itp or should I do the matching later in the
> ctp where I currently have most of my code?
>
> Thanks


I guess that sm maps the class but sometimes you need to map it into another type?

You can always add a normal policy to the sm container and set up all logics required to re-map you class. Unless there is a
very good reason for not doing it here I would use a policy in sm. Remember to map outgoing events as well. Use the fromNds
variable to check if the event is incomming or outgoing.

Best regards,
Tobias


0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Matching object of diffrent class


You are of cause right, that is the correct place.


--
joakim_ganse
------------------------------------------------------------------------
joakim_ganse's Profile: https://forums.netiq.com/member.php?userid=159
View this thread: https://forums.netiq.com/showthread.php?t=48798

0 Likes
Knowledge Partner
Knowledge Partner

Re: Matching object of diffrent class

On 9/27/2013 3:54 AM, joakim ganse wrote:
>
> Hi,
>
> I have an object class that I transform to the User class in the
> publisher ctp.
> Now my problem is that I would like the matching rule to work but I
> notice that it queries with object-class and that is wrong in my case.
> Can I change the queried object-class? or do I need to convert the
> object class already in the itp or should I do the matching later in the
> ctp where I currently have most of my code?


one option is in the Matching Policy Set:

<do-set-op-class-name>
<arg-string>
<token-text xml:space="preserve">User</token-text>
</arg-string>
</do-set-op-class-name>

Or whatever class you wish to search on, then do your Find Matching
token. Then test if XPATH true @dest-dn (I.e. Match found) and set your
class back to what it needs to be. (Or probably do it in both cases).



0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.