<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Calibri Light";
panose-1:2 15 3 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";
mso-fareast-language:EN-US;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle23
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle24
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle25
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle27
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR-CA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi, <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Any news about this issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">It is feasible through midPoint to overwrite or bypass an existing LDAP resource schema?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Or how can I fetch the attributes from a custom class defined as STRUCTURAL instead of AUXILIARY in an existing LDAP schema?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="FR" style="font-size:10.5pt;font-family:"Calibri Light","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA">Esteban Jeria</span></b><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><a href="mailto:esteban.jeria@cgi.com"><span style="font-family:"Calibri Light","sans-serif"">esteban.jeria@cgi.com</span></a><br>
</span><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Conseiller
</span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
/ </span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
Consultant</span><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Sécurité - Gestion des Identités et des Accès / Security - Identity and Access Management<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA"> Jeria,
Esteban [mailto:esteban.jeria@cgi.com] <br>
<b>Sent:</b> Friday, June 15, 2018 9:44 AM<br>
<b>To:</b> midPoint General Discussion<br>
<b>Subject:</b> Re: [midPoint] define custom schema for ldap resource<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Hi Keith,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Actually, it is the opposite, the custom class "customprofile" is already defined as STRUCTURAL in the LDAP schema, and unfortunately it seems to be complicated to change it (not managed by us).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectclass ( customprofile-oid NAME 'customprofile'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> SUP top<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> STRUCTURAL<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> MAY ( matricule $ adressetravail $ fonction $ uniteadministrative ) )<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><span lang="EN-US" style="color:#1F497D">dn: uid=testuser,ou=people,dc=example,dc=com<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectClass: top<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectClass: inetOrgPerson<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectClass: organizationalPerson<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectClass: person<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> objectClass: customprofile<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> cn: Test USER<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> sn: USER<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> givenName: Test<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> uid: testuser<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> matricule: 12345678<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Then, in order to read its custom attributes (ex. "matricule"), I have to specify the class to midPoint, but given that it only support one structural class, I defined it as auxiliary.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <schemaHandling><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <objectType><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <kind>account</kind><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <intent>default</intent><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <displayName>Default Account</displayName><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <default>true</default><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <objectClass>ri:inetOrgPerson</objectClass><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"> <auxiliaryObjectClass>ri: customprofile</auxiliaryObjectClass><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">MidPoint is able to create the user to LDAP, but it fails as soon as I try to modify any attribute on the profile.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">2018-06-14 15:27:08,882 [] [Thread-25] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnIdUtil): ConnId Exception org.identityconnectors.framework.common.exceptions.InvalidAttributeValueException
in connector:7e39b53e-9709-4a82-81fc-bda465af52c0(ConnId com.evolveum.polygon.connector.ldap.LdapConnector v1.5): ConnectorSpec(resource:resource-sunone(SunOne), name=null, oid=7e39b53e-9709-4a82-81fc-bda465af52c0) while adding attribute values to object identified
by ConnId UID '94967781-700011e8-80eeb4e7-304b8fc4': Error modifying LDAP entry uid=testuser,ou=people,dc=example,dc=com: [add: objectClass: customprofile,]: attributeOrValueExists: (20)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri Light","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA">Esteban Jeria</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><a href="mailto:esteban.jeria@cgi.com"><span style="font-family:"Calibri Light","sans-serif"">esteban.jeria@cgi.com</span></a><br>
</span><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Conseiller
</span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
/ </span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
Consultant</span><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Sécurité - Gestion des Identités et des Accès / Security - Identity and Access Management<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">514-415-3000 ext.1018296</span><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA"> Keith
Hazelton <a href="mailto:[mailto:keith.hazelton@wisc.edu]">[mailto:keith.hazelton@wisc.edu]</a>
<br>
<b>Sent:</b> Friday, June 15, 2018 8:26 AM<br>
<b>To:</b> midPoint General Discussion<br>
<b>Subject:</b> Re: [midPoint] define custom schema for ldap resource<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN">Esteban,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN">Why do you need to make the object class structural? inetOrgPerson can be structural, auxiliary for your class should be good enough unless I’m missing something. --Keith<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:ZH-CN"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:black;mso-fareast-language:ZH-CN">___________________________________</span><span lang="EN-US" style="font-size:10.5pt;color:#888888;mso-fareast-language:ZH-CN"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#888888;mso-fareast-language:ZH-CN">email & jabber:
<a href="mailto:keith.hazelton@wisc.edu" target="_blank">keith.hazelton@wisc.edu</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;color:#888888;mso-fareast-language:ZH-CN">calendar:
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__go.wisc.edu_i6zxx0&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=2489Ompm3-SiesFWAkbUa-OihUm8Bos0xZh-Xifri44&e=" target="_blank">
http://go.wisc.edu/i6zxx0</a></span><span lang="EN-US" style="mso-fareast-language:ZH-CN"><o:p></o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:12.0pt;color:black">From:
</span></b><span lang="EN-US" style="font-size:12.0pt;color:black">midPoint <<a href="mailto:midpoint-bounces@lists.evolveum.com">midpoint-bounces@lists.evolveum.com</a>> on behalf of "Jeria, Esteban" <<a href="mailto:esteban.jeria@cgi.com">esteban.jeria@cgi.com</a>><br>
<b>Reply-To: </b>midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br>
<b>Date: </b>Friday, June 15, 2018 at 07:16 <br>
<b>To: </b>midPoint General Discussion <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br>
<b>Subject: </b>Re: [midPoint] define custom schema for ldap resource<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><a name="_MailOriginalBody"><span lang="EN-US" style="color:#1F497D">Hi,</span></a><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">I have some more details about the problem that I have with the existing ldap resource schema. I noticed that the custom class is currently set as STRUCTURAL instead of
AUXILIARY, so then when I try to modify any user attribute through midPoint, I have an error attributeOrValueExists.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">After some tests, I suspect that midPoint seems to always trying to add the auxiliary classes, no matter if they exist or not, but given that mine it is set to structural,
it fail.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">I afraid that overwriting the resource schema locally will not work, so is there any workaround for this situation?</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri Light","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA">Esteban Jeria</span></b><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><a href="mailto:esteban.jeria@cgi.com"><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri Light","sans-serif";background:white;mso-fareast-language:FR-CA">esteban.jeria@cgi.com</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><br>
</span><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Conseiller
</span><b><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
/ </span><b><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
Consultant</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Sécurité - Ges</span><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">tion
des Identités et des Accès / Security - Identity and Access Management</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">514-415-3000 ext.1018296</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">
Jeria, Esteban </span><a href="mailto:[mailto:esteban.jeria@cgi.com]"><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">[mailto:esteban.jeria@cgi.com]</span></a><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:FR-CA">
<br>
<b>Sent:</b> Wednesday, June 13, 2018 12:11 PM<br>
<b>To:</b> midPoint General Discussion<br>
<b>Cc:</b> Landry, Robert<br>
<b>Subject:</b> [midPoint] define custom schema for ldap resource</span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">Hi,</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">I'm trying to figure out how to define an auxiliary object class to overwrite or extend a ldap resource schema.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">We have an old Oracle Directory Server that has some custom classes which are not properly configured or they are incomplete, so instead of try to fix them, I was wondering
if there is a way to use my own schema definition and add it to the one retrieved from resource at the run-time.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">I looked in your wiki page and in this forum but all that I found is how to extend the midPoint schema and not the one of a resource.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">---------</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">I tried adding the custom-ldap-extension.xsd on midPoint directory/schema</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"><xsd:schema elementFormDefault="qualified"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> targetNamespace="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_custom_ldap-2Dextension-2522&d=DwQFAw&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=KXwaVHDVz_6Strc23dQEsouxgNLbWGqlUD2BbwE23Ng&s=ypxo-SYM7WrRtHOcw-wP-OLx4AyCQw5MoDheMXf6ugM&e="><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/custom/ldap-extension"</span></a><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:tns="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_custom_ldap-2Dextension&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=9LOli-1l1Vbw3YsDMqPpLHPz5N5jbB4yapcufRKQt7Y&e="><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/custom/ldap-extension</span></a><span lang="EN-US" style="color:#1F497D">"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:a="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__prism.evolveum.com_xml_ns_public_annotation-2D3&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=UgmnomL7yDftdEG9m3zIHRQFWLYsqi4hKILBmKKEYUo&e="><span lang="EN-US">http://prism.evolveum.com/xml/ns/public/annotation-3</span></a><span lang="EN-US" style="color:#1F497D">"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:ra="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_resource_annotation-2D3&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=R7GwT3IBtvG5BmsHTNLeTHdmlGNAn6l8NRf145hLeko&e="><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3</span></a><span lang="EN-US" style="color:#1F497D">"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:c="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_common_common-2D3&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=iqOBwNVHCilfTywxjRUcV2AsP1h399mDzhFEYxP5L-w&e="><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/common/common-3</span></a><span lang="EN-US" style="color:#1F497D">"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:xsd="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=V9KoHfA9AFLOmm-NTu_IofdF52TIDRwi0lvkYiRkYLA&e="><span lang="EN-US">http://www.w3.org/2001/XMLSchema</span></a><span lang="EN-US" style="color:#1F497D">"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:import namespace="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__prism.evolveum.com_xml_ns_public_annotation-2D3-2522_-253E&d=DwQFAw&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=KXwaVHDVz_6Strc23dQEsouxgNLbWGqlUD2BbwE23Ng&s=U024t1SEx4w_m973WOYjz_z3v8-i5XtKYQnK-BhVUp8&e="><span lang="EN-US">http://prism.evolveum.com/xml/ns/public/annotation-3"/></span></a><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:import namespace="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_public_resource_annotation-2D3-2522_-253E&d=DwQFAw&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=KXwaVHDVz_6Strc23dQEsouxgNLbWGqlUD2BbwE23Ng&s=peOzWRtpuvEKq4SR7t959Bi-1zs87iPT74770SGfjF4&e="><span lang="EN-US">http://midpoint.evolveum.com/xml/ns/public/resource/annotation-3"/></span></a><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:complexType name="customprofile"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:annotation></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:appinfo></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <ra:resourceObject/></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <ra:nativeObjectClass>customprofile</ra:nativeObjectClass></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </xsd:appinfo></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </xsd:annotation></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:sequence></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:element name="matricule" type="xsd:string" maxOccurs="unbounded" minOccurs="0"></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:annotation></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <xsd:appinfo></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <a:displayOrder>150</a:displayOrder></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <ra:nativeAttributeName>matricule</ra:nativeAttributeName></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <ra:frameworkAttributeName>matricule</ra:frameworkAttributeName></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </xsd:appinfo></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </xsd:annotation></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </xsd:element></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">...</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">Then I restricted the schema definition to only the standard classes
</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">...</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <schema></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <generationConstraints></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <generateObjectClass>ri:groupOfNames</generateObjectClass></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <generateObjectClass>ri:inetOrgPerson</generateObjectClass></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <generateObjectClass>ri:organizationalUnit</generateObjectClass></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> <generateObjectClass>ri:person</generateObjectClass></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </generationConstraints></span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">...</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">And I added the reference to the namespace on the connector
</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> xmlns:ext="</span><a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__prism.evolveum.com_xml_ns_custom_ldap-2Dextension&d=DwMGaQ&c=H50I6Bh8SW87d_bXfZP_8g&r=3iM986yl1CVC_rjHiE-INe9tiSAFCd7Ih6_50tgvu0w&m=DQgAuSHEg9XB-jZgWrZXiaUCnEomujJSqd9Ay1ZOptA&s=EOiW-cycxc7yz8IMqw2vogZuEPQnKRrr2m0mtgW-J18&e="><span lang="EN-US">http://prism.evolveum.com/xml/ns/custom/ldap-extension</span></a><span lang="EN-US" style="color:#1F497D">"</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D">but, I didn't find a way to make it work when trying to map the attributes from this class.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-US" style="color:#1F497D"> </span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri Light","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA">Esteban Jeria</span></b><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><a href="mailto:esteban.jeria@cgi.com"><span lang="FR" style="font-size:10.0pt;font-family:"Calibri Light","sans-serif";background:white;mso-fareast-language:FR-CA">esteban.jeria@cgi.com</span></a><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"><br>
</span><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Conseiller
</span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
/ </span><b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:red;background:white;mso-fareast-language:FR-CA">CGI</span></b><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">
Consultant</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-size:9.5pt;font-family:"Calibri Light","sans-serif";color:black;background:white;mso-fareast-language:FR-CA">Sécurité - Gestion des Identités et des Accès / Security - Identity and
Access Management</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="FR" style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:blue;background:white;mso-fareast-language:FR-CA"> </span><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</body>
</html>