<div dir="ltr"><div>Dear,</div><div> </div><div>I’ve been looking at Midpoint as a candidate for an upcoming IDM project. However, I’m having some difficulties connecting to AD.</div><div>I started on Friday using the latest the latest snapshot. I’ll first describe the changes need to get to my current problem.</div>
<div> </div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>1) Following <a href="https://wiki.evolveum.com/display/midPoint/.NET+Connector+Server">https://wiki.evolveum.com/display/midPoint/.NET+Connector+Server</a> I found out the offered version (1.4.0.14) of connid was not recent enough. SerializeBinary.cs had a version mismatch: 1 was expected, 2 was offered. I could not find the sourcecode on the midpoint sites, but I managed to find a newer version on the forgerock repo:</div>
<div><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>svn checkout <a href="https://svn.forgerock.org/openicf/trunk/">https://svn.forgerock.org/openicf/trunk/</a></i></div>
<div><br></div></blockquote></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>Compiling the code gave me a compatible connector.</div></blockquote><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>2) Following <a href="https://wiki.evolveum.com/display/midPoint/Active+Directory#ActiveDirectory-ConnectorHostConfiguration">https://wiki.evolveum.com/display/midPoint/Active+Directory#ActiveDirectory-ConnectorHostConfiguration</a> and <a href="https://wiki.evolveum.com/display/midPoint/ConnectorHostType">https://wiki.evolveum.com/display/midPoint/ConnectorHostType</a> I got stranded again trying to add a ConnectorHost. After some trial and error I found a working configuration by changing common-2a to common-3, adding protecConnection and removing the clearValue tags:</div>
<div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i><?xml version="1.0" encoding="UTF-8" standalone="yes"?></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i><br></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i><object xsi:type="ConnectorHostType"</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i><span class="" style="white-space:pre"> </span>xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"</i></div></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i><span class="" style="white-space:pre"> </span>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i><span class="" style="white-space:pre"> </span>oid="91919191-76e0-59e2-86d6-44cc44cc44cc ></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><span class="" style="white-space:pre"><i> </i></span></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> <name>ICF Connector server on rd.local:8759</name></i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> <hostname> 192.168.102.107</hostname></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i> <port>8759</port></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> <sharedSecret>My secret</sharedSecret></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i> <protectConnection>true</protectConnection></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i></object></i></div></blockquote><div> </div></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>3) Currently I’m stuck trying to add the actual connector. I’ve tried modifying the examples that are included in the snapshot:</div><div><br></div></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>midpoint-2.3-SNAPSHOT\samples\resources\ad\ad-resource-simple.xml</i></div></blockquote></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div>Using the default xml file configured for my setup, I get XML problems:</div><div><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>Validation error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'resource'. One of '{"<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>":object}' is expected.</i></div>
</blockquote></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div><div>If I replace the object tag by a resource tag, I get slightly further:</div><div><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>[ SHOW ERROR STACK ] Collapse all Expand all Export to XML</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>ok - Schema validation</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>ok - Basic checks</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>ok - Resource namespace check</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>ok - operation.com.evolveum.midpoint.model.controller.ModelController.searchObjects</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i>ok - Execute changes (Model)</i></div></blockquote></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><b>error - Connector reference missing in the resource resource:91919191-76e0-59e2-86d6-44cc44cc44cc(Basic Active Directory)</b></div></blockquote></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div> </div><div>Configuration:</div><div><br></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i><resource xmlns="<a href="http://midpoint.evolveum.com/xml/ns/public/common/common-3">http://midpoint.evolveum.com/xml/ns/public/common/common-3</a>"</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i> xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i> xmlns:xsd="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>"</i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> xmlns:ri="<a href="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">http://midpoint.evolveum.com/xml/ns/public/resource/instance-3</a>"</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> xmlns:icfc="<a href="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3">http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3</a>"</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> xmlns:idfs="<a 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>"</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> xmlns:my="<a href="http://myself.me/schemas/whatever">http://myself.me/schemas/whatever</a>"</i></div></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> xmlns:q="<a href="http://prism.evolveum.com/xml/ns/public/query-3">http://prism.evolveum.com/xml/ns/public/query-3</a>"</i></div>
</blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> oid='91919191-76e0-59e2-86d6-44cc44cc44cc'></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i><br></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i> <!-- Resource name. It will be displayed in GUI. --></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><i> <name>Basic Active Directory</name></i></div></blockquote><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><i>…..</i></div></blockquote></blockquote><div><br>
</div><div>I understand that the snapshots are not yet a finished product, but any help would be greatly appreciated.</div><div>I think it would be helpful for others to figure out the problem and modify the wiki steps once the issue has been sorted out.</div>
<div> </div><div>Regards,</div><div>Sam Verboven</div></div>