<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Keith,<br>
<br>
That's right. I have realized that there is no sample for the simple
usage of auxiliary object class. But I hope you could contribute
your configuration as a sample once you are done :-)<br>
<br>
Yet, there is a more complex sample that is using auxiliary object
classes: <a class="moz-txt-link-freetext" href="https://wiki.evolveum.com/display/midPoint/Unix+Story+Test">https://wiki.evolveum.com/display/midPoint/Unix+Story+Test</a><br>
However, this sample is using auxiliary object classes in roles -
always adding and removing the auxiliary object class as necessary.
I'm not sure whether this would a good sample for you. I'm afraid
that it is just too complex for a first-time midPoint user and it
may mislead you on a wrong way.<br>
<br>
But I think you are going in the right direction now. If that does
not work for you after the schema refresh, please send your complete
resource definition directly to me (not to the mailing list so we
will not flood everybody here with big XML objects). I can have a
look at it. Just please export the "live" resource definition from
midPoint, so I can see the schema that was generated for you.<br>
<br>
<pre class="moz-signature" cols="72">--
Radovan Semancik
Software Architect
evolveum.com
</pre>
<br>
<br>
<div class="moz-cite-prefix">On 09/21/2016 02:17 PM, Keith Hazelton
wrote:<br>
</div>
<blockquote cite="mid:DCF7CEAA-8E61-4B3C-B7D2-071B5F989CBE@wisc.edu"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Courier New";
panose-1:2 7 3 9 2 2 5 2 4 4;}
@font-face
{font-family:宋体;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Courier;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle21
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.EmailStyle23
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.EmailStyle24
{mso-style-type:personal;
font-family:Calibri;
color:windowtext;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:Calibri;
color:windowtext;}
span.msoIns
{mso-style-type:export-only;
mso-style-name:"";
text-decoration:underline;
color:teal;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">I’m hoping to
demo midPoint at a higher education conference next week, so
I’d especially appreciate advice on how to get auxiliary
object class support working for my OpenDJ LDAP resource.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">The samples
directory doesn’t seem to include any examples of
auxiliaryObjectClass use and I’m still getting partial
errors when loading the resource.xml file via the Admin GUI.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
Thanks in advance for any pointers, --Keith<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:black">___________________________________</span><span
style="font-size:10.5pt;font-family:Calibri;color:#888888"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:#888888">email
& jabber:
<a moz-do-not-send="true"
href="mailto:keith.hazelton@wisc.edu" target="_blank">keith.hazelton@wisc.edu</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:#888888">calendar:
<a moz-do-not-send="true" href="http://go.wisc.edu/i6zxx0"
target="_blank">http://go.wisc.edu/i6zxx0</a></span><span
style="font-size:11.0pt;font-family:Calibri"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"><o:p> </o:p></span></p>
<blockquote style="border:none;border-left:solid #B5C4DF
4.5pt;padding:0in 0in 0in
4.0pt;margin-left:3.75pt;margin-right:0in">
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">midPoint
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a> on behalf of
Keith Hazelton <a class="moz-txt-link-rfc2396E" href="mailto:keith.hazelton@wisc.edu"><keith.hazelton@wisc.edu></a><br>
<b>Reply-To: </b>midPoint General Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Date: </b>Wednesday, September 21, 2016 at 05:35 <br>
<b>To: </b>midPoint General Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Subject: </b>Re: [midPoint] Discovering Custom
objectClasses<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">Per
suggestion, I globally replaced the references to my “e:”
namespace prefix with the “ri:” namespace prefix, but got
the same “Partial Error” message on loading the resource
.xml file:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">“<span
style="color:#333333;background:white">Schema error
while processing schemaHandling section of
<a class="moz-txt-link-freetext" href="resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost">resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost</a>
OpenDJ): Auxiliary object class
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}eduPerson
specified in
rOCD(ACCOUNT:default={.../resource/instance-3}inetOrgPerson)
does not exist</span>”</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">I then tried
a different approach, removing the <complexType>
container elements for my auxiliary object class
attributes in the schemaHandling section, making them
simple attribute elements of the inetOrgPerson
complexType. I imported the edited .xml file and still got
a partial error “auxiliary object class not found”:</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"><operationResult
xmlns=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
xmlns:icfs=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3">"http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
xmlns:t=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/types-3">"http://prism.evolveum.com/xml/ns/public/types-3"</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
xmlns:c=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">"http://midpoint.evolveum.com/xml/ns/public/common/common-3"</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
xmlns:q=<a class="moz-txt-link-rfc2396E" href="http://prism.evolveum.com/xml/ns/public/query-3">"http://prism.evolveum.com/xml/ns/public/query-3"</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
xmlns:ri=<a class="moz-txt-link-rfc2396E" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">"http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"</a>></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<operation>com.evolveum.midpoint.provisioning.api.ProvisioningService.searchObjects.object</operation></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<status>partial_error</status></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<token>1000000000000000554</token></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<message>Schema error while processing
schemaHandling section of
<a class="moz-txt-link-freetext" href="resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost">resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost</a>
OpenDJ): Auxiliary object class
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}eduPerson
specified in
rOCD(ACCOUNT:default={.../resource/instance-3}inetOrgPerson)
does not exist</message></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<partialResults></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<operation>com.evolveum.midpoint.provisioning.impl.ResourceManager.completeResource</operation></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<status>partial_error</status></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<token>1000000000000000555</token></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<message>Schema error while processing
schemaHandling section of
<a class="moz-txt-link-freetext" href="resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost">resource:ef2bc95b-76e0-48e2-86d6-3d4f02d3e1a2(Localhost</a>
OpenDJ): Auxiliary object class
{<a class="moz-txt-link-freetext" href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>}eduPerson
specified in
rOCD(ACCOUNT:default={.../resource/instance-3}inetOrgPerson)
does not exist</message></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<partialResults></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<operation>com.evolveum.midpoint.repo.api.RepositoryService.getVersion</operation></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<status>success</status></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<params></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<entry key="oid"></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<paramValue>00916739-66f5-41fc-b0c3-fe8577d650e4</paramValue></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
</entry></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<entry key="type"></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<paramValue>com.evolveum.midpoint.xml.ns._public.common.common_3.ConnectorType</paramValue></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
</entry></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
</params></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
<token>1000000000000000556</token></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
</partialResults></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri">
</partialResults></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"></operationResult></span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:black">___________________________________</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:#888888">email
& jabber:
<a moz-do-not-send="true"
href="mailto:keith.hazelton@wisc.edu" target="_blank">keith.hazelton@wisc.edu</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Calibri;color:#888888">calendar:
<a moz-do-not-send="true" href="http://go.wisc.edu/i6zxx0"
target="_blank">http://go.wisc.edu/i6zxx0</a></span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:Calibri"> </span><o:p></o:p></p>
<blockquote style="border:none;border-left:solid #B5C4DF
4.5pt;padding:0in 0in 0in
4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt">
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black">midPoint
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a> on behalf
of Radovan Semancik
<a class="moz-txt-link-rfc2396E" href="mailto:radovan.semancik@evolveum.com"><radovan.semancik@evolveum.com></a><br>
<b>Reply-To: </b>midPoint General Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Date: </b>Tuesday, September 20, 2016 at 07:29 <br>
<b>To: </b>midPoint General Discussion
<a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><midpoint@lists.evolveum.com></a><br>
<b>Subject: </b>Re: [midPoint] Discovering Custom
objectClasses</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<p class="MsoNormal">Hi,<br>
<br>
I think I see the problem. It is the namespace of the
eduPerson object class. You have to use the "ri" namespace
(<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>).
MidPoint does not know that eduPerson is not core LDAP
schema. LDAP server reports eduPerson in exactly the same
way as any other core object class. Therefore for midPoint
eduPerson and inetOrgPerson are just different object
classes from the same namespace.
<br>
(Yes, theoretically we could look at object class OIDs and
use that, but there is no support for namespaces in ConnId
anyway and that would complicate the things by a great
deal. So we are not doing that.)<br>
<br>
So, if you replace e:eduPerson with ri:eduPerson then your
configuration should work.<br>
<br>
If you are interested in a deeper explanation you can find
it here: <br>
<a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Resource+Schema">https://wiki.evolveum.com/display/midPoint/Resource+Schema</a><br>
<a moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Resource+and+Connector+Schema+Explanation">https://wiki.evolveum.com/display/midPoint/Resource+and+Connector+Schema+Explanation</a><br>
<br>
<br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Radovan Semancik<o:p></o:p></pre>
<pre>Software Architect<o:p></o:p></pre>
<pre>evolveum.com<o:p></o:p></pre>
<p class="MsoNormal"> <o:p></o:p></p>
</blockquote>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>