1 Reply Latest reply on Apr 8, 2008 1:24 AM by ravigehlot

    LDAP and CF8

    ravigehlot
      Hi everyone,

      I have been unsuccessful in getting CFLDAP to query a LDAP from Site Server. I did get it to work in ASP. Could it be that ASP has a better way of connecting to the datasource?

      Ravi.
        • 1. Re: LDAP and CF8
          ravigehlot Level 1
          Here is the code:

          <cfoutput>
          <cftry>
          Passing Values to the CFLDAP...<br><br>
          <cfflush interval="10" />
          Trying to connect...
          <cfflush interval="10" />

          <cfldap action="query"
          server="127.0.0.1"
          username="cn=Administrator,ou=Members,o=CompuSport"
          password="CompuSport"
          port="1003"
          scope="onelevel"
          name="Results"
          start="ou=Members,o=CompuSport"
          filter="(objectclass=*)"
          attributes = "cn" />
          <cfcatch type="any">
          Compiling Message Errors:
          <cfflush interval="10" />
          <br><br>
          Error Message:#cfcatch.message#
          <br><br>
          Error Detail:#cfcatch.detail#
          <br><br>
          Error Type:#cfcatch.type#
          <br><br>
          Extended Info: #cfcatch.ExtendedInfo#
          <cfrethrow />
          </cfcatch>
          </cftry>
          </cfoutput>

          quote:

          Originally posted by: ravigehlot
          Hi everyone,

          I have been unsuccessful in getting CFLDAP to query a LDAP from Site Server. I did get it to work in ASP. Could it be that ASP has a better way of connecting to the datasource?

          Ravi.