<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello Matt,</p>
<p>which version of midPoint do you use? I've fixed this issue (of
not recognizing aux object classes in Resource Wizard) just a few
days ago.</p>
<p>Best regards,<br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 24.08.2016 18:31, Mencel, Matt
wrote:<br>
</div>
<blockquote
cite="mid:CABpVbHKjw1hy-5vxEHZApmDL9w7xyyv+8CfG8M0kF_79KpXFDg@mail.gmail.com"
type="cite">
<div dir="ltr">OK I'm back to trying to get an LDAP resource
configured. I understand a bit more of the workings of midpoint
now so maybe I can get further on this today. I've used the
389DS sample as a basic starting point.
<div><br>
</div>
<div>The LDAP system is actually an old Sun DS system and I'm
pretty sure the OCs are not setup according to any standard
best practice. Here is a very basic user object example.
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">[1] DN =
[uid=matt,ou=People,dc=wiu,dc=edu]<br>
[1] -------------------- : --------------------<br>
[1] objectClass : top<br>
[1] -------------------- : --------------------<br>
[1] objectClass : person<br>
[1] cn : Matthew R Mencel<br>
[1] sn : Mencel<br>
[1] -------------------- : --------------------<br>
[1] objectClass : wiuPerson<br>
[1] givenName : Matthew<br>
[1] uid : matt</blockquote>
</div>
<div><br>
</div>
<div>In my resource I've tried defining wiuPerson as an
auxiliaryObjectClass like this...</div>
<div><br>
</div>
<div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><schemaHandling><br>
<objectType><br>
<kind>account</kind><br>
<intent>person</intent><br>
<displayName>Person
Account</displayName><br>
<default>true</default><br>
<objectClass>ri:person</objectClass><br>
<auxiliaryObjectClass>wiuPerson</auxiliaryObjectClass><br>
<attribute><br>
<ref>ri:dn</ref><br>
<displayName>Distinguished
Name</displayName><br>
<outbound><br>
<!-- Name cannot be weak. Changes
in name trigger object rename. --><br>
<source><br>
<path>$user/name</path><br>
</source><br>
<expression><br>
<script><br>
<code><br>
basic.composeDnWithSuffix('uid', name,
'ou=people,dc=wiu,dc=edu')<br>
</code><br>
</script><br>
</expression><br>
</outbound><br>
</attribute><br>
<attribute><br>
<ref>ri:cn</ref><br>
<displayName>Common
Name</displayName><br>
<outbound><br>
<source><br>
<path>$user/fullName</path><br>
</source><br>
</outbound><br>
<inbound><br>
<strength>weak</strength><br>
<target><br>
<path>$user/fullName</path><br>
</target><br>
</inbound><br>
</attribute><br>
<attribute><br>
<ref>ri:sn</ref><br>
<outbound><br>
<source><br>
<path>familyName</path><br>
</source><br>
</outbound><br>
<inbound><br>
<strength>weak</strength><br>
<target><br>
<path>$user/familyName</path><br>
</target><br>
</inbound><br>
</attribute><br>
<attribute><br>
<ref>ri:givenName</ref><br>
<outbound><br>
<source><br>
<path>$user/givenName</path><br>
</source><br>
</outbound><br>
<inbound><br>
<strength>weak</strength><br>
<target><br>
<path>$user/givenName</path><br>
</target><br>
</inbound><br>
</attribute></blockquote>
<div><br>
</div>
<div>Midpoint doesn't like that though and tells me that
givenName is not in the person OC...</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex"><span
style="color:rgb(51,51,51);font-family:"Source Sans
Pro","Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:20px">There
is no attribute named '{<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7DgivenName">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}givenName</a>'
in object class '{<a moz-do-not-send="true"
href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3%7Dperson">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3}person</a>'
(defined in schema handling for 'Person Account (kind:
ACCOUNT, intent: person)').</span></blockquote>
<div><br>
</div>
<div>...which of course it is not. So how do I define
givenName so I can use it in midpoint?</div>
</div>
</div>
<div><br>
</div>
<div>Thanks,<br>
Matt</div>
</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>