0 Replies Latest reply on Mar 25, 2008 10:34 AM by Nick201

    ldap

    Nick201 Level 1
      I have created a function. How do i pass error param in this ldap. if my ldap return 0 record that means userid or password invalid. so when i call this function it will return error =0 or 1 and also employeeNumber,firstname,lastname,sn,cn,mail,uid,userPassword

      <cfcomponent displayname="Login" hint="login ">
      <cffunction name="logchk" access="remote" output="0" returntype="query" hint="user">
      <cfldap name="getusers"
      username="cn=Manager,dc=test,dc=test" password="test"
      server="test" action="query" port="389"
      attributes="employeeNumber,firstname,lastname,sn,cn,mail,uid,userPassword"
      start="dc=test,dc=test" filter="employeeNumber=4444">
      <cfreturn getUser />
      </cffunction>
      </cfcomponent>