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?