Announcement Announcement Module
Collapse
No announcement yet.
How to get Provider URL from DirContextOperations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get Provider URL from DirContextOperations

    I have a customized LdapUserDetailsMapper.

    Inside public UserDetails mapUserFromContext(DirContextOperations ctx, String username, Collection<GrantedAuthority> authorities) { ..}

    I want to find out which AD serer (URL) I am using. How do I get it? Thanks.

  • #2
    basically, how do i get contextSource from AuthenticationProvider?

    Comment


    • #3
      You can't. If you really want a reference to the ContextSource then you can inject it into your custom mapper bean.

      Comment

      Working...
      X