<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Timezone issue with LDAP Differential Sync in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253863#M206993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like I was looking in the wrong domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer should be to add the offset to the LDAP query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(!(modifyTimestamp&amp;lt;={0}+1000) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if i need to escape the + for this expression to be valid in a properties file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try and see what happens&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Nov 2010 01:43:00 GMT</pubDate>
    <dc:creator>warren_mcdonald</dc:creator>
    <dc:date>2010-11-12T01:43:00Z</dc:date>
    <item>
      <title>Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253862#M206992</link>
      <description>Hello everyone,we have uncovered an interesting problem with LDAP Sync in Differential mode.In a nutshell, our Alfresco application sees the last Sync datetime in local time but the LDAP server modifyTimestamp value is always in UTC, which is pretty standard.This may not be so much of a problem for</description>
      <pubDate>Thu, 11 Nov 2010 14:14:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253862#M206992</guid>
      <dc:creator>warren_mcdonald</dc:creator>
      <dc:date>2010-11-11T14:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253863#M206993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like I was looking in the wrong domain.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The answer should be to add the offset to the LDAP query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(!(modifyTimestamp&amp;lt;={0}+1000) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if i need to escape the + for this expression to be valid in a properties file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try and see what happens&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Nov 2010 01:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253863#M206993</guid>
      <dc:creator>warren_mcdonald</dc:creator>
      <dc:date>2010-11-12T01:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253864#M206994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well the answer to being a valid syntax seems to be no&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to include the&amp;nbsp; offset in the config as above but get bad results returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will have to trace the LDAP calls to see what is actually being sent to the LDAP server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Nov 2010 09:32:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253864#M206994</guid>
      <dc:creator>warren_mcdonald</dc:creator>
      <dc:date>2010-11-13T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253865#M206995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Warren,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Perhaps the problem is a client time zone not correctly set. Important to&amp;nbsp; keep time in sync with NTP server and user locale to satisfy the user.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Alfresco server is also set the same way, all server/ user times are synched to UTC.Ldap shouldn't be as fussy with time as is Kerberos or AD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mind you I'm still tying down Ldap on our servers and also separate dev/ test system so might have to change my comments later.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Sasquatch&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 07:30:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253865#M206995</guid>
      <dc:creator>sasquatch58</dc:creator>
      <dc:date>2010-11-14T07:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253866#M206996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Sasquatch,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;there is no user client in involved in these transactions. The LDAP entries are updated by other systems. Then Alfresco sync runs to get the entries modified since last sync. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco server sends last sync date in LDAP query as local time. The LDAP server (with an expressed offset) expects this to be UTC time. In our situation we are 10 hours ahead of UTC so no entries are ever&amp;nbsp; returned if we sync within 10 hours. If we sync every 24 hours we still lose LDAP modifications for 11 hours of the day. Our members can update personal details online, so changes could occur any time. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My specific issue is how to put the time offset expression in to the alfresco ldap subsystem properties file so they will work. If I include the offset the LDAP sync process complains about invalid results. So I am assuming including the offset is not working as expected. I can use the modifyTimetamp offset in an ldapsearch command line and get results returned as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am&amp;nbsp; assuming in the expression (!(modifyTimestamp&amp;lt;={0}))&amp;nbsp; that {0} is something like arg0 supplied to the query. So I have used (!(modifyTimestamp&amp;lt;\={0}+1000)) to include the offset. I have also tried (!(modifyTimestamp&amp;lt;\={0}\+1000)).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Warren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Nov 2010 11:23:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253866#M206996</guid>
      <dc:creator>warren_mcdonald</dc:creator>
      <dc:date>2010-11-14T11:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone issue with LDAP Differential Sync</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253867#M206997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an old post so Warren has probably resolved his issue in the meantime.&amp;nbsp; I ran into this recently though (I'm in NZ, even further past UTC than Warren ;-).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using alfresco 4.2.c community and an LDAP that returns modifyTimestamp in &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronization.timestampFormat=yyyyMMddHHmmss.SSSSSS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;format.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my own case, new users (even those created weeks previously) were not being synced.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the following (adding +1300 [or whatever your timezone offset is] now allows differential sync to work (although I'm not clear on what will happen if I forget to change the offset when NZDT changes to NZST and back again).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ldap.synchronization.personDifferentialQuery=(&amp;amp;(objectclass\=inetOrgPerson)(!(modifyTimestamp&amp;lt;\={0}+1300)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't test with old version of alfresco, but the above works with 4.2.c Community.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 03:25:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timezone-issue-with-ldap-differential-sync/m-p/253867#M206997</guid>
      <dc:creator>bopolissimus</dc:creator>
      <dc:date>2013-03-12T03:25:56Z</dc:date>
    </item>
  </channel>
</rss>

