Hello All,

I want to start Pulse with non default credentials, i.e *no admin*.
Here are the steps that I have followed :

1. mkdir /tools/workspace/geode/pulse-config

2. export CLASSPATH=$CLASSPATH:/tools/workspace/geode/pulse-config

3. touch /tools/workspace/geode/pulse-config/pulse-authentication-custom.xml

Details of the pulse-authentication-custom.xml

<beans:beans xmlns="http://www.springframework.org/schema/security";
             xmlns:beans="http://www.springframework.org/schema/beans";
             xmlns:context="http://www.springframework.org/schema/context";
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
             xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
               http://www.springframework.org/schema/security

http://www.springframework.org/schema/security/spring-security-4.1.xsd
               http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-4.1.xsd";>

<authentication-manager>
    <authentication-provider>
        <user-service properties="classpath:pulse-users.properties">
        </user-service>
    </authentication-provider>
</authentication-manager>

</beans:beans>

4. touch /tools/workspace/geode/pulse-config/pulse-users.properties

Details of the pulse-users.properties

*amey*=*ameypassword*,ROLE_USER,enabled

gfsh>start locator --name=loc
--J=-Dspring.profiles.active=pulse.authentication.custom
--classpath=/tools/workspace/geode/pulse-config

gfsh>start pulse


With these settings I try to login to Pulse using *amey* as Username and
*ameypassword* as Password, I get below exception.

http://localhost:7070/pulse/Login.html?error=BAD_CREDS
Incorrect Username or password

Please let me know if anything is wrong in the procedure followed above, or
how to set non admin credentials when starting Pulse ?

Regards,
Amey

Reply via email to