Announcement Announcement Module
Collapse
No announcement yet.
Custom Ldapauthenticationprovider spring security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom Ldapauthenticationprovider spring security

    We are working on a SaaS application which should be capable of authenticating users against each client's LDAP server. So instead of hard-coding the ldap credentials in security xml, I should be able to dynamically obtain ldap credentials like url, dc etc from database and hit the ldap server with them. For this I need to customize Ldapautheticationprovider or BindAuthenticator. I tried writing my own BindAuthenticator, but I was unsuccessful because the contextSource is being taken as constructor argument and I cannot do anything (to get ldap url from DB) before invoking the super(contextSource).

    Any tutorials, links, or guidance on how to customize Ldapauthenticationprovider or BindAuthenticator will be appreciated. Thank you very much in advance.
Working...
X