AnsweredAssumed Answered

Default authentication not working

Question asked by nancyaggarwal on Aug 7, 2015
Latest reply on Feb 9, 2016 by siwilson
Hi,

I am trying external authentication in alfresco community 5.0.1 and for that if i set the authentication.chain= external1:external,alfrescoNtlm1:alfrescoNtlm

with this my default alfresco based authentication also doesn't work.

I added below properties in alfresco-global.properties
1. authentication.chain=external1:external,alfrescoNtlm1:alfrescoNtlm
2.external.authentication.enable=true

And added external-authentication.properties file in /Authentication/External folder with below properties
1. external.authentication.defaultAdministratorUserNames=admin

And also added external-filter.properties in same location with below properties
1. external.authentication.proxyUserName=
2. external.authentication.proxyHeader=X-Alfresco-Remote-User
3. external.authentication.userIdPattern=

Also uncommented the remote section in share-config-custom.xml file and also replaced the alfrescoCookie with alfrescoHeader in endpoint

<config evaluator="string-compare" condition="Remote">
      <remote>
         <keystore>
             <path>alfresco/web-extension/alfresco-system.p12</path>
             <type>pkcs12</type>
             <password>alfresco-system</password>
         </keystore>
        
         <connector>
            <id>alfrescoCookie</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
         </connector>
        
         <connector>
            <id>alfrescoHeader</id>
            <name>Alfresco Connector</name>
            <description>Connects to an Alfresco instance using header and cookie-based authentication</description>
            <class>org.alfresco.web.site.servlet.SlingshotAlfrescoConnector</class>
         
       <userHeader>X-Alfresco-Remote-User</userHeader>
         </connector>

         <endpoint>
            <id>alfresco</id>
            <name>Alfresco - user access</name>
            <description>Access to Alfresco Repository WebScripts that require user authentication</description>
            <connector-id>alfrescoHeader</connector-id>
            <endpoint-url>http://localhost:8080/alfresco/wcs</endpoint-url>
            <identity>user</identity>
            <external-auth>true</external-auth>
         </endpoint>
     
        
        
        
      </remote>
   </config>


and then restarted the alfresco server.

when i hit localhost:8080/share/page it redirects to http://localhost:8080/share/page?pt=login and in username and password by entering admin and admin it remains on the same page i.e login screen appears
In log file it shows authenticated admin with alfrescoNtlm succedded.

So please anyone here can help me what i am doing wrong in this? why my default authentication is not working?


Thanks
Nancy

Outcomes