<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello, Sam,<br>
      <br>
      first of all, I apologize for mismatches in documentation and wiki
      pages. Although I've promised on this list a few days ago that
      I'll upload current version of the connector/framework, I had no
      time to do that, until today.<br>
      <br>
      So,<br>
      <br>
      <b>(1)</b> You can download current version of .Net Connector
      Server (1.4.0.20) from links mentioned in the wiki page you've
      already visited (<a
        href="https://wiki.evolveum.com/display/midPoint/.NET+Connector+Server">https://wiki.evolveum.com/display/midPoint/.NET+Connector+Server</a>)<br>
      Also, I've built the AD and Exchange connectors; you can download
      them (1.4.0.20140) from their pages in our wiki as well (<a
href="https://wiki.evolveum.com/display/midPoint/Active+Directory+Connector">https://wiki.evolveum.com/display/midPoint/Active+Directory+Connector</a>,
      <a
        href="https://wiki.evolveum.com/display/midPoint/Exchange+Connector">https://wiki.evolveum.com/display/midPoint/Exchange+Connector</a>).
      <br>
      <br>
      I would suggest you to use these packages instead of ForgeRock
      ones. As for the Connector Server, they should be more-or-less
      equal, but our Active Directory connector contains some quite
      important enhancements, dealing e.g. with the performance (see <a
        href="https://jira.evolveum.com/browse/MID-1485">https://jira.evolveum.com/browse/MID-1485</a>).
      <br>
      <br>
      If you need the sources, they are here:<br>
      <ul>
        <li>for Connector Server:</li>
        <ul>
          <li>the common distribution (maintained together by Tirasa,
            ForgeRock and Evolveum): <a
              href="https://github.com/tirasa/ConnId">https://github.com/tirasa/ConnId</a></li>
          <li>the Evolveum distribution: <a
              href="https://github.com/Evolveum/ConnId">https://github.com/Evolveum/ConnId</a><br>
            (In both repositories, take branch 1_4_X_Y.)<br>
          </li>
        </ul>
      </ul>
      <ul>
        <li>for Active Directory Connector: <br>
        </li>
        <ul>
          <li><a href="https://github.com/Evolveum/openicf">https://github.com/Evolveum/openicf</a></li>
        </ul>
      </ul>
      <b>(2)</b> You're right concerning the changes you've done in the
      ConnectorHost configuration. Just for simplicity, I would suggest
      starting with <protectConnection> turned off. After
      establishing the connection you can of course add the SSL support.<br>
      <br>
      <b>(3)</b> As for the ad-resource-simple.xml, it works for me
      without problems. The only thing I had to do is to configure
      icfc:configurationProperties.<br>
      <br>
      Please try with the latest snapshot (java code and samples). I
      also send you my configuration in the attachment.<br>
      <br>
      If the problem will still persist, please let me know.<br>
      <br>
      Perhaps one question: have you succeed in discovering the
      connectors on your connector host? (See step Discover Connectors
      in <a
        href="https://wiki.evolveum.com/display/midPoint/Active+Directory+HOWTO">https://wiki.evolveum.com/display/midPoint/Active+Directory+HOWTO</a>)<br>
      <br>
      Best regards,<br>
      Pavol<br>
      <br>
      On 5. 5. 2014 15:26, Sam Verboven wrote:<br>
    </div>
    <blockquote
cite="mid:CAEzBJ0Jo_0VKNieDaVY05bP+zMeZBa6p1vSr7zqnEVf+bQsk+g@mail.gmail.com"
      type="cite">
      <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 moz-do-not-send="true"
              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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
href="https://wiki.evolveum.com/display/midPoint/Active+Directory#ActiveDirectory-ConnectorHostConfiguration">https://wiki.evolveum.com/display/midPoint/Active+Directory#ActiveDirectory-ConnectorHostConfiguration</a>
            and <a moz-do-not-send="true"
              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
                  moz-do-not-send="true"
                  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
                  moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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
                <a class="moz-txt-link-freetext" href="resource:91919191-76e0-59e2-86d6-44cc44cc44cc(Basic">resource:91919191-76e0-59e2-86d6-44cc44cc44cc(Basic</a>
                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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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 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>"</i></div>
          </blockquote>
          <blockquote style="margin:0 0 0 40px;border:none;padding:0px">
            <div><i>             xmlns:icfc="<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  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>
      <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>