Announcement Announcement Module
Collapse
No announcement yet.
Example of authentication via Web Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Example of authentication via Web

    Hello to everybody,

    I am newer with Spring-LDAP and I try to use this "plugin" to validate users via web, but don't know how I can develop a simple authentication via web. In addition, I must say that I have developed an example with spring and JNDI/LdapContext and it runs perfectly.

    If I use Spring-LDAP how can I sent user and password to validate?

    Thanks and best regards,
    Ivan

  • #2
    Spring LDAP doesn't include any authentication mechanism as such out of the box. Authentication and authorization is best handled using another Spring Framework sub project, Acegi Security.

    While it would certainly be possible to implement a simple authentication mechanism using Spring LDAP, generalizing this functionality and suplying it with the library seems quite out of scope of this project as it is all included in Acegi Security.

    Comment


    • #3
      How can I select user by LDAP query?
      For example, I want to use:
      Code:
      String password = "secret";
      ...
      template.search("ou=Users", "(&(uid=userid)(userPassword="+password+"))", searchHandler);
      and the password in LDAP server is "{CRYPT}password"

      Comment


      • #4
        If you're trying to do authentication using Spring LDAP you might want to have a look at this thread.

        Comment


        • #5
          Thanx, but I don't want to authentication user. I have connection to LDAP server with root account (so I've access to all users) and I just want to get user with login and password. With
          Code:
          String password = "secret";
          ...
          template.search("ou=Users", "(uid=userid)", searchHandler);
          it's OK, but I want to get user with uid and password. My problem is, how to set this password with userPassword attribute. In LDAp server this password is stored like "{CRYPT}password".
          Last edited by Nullpointer; Nov 7th, 2006, 01:55 AM.

          Comment

          Working...
          X