<?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: Switch from AD LDAP authentication to local authentication keeping current users and history in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106720#M30116</link>
    <description>&lt;P&gt;You should rarely have to delve into the Alfresco database tables directly to do things like this. As such, there is no (public) documentation on the tables to not encourage people to try and modify these internals, and break their systems by doing so.&lt;/P&gt;
&lt;P&gt;This this particular case, the users you have in Alfresco are already pretty much ready to go as regular users when LDAP-AD is disabled. The only thing you absolutely would have to do is assign each user a password. Theoretically, you should be able to deactivate/remove the LDAP-AD configuration (simplest way: remove it from authentication.chain property in alfresco-global.properties) and after a restart should be allowed to set new passwords for these users in the Share UI. If that does not work or you have a lot of users, you can use tools like the JavaScript Console to script the password allocation by using JavaScript-Java interoperability to access the call the createAuthentication operation on the MutableAuthenticationService interface.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Mar 2020 15:56:37 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2020-03-31T15:56:37Z</dc:date>
    <item>
      <title>Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106719#M30115</link>
      <description>&lt;P&gt;I'm going to migrate my Alfresco to the cloud and I have the task of removing authentication via AD LDAP for authentication.&lt;/P&gt;&lt;P&gt;I was looking for a way to do this in the database, but the Alfresco tables are quite complex. I still haven't been able to identify a way to perform this operation in the database. I saw that users and groups are in the database.&lt;/P&gt;&lt;P&gt;Is there a way to convert these users as if they were local users?&lt;/P&gt;&lt;P&gt;Is there any documentation on the tables and fields in the Alfresco database?&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 22:06:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106719#M30115</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2020-03-30T22:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106720#M30116</link>
      <description>&lt;P&gt;You should rarely have to delve into the Alfresco database tables directly to do things like this. As such, there is no (public) documentation on the tables to not encourage people to try and modify these internals, and break their systems by doing so.&lt;/P&gt;
&lt;P&gt;This this particular case, the users you have in Alfresco are already pretty much ready to go as regular users when LDAP-AD is disabled. The only thing you absolutely would have to do is assign each user a password. Theoretically, you should be able to deactivate/remove the LDAP-AD configuration (simplest way: remove it from authentication.chain property in alfresco-global.properties) and after a restart should be allowed to set new passwords for these users in the Share UI. If that does not work or you have a lot of users, you can use tools like the JavaScript Console to script the password allocation by using JavaScript-Java interoperability to access the call the createAuthentication operation on the MutableAuthenticationService interface.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 15:56:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106720#M30116</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2020-03-31T15:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106721#M30117</link>
      <description>&lt;P&gt;I tried to use your tips, unfortunately I couldn't. Explaining everything I've done.&lt;/P&gt;&lt;P&gt;In this new installation I did I disabled LDAP-AD authentication. When I checked the users, all accounts were disabled.&lt;BR /&gt;In the Share UI the password fields and the checkbox to activate the account are disabled even using the admin user.&lt;/P&gt;&lt;P&gt;I have no knowledge to use the JavaScript Console or Alfresco API. I tried to research more but I didn't see any practical example of how to use it.&lt;/P&gt;&lt;P&gt;Could you help me with some study material? Or without abusing too much what you should do.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:21:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106721#M30117</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2020-04-01T23:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106722#M30118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80987"&gt;@adautofernandes&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Was your Share instance customised as part of LDAP integration? Look in&amp;nbsp;&lt;SPAN&gt;&amp;lt;web-extension&amp;gt;\share-config-custom.xml to see if there are any modifications in this file. Also check the documentation on &lt;A href="https://docs.alfresco.com/community/concepts/dev-extensions-share-form-controls.html" target="_self" rel="nofollow noopener noreferrer"&gt;Form Customisation&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 11:19:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106722#M30118</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-04-02T11:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106723#M30119</link>
      <description>&lt;P&gt;The only thing I customized in that file:&lt;/P&gt;&lt;PRE&gt;&amp;lt;config evaluator="string-compare" condition="CSRFPolicy" replace="true"&amp;gt;
  &amp;lt;properties&amp;gt;
    &amp;lt;token&amp;gt;Alfresco-CSRFToken&amp;lt;/token&amp;gt;
    &amp;lt;!-- Use the pipe | in the regex as OR operator: URL1|URL2|... --&amp;gt;
    &amp;lt;referer&amp;gt;https://alfresco.mydomain.com.br/.*&amp;lt;/referer&amp;gt;
    &amp;lt;origin&amp;gt;https://alfresco.mydomain.com.br&amp;lt;/origin&amp;gt;
  &amp;lt;/properties&amp;gt;
