Skip to main content
Participant
June 25, 2010
Question

Connection to LDAP server failed

  • June 25, 2010
  • 1 reply
  • 924 views

I'm using CFLDAP to update 1308 groups inside of Active Directory.  First I query a SQL database to pull back 4412 records.  I do a query of that query to select distinct rows.  This gives me the 1308 rows mentioned earlier.  I then use CFLOOP to loop over the 1308 rows to populate groups inside of Active Directory.  I keep getting "Connection to LDAP server failed" when I do this.  Is there a limit to the number of records you can use for CFLDAP before it looses it's connection?  Is there a way to get pass this?

    This topic has been closed for replies.

    1 reply

    tclaremont
    Inspiring
    June 25, 2010

    Does the username used to start the ColdFusion service have permission to update the AD Database?

    Are you explicity including a username and password in your CFLDAP query statement?

    kcarm8Author
    Participant
    June 29, 2010

    Does the username used to start the ColdFusion service have permission to update the AD Database?  Yes.

    Are you explicity including a username and password in your CFLDAP query statement?  Yes.

    The problem usually occurs when I'm updating about 600 or more records.  If I'm updating less than that, I have no problems.