cancel
Showing results for 
Search instead for 
Did you mean: 

Login Page

sbeltrami
Champ in-the-making
Champ in-the-making
When we explore http://hostname:8080/alfresco the default page is "MY Alfresco Dashboard".
We want, like default page, logon page. What are the operations ?

Thanks
1 REPLY 1

wabson
Star Contributor
Star Contributor
Hi,

The reason why the dashboard is being shown is because you are being automatically logged on as the guest user. To force the login screen to be displayed, you can disable the guest user by creating a new file in your tomcat/shared/classes/afresco/extension directory called authentication-services-context.xml with the following content:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
    <bean id="authenticationComponent" class="org.alfresco.repo.security.authentication.AuthenticationComponentImpl">
        <property name="authenticationDao">
            <ref bean="authenticationDao" />
        </property>
        <property name="authenticationManager">
            <ref bean="authenticationManager" />
        </property>
        <property name="personService">
            <ref bean="personService" />
        </property>
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="transactionService">
            <ref bean="transactionService" />
        </property>
        <property name="allowGuestLogin">
            <value>false</value>
        </property>
    </bean>
</beans>

If you are using a older version of Alfresco and you get errors then you may need to remove the personService, nodeService and transactionService parts but these are needed with the latest version.

Thanks,
Will.