<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Fabio,<br>
    <br>
    I haven't tried LiveSync with AD for quite a long time, but I
    remember one setup, where, running the Connector Server on DC, I had
    to have both set to "localhost" for LiveSync.<br>
    <br>
    For provisioning I don't set these at all.<br>
    <br>
    I.<br>
    <br>
    <div class="moz-cite-prefix">On 08/27/2015 04:22 PM, Fabio Contessi
      wrote:<br>
    </div>
    <blockquote cite="mid:9AA1AAE8-FF27-47C9-9EF3-6CE95272EFFE@nsr.it"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      Ok, for the Sync* attributes I have put IP address and not the DNS
      name of the domain controller. Do you think this might be a
      problem?
      <div class="">
        <div class=""><br class="">
        </div>
        <div class="">  Fabio</div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
          <div>
            <blockquote type="cite" class="">
              <div class="">Il giorno 27/ago/2015, alle ore 16:18, Ivan
                Noris <<a moz-do-not-send="true"
                  href="mailto:Ivan.Noris@evolveum.com" class="">Ivan.Noris@evolveum.com</a>>
                ha scritto:</div>
              <br class="Apple-interchange-newline">
              <div class="">
                <div class="">
                  <div style="font-family: 'times new roman', 'new
                    york', times, serif; font-size: 12pt;" class="">
                    <div class="">So far no idea, but can you please
                      check your values for:<br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class=""><gen927:LDAPHostName>xxx.xxx.xxx.x</gen927:LDAPHostName></div>
                    <div class=""><gen927:SearchChildDomains>false</gen927:SearchChildDomains></div>
                    <div class=""><gen927:DomainName>xxxx.xxxx.xxxx</gen927:DomainName></div>
                    <div class=""><gen927:SyncGlobalCatalogServer>xxx.xxx.xxx.x</gen927:SyncGlobalCatalogServer></div>
                    <div class=""><gen927:SyncDomainController>xxx.xxx.xxx.x</gen927:SyncDomainController></div>
                    <div class=""><br class="">
                    </div>
                    <div class="">If LDAPHostName/DomainName is problem,
                      I assume normal provisioning would cause problems
                      too.<br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Sync* attributes can cause problems
                      only with synchronization. Can you please check if
                      those are resolvable from the machine where
                      connector server runs?<br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">Regards,<br class="">
                    </div>
                    <div class="">Ivan<br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <hr id="zwchr" class="">
                    <blockquote style="border-left-width: 2px;
                      border-left-style: solid; border-left-color:
                      rgb(16, 16, 255); margin-left: 5px; padding-left:
                      5px; font-weight: normal; font-style: normal;
                      text-decoration: none; font-family: Helvetica,
                      Arial, sans-serif; font-size: 12pt;" class=""><b
                        class="">From: </b>"Fabio Contessi" <<a
                        moz-do-not-send="true"
                        href="mailto:f.contessi@nsr.it" class=""><a class="moz-txt-link-abbreviated" href="mailto:f.contessi@nsr.it">f.contessi@nsr.it</a></a>><br
                        class="">
                      <b class="">To: </b>"midPoint General Discussion"
                      <<a moz-do-not-send="true"
                        href="mailto:midpoint@lists.evolveum.com"
                        class="">midpoint@lists.evolveum.com</a>><br
                        class="">
                      <b class="">Sent: </b>Thursday, August 27, 2015
                      1:57:17 PM<br class="">
                      <b class="">Subject: </b>Re: [midPoint] Issue
                      with AD Synchronization process<br class="">
                      <div class=""><br class="">
                      </div>
                      Hi Ivan,
                      <div class=""><br class="">
                      </div>
                      <div class="">the zip attached file contains:</div>
                      <div class=""><br class="">
                      </div>
                      <div class="">- Resource-ActiveDirectorySyncOnly.xml:
                        resource AD as configured in the environment;</div>
                      <div class=""><br class="">
                      </div>
                      <div class="">- ObjectTemplate-CreateFromAD.xml:
                        the (empty) object template referenced in the
                        resource;</div>
                      <div class=""><br class="">
                      </div>
                      <div class="">- TaskType-ADSync.xml: the task
                        configured for starting the synchronization.</div>
                      <div class=""><br class="">
                      </div>
                      <div class="">
                        <div class="">Regards.
                        </div>
                        <div class=""><br class="">
                        </div>
                        <div class="">  Fabio</div>
                        <br class="">
                        <div class="">
                        </div>
                      </div>
                      <br class="">
                      <div class="">
                        <div class="">
                          <div class=""><br class="">
                          </div>
                        </div>
                        <div class="">
                          <blockquote class="">
                            <div class="">Il giorno 27/ago/2015, alle
                              ore 13:12, Ivan Noris <<a
                                moz-do-not-send="true"
                                href="mailto:ivan.noris@evolveum.com"
                                class="" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:ivan.noris@evolveum.com">ivan.noris@evolveum.com</a></a>>
                              ha scritto:</div>
                            <br class="Apple-interchange-newline">
                            <div class="">
                              <div class="">
                                <div style="font-family: 'times new
                                  roman', 'new york', times, serif;
                                  font-size: 12pt;" class="">
                                  <div class="">Hi,<br class="">
                                  </div>
                                  <div class=""><br class="">
                                  </div>
                                  <div class="">can you please send the
                                    resource (anonymized if needed) to
                                    see the connector configuration
                                    properties?<br class="">
                                  </div>
                                  <div class=""><br class="">
                                  </div>
                                  <div class="">Regards,<br class="">
                                  </div>
                                  <div class="">Ivan<br class="">
                                  </div>
                                  <div class=""><br class="">
                                  </div>
                                  <hr id="zwchr" class="">
                                  <blockquote style="border-left-width:
                                    2px; border-left-style: solid;
                                    border-left-color: rgb(16, 16, 255);
                                    margin-left: 5px; padding-left: 5px;
                                    font-weight: normal; font-style:
                                    normal; text-decoration: none;
                                    font-family: Helvetica, Arial,
                                    sans-serif; font-size: 12pt;"
                                    class=""><b class="">From: </b>"Fabio
                                    Contessi" <<a
                                      moz-do-not-send="true"
                                      href="mailto:f.contessi@nsr.it"
                                      class="" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:f.contessi@nsr.it">f.contessi@nsr.it</a></a>><br
                                      class="">
                                    <b class="">To: </b><a
                                      moz-do-not-send="true"
                                      href="mailto:midpoint@lists.evolveum.com"
                                      class="" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a></a><br
                                      class="">
                                    <b class="">Sent: </b>Thursday,
                                    August 27, 2015 12:29:58 PM<br
                                      class="">
                                    <b class="">Subject: </b>[midPoint]
                                    Issue with AD Synchronization
                                    process<br class="">
                                    <div class=""><br class="">
                                    </div>
                                    Hi,
                                    <div class="">I have a problem in
                                      executing synchronization process
                                      using an Active Directory as
                                      resource. I’m using:</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">- midpoint 3.2;</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">- Active Directory on
                                      Windows Server 2008 R2 Enterprise;</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">- Active Directory
                                      Connector Server 1.4.1.20257 on
                                      Windows Server 2012 R2 Standard
                                      Edition.</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">When I start the
                                      synchronization task it stops
                                      immediately giving the message:</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class=""><b class="">Synchronization
                                        error: generic connector
                                        framework error:
                                        org.identityconnectors.framework.impl.api.remote.RemoteWrappedException(The
                                        given key was not present in the
                                        dictionary.) </b></div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">Below an extract of
                                      the Connector Server log file
                                      concerning the synchronization
                                      error:<br class="">
                                      <br class="">
                                      ConnectorServer.exe Error: 0 :
                                      Exception :<br class="">
                                      Type:
                                      System.Collections.Generic.KeyNotFoundException<br
                                        class="">
                                      Message: The given key was not
                                      present in the dictionary.<br
                                        class="">
                                      Source: FrameworkInternal<br
                                        class="">
                                      Stacktrace:    at
                                      System.Collections.Generic.Dictionary`2.get_Item(TKey
                                      key)<br class="">
                                         at
                                      Org.IdentityConnectors.ActiveDirectory.ActiveDirectoryConnector.Sync(ObjectClass
                                      objClass, SyncToken token,
                                      SyncResultsHandler handler,
                                      OperationOptions options) in
                                      d:\midpoint\tgit\openicf\connectors\dotnet\ActiveDirectoryConnector\ActiveDirectoryConnector.cs:line
                                      1196<br class="">
                                         at
                                      Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.SyncImpl.Sync(ObjectClass
                                      objectClass, SyncToken token,
                                      SyncResultsHandler
                                      handler, OperationOptions options)
                                      in
                                      c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\ApiLocalOperations.cs:line
                                      1606<br class="">
                                         at
                                      Org.IdentityConnectors.Framework.Impl.Api.Local.Operations.ConnectorAPIOperationRunnerProxy.Invoke(Object
                                      proxy, MethodInfo method, Object[]
                                      args)
                                      in c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\ApiLocalOperations.cs:line
                                      247<br class="">
                                         at ___proxy1.Sync(ObjectClass ,
                                      SyncToken , SyncResultsHandler ,
                                      OperationOptions )<br class="">
                                         at
                                      Org.IdentityConnectors.Framework.Impl.Api.DelegatingTimeoutProxy.Invoke(Object
                                      proxy, MethodInfo method, Object[]
                                      args)
                                      in c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\Api.cs:line
                                      1344<br class="">
                                         at ___proxy1.Sync(ObjectClass ,
                                      SyncToken , SyncResultsHandler ,
                                      OperationOptions )<br class="">
                                         at
                                      Org.IdentityConnectors.Framework.Impl.Server.ConnectionProcessor.ProcessOperationRequest(OperationRequest
                                      request)
                                      in c:\Users\Pavol\Documents\GitHub\ConnId\dotnet\FrameworkInternal\Server.cs:line
                                      626<br class="">
                                         
                                      DateTime=2015-08-27T08:02:33.2560306Z</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">Any ideas on how to
                                      resolve the issue?</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">Thanks in advance.</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class="">————————</div>
                                    <div class="">Fabio Contessi</div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class=""><br class="">
                                    </div>
                                    <div class=""><br class="">
                                    </div>
                                    <br class="">
_______________________________________________<br class="">
                                    midPoint mailing list<br class="">
                                    <a moz-do-not-send="true"
                                      href="mailto:midPoint@lists.evolveum.com"
                                      class="">midPoint@lists.evolveum.com</a><br
                                      class="">
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br class="">
                                  </blockquote>
                                  <div class=""><br class="">
                                    <br class="">
                                  </div>
                                  <div class=""><br class="">
                                  </div>
                                  <div class="">-- <br class="">
                                  </div>
                                  <div class=""><span class=""></span>  Ing.
                                    Ivan Noris<br class="">
                                      Senior Identity Management
                                    Engineer<br class="">
                                      <a moz-do-not-send="true"
                                      href="http://evolveum.com/"
                                      class="" target="_blank">evolveum.com</a><br
                                      class="">
  ___________________________________________<br class="">
                                               "Idem per idem - semper
                                    idem Vix."<span class=""></span><br
                                      class="">
                                  </div>
                                </div>
                              </div>
_______________________________________________<br class="">
                              midPoint mailing list<br class="">
                              <a moz-do-not-send="true"
                                href="mailto:midPoint@lists.evolveum.com"
                                class="" target="_blank">midPoint@lists.evolveum.com</a><br
                                class="">
                              <a moz-do-not-send="true"
                                href="http://lists.evolveum.com/mailman/listinfo/midpoint"
                                class="">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br
                                class="">
                            </div>
                          </blockquote>
                        </div>
                        <br class="">
                      </div>
                      <br class="">
                      _______________________________________________<br
                        class="">
                      midPoint mailing list<br class="">
                      <a moz-do-not-send="true"
                        href="mailto:midPoint@lists.evolveum.com"
                        class="">midPoint@lists.evolveum.com</a><br
                        class="">
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br class="">
                    </blockquote>
                    <div class=""><br class="">
                      <br class="">
                    </div>
                    <div class=""><br class="">
                    </div>
                    <div class="">-- <br class="">
                    </div>
                    <div class=""><span name="x" class=""></span>  Ing.
                      Ivan Noris<br class="">
                        Senior Identity Management Engineer<br class="">
                        <a moz-do-not-send="true"
                        href="http://evolveum.com" class="">evolveum.com</a><br
                        class="">
                        ___________________________________________<br
                        class="">
                                 "Idem per idem - semper idem Vix."<span
                        name="x" class=""></span><br class="">
                    </div>
                  </div>
                </div>
                _______________________________________________<br
                  class="">
                midPoint mailing list<br class="">
                <a moz-do-not-send="true"
                  href="mailto:midPoint@lists.evolveum.com" class="">midPoint@lists.evolveum.com</a><br
                  class="">
                <a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br
                  class="">
              </div>
            </blockquote>
          </div>
          <br class="">
        </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>
    <pre class="moz-signature" cols="72">-- 
  Ing. Ivan Noris
  Senior Identity Management Engineer & IDM Architect
  evolveum.com                     evolveum.com/blog/
  ___________________________________________________
  "Semper Id(e)M Vix."
</pre>
  </body>
</html>