<?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 Alfresco-Lock User Account on unsuccessfull attempts in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143984#M38231</link>
    <description>&lt;P&gt;I am exploring Lock user account on&amp;nbsp;unsuccessfull attempts.&lt;/P&gt;&lt;P&gt;I found below properties and its working&lt;/P&gt;&lt;P&gt;authentication.protection.enabled=true&lt;BR /&gt;authentication.protection.limit=3&lt;BR /&gt;authentication.protection.periodSeconds=900&lt;/P&gt;&lt;P&gt;One more extra steps I want to do here is sending email to user on account lock.&lt;/P&gt;&lt;P&gt;I found java file(AuthenticationServiceImpl.java) where account lock logic is there but I am not getting idea how can I override that and write down my email send logic.&lt;/P&gt;&lt;P&gt;Any one have any idea about override?&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 05:31:28 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2023-03-23T05:31:28Z</dc:date>
    <item>
      <title>Alfresco-Lock User Account on unsuccessfull attempts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143984#M38231</link>
      <description>&lt;P&gt;I am exploring Lock user account on&amp;nbsp;unsuccessfull attempts.&lt;/P&gt;&lt;P&gt;I found below properties and its working&lt;/P&gt;&lt;P&gt;authentication.protection.enabled=true&lt;BR /&gt;authentication.protection.limit=3&lt;BR /&gt;authentication.protection.periodSeconds=900&lt;/P&gt;&lt;P&gt;One more extra steps I want to do here is sending email to user on account lock.&lt;/P&gt;&lt;P&gt;I found java file(AuthenticationServiceImpl.java) where account lock logic is there but I am not getting idea how can I override that and write down my email send logic.&lt;/P&gt;&lt;P&gt;Any one have any idea about override?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 05:31:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143984#M38231</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-03-23T05:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco-Lock User Account on unsuccessfull attempts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143985#M38232</link>
      <description>&lt;P&gt;You can override this method from AuthenticationServiceImpl:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/f2d858f911aeae635bd186dbc39fc729dc941013/repository/src/main/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java#L197" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/f2d858f911aeae635bd186dbc39fc729dc941013/repository/src/main/java/org/alfresco/repo/security/authentication/AuthenticationServiceImpl.java#L197&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You may use following approach to override AuthenticationService Spring bean:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/docs/Common-Spring-Processors.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Acosix/alfresco-utility/blob/master/docs/Common-Spring-Processors.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 10:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143985#M38232</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-03-23T10:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco-Lock User Account on unsuccessfull attempts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143986#M38233</link>
      <description>&lt;P&gt;Thanks for answer.&lt;/P&gt;&lt;P&gt;I have a idea about class and method for my custom logic but not gettign idea how to override as I am not able to find bean.&lt;/P&gt;&lt;P&gt;Could you provide some basic idea to implement post processor for&amp;nbsp;&lt;SPAN&gt;AuthenticationServiceImpl.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Trying below way but not getting idea for targetBeanName.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;	&amp;lt;bean class="de.acosix.alfresco.utility.common.spring.ImplementationClassReplacingBeanFactoryPostProcessor"&amp;gt;
	   &amp;lt;property name="targetBeanName" value="" /&amp;gt;
	   &amp;lt;property name="originalClassName" value="org.alfresco.repo.security.authentication.AuthenticationServiceImpl" /&amp;gt;
	   &amp;lt;property name="replacementClassName" value="org.alfresco.repo.security.authentication.MyAuthenticationServiceImpl" /&amp;gt;
	   &amp;lt;property name="enabled" value="true" /&amp;gt;
	&amp;lt;/bean&amp;gt;	&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2023 03:45:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143986#M38233</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-03-24T03:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco-Lock User Account on unsuccessfull attempts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143987#M38234</link>
      <description>&lt;P&gt;It should be "authenticationService":&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfresco/authentication-services-context.xml#L166" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-community-repo/blob/master/repository/src/main/resources/alfresco/authentication-services-context.xml#L166&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 07:14:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143987#M38234</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-03-24T07:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco-Lock User Account on unsuccessfull attempts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143988#M38235</link>
      <description>&lt;P&gt;I configured below way but not working. Correct me if I am doing wrong way.&lt;/P&gt;&lt;P&gt;I am using alfresco sdk for customizations.&lt;/P&gt;&lt;P&gt;service-context.xml&lt;/P&gt;&lt;PRE&gt;	&amp;lt;bean class="de.acosix.alfresco.utility.common.spring.ImplementationClassReplacingBeanFactoryPostProcessor"&amp;gt;
	    &amp;lt;!-- Spring placeholder can be used and will be transparently resolved from configured Spring resolvers + property sources --&amp;gt;
	    &amp;lt;property name="enabled" value="true" /&amp;gt;
	    &amp;lt;property name="targetBeanName" value="authenticationService" /&amp;gt;
	    &amp;lt;property name="originalClassName" value="org.alfresco.repo.security.authentication.AuthenticationServiceImpl" /&amp;gt;
	    &amp;lt;property name="replacementClassName" value="org.alfresco.repo.security.authentication.CustomAuthenticationServiceImpl" /&amp;gt;
	&amp;lt;/bean&amp;gt;
	&lt;/PRE&gt;&lt;PRE&gt;public class CustomAuthenticationServiceImpl extends AuthenticationServiceImpl
{

}&lt;/PRE&gt;&lt;P&gt;I have included&amp;nbsp;ImplementationClassReplacingBeanFactoryPostProcessor class and other classes where it has dependency.&lt;/P&gt;&lt;P&gt;Below I have tried to check and it is working whereas I did same thing for&amp;nbsp;AuthenticationServiceImpl but not working.&lt;/P&gt;&lt;P&gt;I just created constructor to check, class is loading or not.&amp;nbsp;MyInvitationServiceImpl constructor is loading during sdk start but&amp;nbsp;AuthenticationServiceImpl constructor not loading.&lt;/P&gt;&lt;PRE&gt;&amp;lt;bean class="de.axelfaust.examples.beans.ImplementationClassReplacingBeanFactoryPostProcessor"&amp;gt;
	   &amp;lt;property name="targetBeanName" value="invitationService" /&amp;gt;
	   &amp;lt;property name="originalClassName" value="org.alfresco.repo.invitation.InvitationServiceImpl" /&amp;gt;
	   &amp;lt;property name="replacementClassName" value="org.alfresco.repo.invitation.MyInvitationServiceImpl" /&amp;gt;
	   &amp;lt;property name="enabled" value="true" /&amp;gt;
	&amp;lt;/bean&amp;gt;
	&lt;/PRE&gt;&lt;P&gt;It is not reaching to&amp;nbsp;CustomAuthenticationServiceImpl&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 11:35:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-lock-user-account-on-unsuccessfull-attempts/m-p/143988#M38235</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2023-03-24T11:35:49Z</dc:date>
    </item>
  </channel>
</rss>

