cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP IdentitySession

p4w3l
Champ in-the-making
Champ in-the-making
I have tested new LdapIdentitySession and it works in standalone application with own activiti.cfg.xml. Now I wish to plug it into Activiti web applications ( explorer, rest, probe, etc ). I tried to copy modified activiti.cfg.xml into activiti-5.3/setup/files/cfg.activiti/standalone and 2 new classes into activiti-5.3/apps/apache-tomcat-6.0.32/webapps/activiti-rest/WEB-INF/classes and restarted tomcat with your ant but it doesn't work. The catalina.out doesn't help much in diagnosis. Only:
ERROR [extensions.webscripts.AbstractRuntime] Exception from execu
teScript - redirecting to status template error: 02170000 Username and password
does not match.
org.springframework.extensions.webscripts.WebScriptException: 02170000 Username
and password does not match.
SEVERE: An exception occurred while attempting authentication handshake for endp
oint: http://localhost:8080/activiti-rest/service
org.springframework.extensions.surf.exception.AuthenticationException: 02170000 Username and password does not match.
Can you give me a hint how to plugin new LDAP authentication into DEMO? Is it possible? How to debug?
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
Hi,

When you replace the activiti.cfg.xml in the setup, you should make sure you run activiti.create and webapps.deploy (or some simmilar ant target, can't remember now Smiley Wink). Alternatively, you could just change the activti.cfg.xml in the activiti-cfg.jar in webapp-rest/WEB-INF/lib folder, this way you don't need the demo-setup anymore, you can just start/stop tomcat.

p4w3l
Champ in-the-making
Champ in-the-making
But where to copy my 2 new Ldap* classes so that all webapps uses them in authentication and users/groups management? How activiti maps one ldap group to activiti sysadmin?

frederikherema1
Star Contributor
Star Contributor
When you are using the demo setup and you want to add your custom classes, you should add a jar containing your classes to the activiti-rest webapp lib. Don't forget to include the dependencies of your custom classes (if any) as wel. This is the same location where the activiti-engine jar is located. You can find this folder inside your distro at ${activiti.home}/apps/apache-tomcat-6.0.29/webapps/activiti-rest/lib/

The libs should be present in rest-webapp