File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Spring LDAP active directory + search in LDAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring LDAP active directory + search in LDAP" Watch "Spring LDAP active directory + search in LDAP" New topic
Author

Spring LDAP active directory + search in LDAP

Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Hello,

I need to make a search in a active directory in java by username and password. Is it possible that in result I can see the ROLE for each group that user is member?
Because I need to make a mapping to my database where I have defined the roles of spring security.

I need some help, thanks!
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

Once again I have not used this personally, but in that tutorial I linked in your other thread it looks like you can create your own authorities mapper to map the AD authorities into the application’s user role. In his example he did not read them in from a database but I don't see any reason why you couldn't. I also found this which may or may not be helpful to you.

http://stackoverflow.com/questions/9228932/spring-security-3-active-directory-authentication-database-authorization/9235912#9235912


[How To Ask Questions][Read before you PM me]
Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Hello, thanks for your response

I will try it, and I say later if it's good.


Best regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring LDAP active directory + search in LDAP