I have a Sping roo applicaiton and I want to apply authentication through LDAP and authorization on (e.g. read only/ admin) screens through database tables User/UserRole. Can someone point me to a sample application ?

I have gone through documentation on http://docs.spring.io/spring-roo/reference/html/beginning.html for Securing the Application. However I am looking for ldap and database together.

Thanks Amber

有帮助吗?

解决方案

There's a tutorial with the LDAP piece here

For the Authorization piece, you can solve that by implementing a UserDetailService (the piece that looks up a users authorization in a database and assigns it, allowing you to put fences around pieces of your application), and adding it to your authentication provider

Here's another (probably better) example of LDAP authentication

其他提示

gvNIX includes the Typical Security addon that setups Spring Security and adds default security settings to your project. Then you only have to customize it using Spring Security docs and tutorial.

Take a look at http://code.google.com/p/gvnix/wiki/TypicalSecurity

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top