[midPoint] Ad-hoc Reconciliation
Katka Valalikova
katkav at evolveum.com
Tue Apr 7 11:26:02 CEST 2015
Hello Martin,
if I understand right, you need to link users comming from DB with users in LDAP according to email address, not DN. If you want midPoint to automatically decide if the user should be created or linked to the existed one, you need to do following steps.
1. In your LDAP server, set email address as unique attribute.
2. In midPoint:
* set email address as secondary identifier in your schemaHandling - this will provide that if the account already exists in the LDAP, midPoint will try to find an owner and link them together
<attribute> <ref>ri:email</ref> <displayName>Email address</displayName> <secondaryIdentifier>true</secondaryIdentifier> <outbound> ......
* set your correlation rule to match users according to the emailAddress - during already exists situation discovery, correlation rule will be used to match user in midPoint (according to your settings of action-reaction, account should be linked to the existing user or new user will be created).
<q:equal> <q:path>emailAddress</q:path> <!--the user's attribute where is your emailAddress from DB mapped--> <expression> <script> <code> declare namespace ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"; $account/attributes/ri:email <!-- email address attribute in LDAP --> </code> </script> </expression> </q:equal>
* run reconciliation for DB resource (this scenario expects that you have configured object template which will provide creation of accoun in your LDAP)
If you have some other questions or something does not work as expected, please let me know.
Hope this will help you,
with kind regards,
Katarina Valalikova
----- Original Message -----
From: "Martin Lízner - AMI Praha a.s." <martin.lizner at ami.cz>
To: "midPoint General Discussion" <midpoint at lists.evolveum.com>
Sent: Tuesday, March 31, 2015 2:24:05 PM
Subject: Re: [midPoint] Ad-hoc Reconciliation
Hi Ivan, I would say that most of the users coming from DB will have account in LDAP. Yes, email would be pairing attribute. This sounds like perfect scenario for correlation via synchro or reconc, but again I need to lookup in the resource (in order to get DN), not in midPoint :-)
Martin Lízner
solution architect
gsm: [+420] 737 745 571
e-mail: martin.lizner at ami.cz
AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel.: [+420] 274 783 239
web: www.ami.cz
Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.
2015-03-31 14:19 GMT+02:00 Ivan Noris < ivan.noris at evolveum.com > :
Hi Martin,
is every user that is being synced from DB and created in midPoint expected to have existing account in LDAP?
Do you have the same value of email attribute in midPoint and LDAP?
I.
On 03/31/2015 02:13 PM, Martin Lízner - AMI Praha a.s. wrote:
<blockquote>
Hi guys, Im in situation that I have one really big LDAP with no changelog, which can be full reconciled e.g. every 24 hours. I got new identities being synced from DB resource every minute or so. Right after new DB user is created in midPoint I need to adhoc reconcile this user with LDAP resource. I can lookup user via email attribute, dont know LDAP DN yet.
I guess that typical correlation logic in synchronization wont help me here, since I need to query resource, not IdM. I came to these two solutions, but I dont know how to implement them in midPoint. And maybe there is better way...
1. Query resource objects in LDAP connector. Using standard ldap filter with email=XXX and fetching DN => linking to midpoint User. Im not sure if midPoint can do these queries yet.
2. Query shadow objects in midPoint repo. These would have been loaded in last reconc. It wouldnt be 100% online, but might work for my business case. Unfortunatelly, I havent found how to extend shadow schema in the doc :-(
Please help, if you can :-)
Regards, Martin
Martin Lízner
solution architect
gsm: [+420] 737 745 571
e-mail: martin.lizner at ami.cz
AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel.: [+420] 274 783 239
web: www.ami.cz
Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.
_______________________________________________
midPoint mailing list midPoint at lists.evolveum.com http://lists.evolveum.com/mailman/listinfo/midpoint
--
Ing. Ivan Noris
Senior Identity Management Engineer & IDM Architect evolveum.com evolveum.com/blog/ ___________________________________________________
"Semper Id(e)M Vix."
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint
</blockquote>
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20150407/dfe8928f/attachment.htm>
More information about the midPoint
mailing list