Results 1 to 2 of 2

Thread: Using LdapTemplate for checking an authentication

  1. #1
    Join Date
    Dec 2006
    Posts
    10

    Default Using LdapTemplate for checking an authentication

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    This has been discussed previously on the forum. Have a look at this thread.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •