I have some legacy code that I am trying to upgrade to the Spring LDAP template. Everything seems to be working well enough in terms of user management but I am wondering what is the best approach for authenticating users?
I am not using ageci, nor am I loading the LdapTempate from with a spring context loader. Right now when the class is established I load up the LdapTemplate with all of my configuration parameters.
In the old code I would connect to the LDAP server as the username and password (rather than the connection username/password) supplied by the user and then try to load the user. If the connect and load are successful this is considered a successful authentication.
Is the best approach to create a new LdapTemplate object and use the supplied username/password?


Reply With Quote