• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring LDAP active directory + search in LDAP

 
Luis Parente
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Luis Parente
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, thanks for your response

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


Best regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic