0 Replies Latest reply on Aug 3, 2009 7:47 AM by snowflake75

    LDAP

    snowflake75

      First/ i must connect to do an authentication with ldap  with one specific account : Ok it works

      second/  i gather a login and a password from a form and try to check this information in the ldap.

       

      i get this error messageLDAP: error code 50 - Insufficient Access Rights

       

      My code :

       

      First :

      <cftry>

      <cfldap

       

      action="QUERY"

      name=

       

      "AuthenticateUser"

      attributes=

       

      "dn,userpassword"

      filter=

       

      "(&(uid=#form.userLogin#))"

      start=

       

      "c=fr"

      maxrows=

       

      "1"

      rebind=

       

      "yes"

      scope=

       

      "subtree"

      server=

       

      "devannusec2.edf.fr"

      username=

       

      "cn=cadence,ou=appli,o=edf,c=fr"

      password=

       

      "LYCCCZ4B">

      <cfset

       

      LoginMessage = "User Authentication Passed">

      <cfcatch

       

      type="any">

      <cfset

       

      LoginMessage = "User Authentication Failed">

      </cfcatch>

      </cftry>

       

      --- Ok i get the right DN it works ! I works

       

       

       

       

      <cftry>

      <cfldap

       

      action="QUERY"

      name=

       

      "AuthenticateUser2"

      attributes=

       

      "dn"

       

      start="c=fr"

       

       

      scope="subtree"

      server=

       

      "devannusec2.edf.fr"

      username=

       

      "#form.userLogin#

      start=

       

       

      "c=fr"

       

       

       

      "c=fr"

      "c=fr"

       

       

      password="form.userPwd"

      >

      --- i get this error message :

      An error has occured while trying to execute query :[LDAP: error code 50 - Insufficient Access Rights]

      Any ideas ?