LDAP IdentitySession

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2011 04:47 AM
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 executeScript - 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 endpoint: http://localhost:8080/activiti-rest/serviceorg.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?
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2011 03:17 PM
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
). 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.
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


Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2011 06:47 AM
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?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2011 05:08 AM
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