&amp;lt;/config&amp;gt;&lt;/PRE&gt;&lt;P&gt;I believe that it is not that.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:15:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106723#M30119</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2020-04-02T15:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106724#M30120</link>
      <description>&lt;P&gt;I forgot to inform the version I am using. It's the Alfresco Community 201707 (v5.2).&lt;/P&gt;&lt;P&gt;Today I tried to "steal" on the user's edit form. Enabling the password fields and the user account activation checkbox by editing the generated HTML using the browser inspect element.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edit-html1.png" style="width: 477px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/523i6B78F857D6EF84EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="edit-html2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/531iE11AC387A644775D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Just remove&amp;nbsp;the &lt;STRONG&gt;Disabled="True"&lt;/STRONG&gt; to enable, &lt;SPAN&gt;but Alfresco's security is good.&lt;/SPAN&gt; I underestimate Alfresco's security &lt;img id="smileylol" class="emoticon emoticon-smileylol" src="https://connect.hyland.com/i/smilies/16x16_smiley-lol.png" alt="Smiley LOL" title="Smiley LOL" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I try to save I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="msg-error.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/527i4A9F54DC1886E6DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There had to be an easier way to activate these users.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 15:50:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106724#M30120</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2020-04-02T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106725#M30121</link>
      <description>&lt;P&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I left some extra information. Do you have any light to help me?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 23:51:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106725#M30121</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2020-04-05T23:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106726#M30122</link>
      <description>&lt;P&gt;Hello, &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80987"&gt;@adautofernandes&lt;/A&gt; - did you ever get this to work for you? I'm migrating an ACS 4.6.2 instance over to a new data center and would like to do so without the current LDAP authentication.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2021 15:16:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106726#M30122</guid>
      <dc:creator>pauldavidmena</dc:creator>
      <dc:date>2021-07-02T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106727#M30123</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/81923"&gt;@pauldavidmena&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;So I couldn't migrate to the other server by disabling authentication with my Microsoft Active Directory/LDAP.&lt;BR /&gt;The solution I found was to install OpenLDAP + LAM (LDAP Account Manager) on Alfresco's server to manage users.&lt;/P&gt;&lt;P&gt;What's annoying about Alfresco is that it's difficult to maintain.&lt;BR /&gt;In the coming months I will have to plan the update. Hope to have a little headache.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jul 2021 21:19:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106727#M30123</guid>
      <dc:creator>adautofernandes</dc:creator>
      <dc:date>2021-07-07T21:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106728#M30124</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80987"&gt;@adautofernandes&lt;/A&gt;you have your answer on &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;' post:&lt;/P&gt;&lt;PRE&gt;Theoretically, you should be able to deactivate/remove the LDAP-AD configuration &lt;BR /&gt;(simplest way: remove it from authentication.chain property in alfresco-global.properties) &lt;BR /&gt;and after a restart should be allowed to set new passwords for these users in the Share UI.&lt;/PRE&gt;&lt;P&gt;Don't go directly into the database. &lt;A href="https://docs.alfresco.com/content-services/community/admin/auth-sync/" target="_self" rel="nofollow noopener noreferrer"&gt;Go though alfresco-global.properties&lt;/A&gt; and keep only ntlm authenticator on that line.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 06:53:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106728#M30124</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-07-08T06:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106729#M30125</link>
      <description>&lt;P&gt;Greetings from Cape Cod!&lt;/P&gt;&lt;P&gt;I have edited the authentication.chain variable in alfresco-global.properties to eliminate references to LDAP:&lt;/P&gt;&lt;PRE&gt;authentication.chain=alfrescoNtlm1:alfrescoNtlm&lt;/PRE&gt;&lt;P&gt;I am running Alfresco Content Services v4.2.6. After restarting alfresco, I was able to log in as "admin" and create a new user. Now the big task is to convert all of the LDAP users to local users while keeping the existing data and history. Is there a doc or a tutorial describing how this is done? When I search for a user under the "Manage System Users" section of the Administration Console, I can see their "Person Properties" and "User Properties", but I'm unable to change their password.&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/4825"&gt;@cristinamr&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/80987"&gt;@adautofernandes&lt;/A&gt;you have your answer on &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;' post:&lt;/P&gt;&lt;PRE&gt;Theoretically, you should be able to deactivate/remove the LDAP-AD configuration &lt;BR /&gt;(simplest way: remove it from authentication.chain property in alfresco-global.properties) &lt;BR /&gt;and after a restart should be allowed to set new passwords for these users in the Share UI.&lt;/PRE&gt;&lt;P&gt;Don't go directly into the database. &lt;A href="https://docs.alfresco.com/content-services/community/admin/auth-sync/" target="_self" rel="nofollow noopener noreferrer"&gt;Go though alfresco-global.properties&lt;/A&gt; and keep only ntlm authenticator on that line.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cristina.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:56:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106729#M30125</guid>
      <dc:creator>pauldavidmena</dc:creator>
      <dc:date>2021-07-08T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106730#M30126</link>
      <description>&lt;P&gt;Did you find a way to do this? I am on Alfresco 7.2 and having the same issue.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 09:46:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106730#M30126</guid>
      <dc:creator>ryanmorgan</dc:creator>
      <dc:date>2023-04-12T09:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106731#M30127</link>
      <description>&lt;P&gt;We never did make the switch, so we're continuing to authenticate to LDAP. Ultimately we will probably migrate to the Cloud version of Alfresco, but there's no timeframe as far as I know.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 14:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106731#M30127</guid>
      <dc:creator>pauldavidmena</dc:creator>
      <dc:date>2023-04-12T14:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Switch from AD LDAP authentication to local authentication keeping current users and history</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106732#M30128</link>
      <description>&lt;PRE&gt;//ContextLoader = Packages.org.springframework.web.context.ContextLoader,
//ContextLoader.getCurrentWebApplicationContext().getBean(beanName, classType)
var authService = C.getBean('authenticationService', org.alfresco.service.cmr.security.MutableAuthenticationService);

var password = new String("pass");
var user = "user";

var ch = []
for (var i = 0; i &amp;lt; password.length; i++) {
     ch[i] = password.charAt(i);
}

if(authService.isAuthenticationMutable(user)){
	authService.setAuthentication(user,ch);
}else{
	authService.createAuthentication(user,ch);
}&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Nov 2023 19:41:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/switch-from-ad-ldap-authentication-to-local-authentication/m-p/106732#M30128</guid>
      <dc:creator>odtorres</dc:creator>
      <dc:date>2023-11-06T19:41:33Z</dc:date>
    </item>
  </channel>
</rss>

