<?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 How to move AD sync. configuration to AD auth. only? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263978#M217108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm syncronizing users from our AD using the following configuration in config files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that AD has ~150K users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Alfresco apperently can't cope with such a large number of users.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on "Repository"-&amp;gt;"User Homes" ,alfresco will try to display all User Homes and it will hog the server!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been thinking of moving from sync. mode to only auth. mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing is that we already have several users working with Alfresco and Share and I don't want them to get any impact from this change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my AD snap from /srv/alfresco/tomcat/shared/classes/alfresco-global.properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#&lt;BR /&gt;# AD configuration&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad1:ldap-ad,ldap-ad2:ldap-ad,ldap-ad3:ldap-ad&lt;BR /&gt;synchronization.synchronizeChangesOnly=true&lt;BR /&gt;synchronization.syncOnStartup=false&lt;BR /&gt;synchronization.import.cron=0 30 2 * * ?&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an example of /srv/alfresco/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap-ad1/ldap-ad-authentication.properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ldap.authentication.active=true&lt;BR /&gt;# synchronization.synchronizeChangesOnly=true&lt;BR /&gt;# synchronization.syncOnStartup=false&lt;BR /&gt;ldap.authentication.java.naming.security.authentication=simple&lt;BR /&gt;&lt;BR /&gt;# Change here OU=Staff or OU=Student or OU=External&lt;BR /&gt;ldap.authentication.userNameFormat=CN=%s,OU=Staff,OU=Accounts,DC=AD,DC=MY,DC=ORG&lt;BR /&gt;&lt;BR /&gt;ldap.authentication.allowGuestLogin=true&lt;BR /&gt;ldap.authentication.java.naming.provider.url=ldap://ad1.ad.my.org:389&lt;BR /&gt;ldap.authentication.defaultAdministratorUserNames=lkolnz,swelsd,anbeitz&lt;BR /&gt;ldap.authentication.escapeCommasInBind=true&lt;BR /&gt;ldap.authentication.escapeCommasInUid=true&lt;BR /&gt;&lt;BR /&gt;ldap.synchronization.active=true&lt;BR /&gt;ldap.synchronization.java.naming.security.principal=CN=lkolnz,OU=Staff,OU=Accounts,DC=AD,DC=MY,DC=ORG&lt;BR /&gt;ldap.synchronization.java.naming.security.credentials=secret_password&lt;BR /&gt;ldap.synchronization.queryBatchSize=500&lt;BR /&gt;ldap.synchronization.attributeBatchSize=100&lt;BR /&gt;&lt;BR /&gt;ldap.synchronization.groupQuery=(&amp;amp;(objectclass=group)(objectCategory=Group))&lt;BR /&gt;ldap.synchronization.groupDifferentialQuery=(&amp;amp;(objectclass=group)(!(whenChanged&amp;lt;={0})))&lt;BR /&gt;ldap.synchronization.groupMemberAttributeName=member&lt;BR /&gt;ldap.synchronization.groupIdAttributeName=cn&lt;BR /&gt;ldap.synchronization.groupType=group&lt;BR /&gt;ldap.synchronization.groupSearchBase=OU=Groups,DC=AD,DC=MY,DC=ORG&lt;BR /&gt;&lt;BR /&gt;ldap.synchronization.personQuery=(&amp;amp;(objectCategory=Person)(sAMAccountName=*))&lt;BR /&gt;ldap.synchronization.personDifferentialQuery=(&amp;amp;(objectclass=user)(!(whenChanged&amp;lt;={0})))&lt;BR /&gt;&lt;BR /&gt;# Change here OU=Staff or OU=Student or OU=External&lt;BR /&gt;ldap.synchronization.userSearchBase=OU=Staff,OU=Accounts,DC=AD,DC=MY,DC=ORG&lt;BR /&gt;&lt;BR /&gt;ldap.synchronization.modifyTimestampAttributeName=whenChanged&lt;BR /&gt;ldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'&lt;BR /&gt;ldap.synchronization.userIdAttributeName=sAMAccountName&lt;BR /&gt;ldap.synchronization.userFirstNameAttributeName=givenName&lt;BR /&gt;ldap.synchronization.userLastNameAttributeName=sn&lt;BR /&gt;ldap.synchronization.userEmailAttributeName=mail&lt;BR /&gt;#ldap.synchronization.userOrganizationalIdAttributeName=&lt;BR /&gt;ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider&lt;BR /&gt;ldap.synchronization.personType=user&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&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;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I couldn't find a table in MySQL that consist of all user that logged and have been using alfresco &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would setting "ldap.synchronization.active=false" preserve all current users and their files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it the only change I need to do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I change anything else in /srv/alfresco/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/ldap-ad/ldap-ad1/ldap-ad-authentication.properties?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other advice?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Leon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Dec 2010 02:09:30 GMT</pubDate>
    <dc:creator>leonk</dc:creator>
    <dc:date>2010-12-01T02:09:30Z</dc:date>
    <item>
      <title>How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263978#M217108</link>
      <description>Hello,I'm syncronizing users from our AD using the following configuration in config files.The problem is that AD has ~150K users.Alfresco apperently can't cope with such a large number of users.When I click on "Repository"-&amp;gt;"User Homes" ,alfresco will try to display all User Homes and it will ho</description>
      <pubDate>Wed, 01 Dec 2010 02:09:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263978#M217108</guid>
      <dc:creator>leonk</dc:creator>
      <dc:date>2010-12-01T02:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263979#M217109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Would setting "ldap.synchronization.active=false" preserve all current users and their files?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;From my experience i think so, I'm quite sure, but make a test to preproduction deployment just in case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is it the only change I need to do?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Probably, although you might need to make sure that &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/The_Synchronization_Subsystem" rel="nofollow noopener noreferrer"&gt;"synchronization.autoCreatePeopleOnLogin"&lt;/A&gt;&lt;SPAN&gt; is set to true so that new user's homes are created automatically. I suppose that this will work even if you have no synchronization activated in your chain, but never tried it myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any other advice?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;If you have an Active Directory consider just using &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems#Passthru" rel="nofollow noopener noreferrer"&gt;passthru subsystem&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 14:27:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263979#M217109</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-12-03T14:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263980#M217110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks iblanco,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm testing it on dev. machine, replicated from live server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've change configuration but I still have all those sync-ed users and when clicking on "Repository"-&amp;gt;"User Homes", I'm getting approx. ~160 user homes displayed and &amp;lt;Too many subfolders to display&amp;gt; message at the end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Almost all those users never logged in to the system (the sync-ed from AD).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I go about deleting/getting rid of those User Homes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Leon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 04:59:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263980#M217110</guid>
      <dc:creator>leonk</dc:creator>
      <dc:date>2010-12-09T04:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263981#M217111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would create a very simple JavaScript in Data Dictionary/scripts repository folder that executed against a folder (User homes in this case) iterates all its children and checks if they are of folder type and if they are empty. If they are empty just delete it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If by chance some of the deleted home's are for valid users that shouldn't be such a big deal, after all the home will be created again next time they log in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After checking that everything is alright you might want to empty the Trashcan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 14:58:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263981#M217111</guid>
      <dc:creator>iblanco</dc:creator>
      <dc:date>2010-12-13T14:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263982#M217112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would create a very simple JavaScript in Data Dictionary/scripts repository folder that executed against a folder (User homes in this case) iterates all its children and checks if they are of folder type and if they are empty. If they are empty just delete it.&lt;BR /&gt;&lt;BR /&gt;If by chance some of the deleted home's are for valid users that shouldn't be such a big deal, after all the home will be created again next time they log in.&lt;BR /&gt;&lt;BR /&gt;After checking that everything is alright you might want to empty the Trashcan.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;STRONG&gt;iblanco&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is fantastic idea!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't posses a knowledge in that area and have no experience with "Data Dictionary/scripts repository" ;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you be so kind and provide me with some step by step instructions and possible javascript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 00:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263982#M217112</guid>
      <dc:creator>leonk</dc:creator>
      <dc:date>2010-12-15T00:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to move AD sync. configuration to AD auth. only?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263983#M217113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've got this script, thanks to John (from Alfresco):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var childList = companyhome.childByNamePath("User Homes").children;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for (var i=0; i&amp;lt;childList.length; i++)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; var child = childList&lt;/SPAN&gt;&lt;EM&gt;;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; logger.log(child.name);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var subchildren = child.children;&lt;BR /&gt;&amp;nbsp; logger.log(subchildren.length);&lt;BR /&gt;&amp;nbsp; if (subchildren.length==0){&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; child.remove();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Just create this script in Company Home &amp;gt; Data Dictionary &amp;gt; Scripts and&lt;BR /&gt;run it from any Space (More Action-&amp;gt;View Details-&amp;gt;Run Action)&lt;/EM&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2011 01:03:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-move-ad-sync-configuration-to-ad-auth-only/m-p/263983#M217113</guid>
      <dc:creator>leonk</dc:creator>
      <dc:date>2011-03-28T01:03:02Z</dc:date>
    </item>
  </channel>
</rss>

