• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Spring LDAP active directory + search in LDAP

 
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!
 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • 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
 
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic