Skip to main content
April 5, 2012
Question

Fail to use LDAP

  • April 5, 2012
  • 1 reply
  • 1225 views

Hi,

I would like to use LDAP for login validation. Therefore, the coding is:

<cfldap

       ACTION="QUERY"

       SERVER="LDAP://int.abc.com"

       PORT="389"

       START="OU=Users,DC=int,DC=abc,DC=com"

       USERNAME="ABC\\#arguments.userid#"

       PASSWORD="#arguments.passwd#"

       NAME="checkPassword"

       filter="SAMAccountName=#arguments.userid#"

       ATTRIBUTES="*"

       SCOPE="SubTree"

       MAXROWS="1">

However, it shows me the following error message:

DetailOne or more of the required attributes may be missing or incorrect or you do not have permissions to execute this operation on the server. 
MessageAn error has occured while trying to execute query :Invalid name: /int.abc.com:389. 
Operationquery :Invalid name: /int.abc.com:389

How can I solve the problem?

This topic has been closed for replies.

1 reply

Inspiring
May 16, 2012

the error message tells you the server name is incorrect. try instead (make sure is a valid dns name)

SERVER="int.abc.com"