I am trying to access a NetMail server through LDAP port with <cfldap>
I keep getting an error
Diagnostics: An error has occured while trying to execute query :[LDAP: error code 32 - NDS error:
no such entry (-601)]. One or more of the required attributes may be missing/incorrect or you do not
have permissions to execute this operation on the server

The line it always refers to it the line with the server= I have the correct IP address.
I know because I checked with our network admin and I was given an LDAP search tool. It can get the information and retrieve it. I have tried: SERVER="netmail.ourdomain.edu"
I have tried with and without filter. FILTER="cn=#session.acctname#"

<CFLDAP NAME="GetStuff" 
        ACTION="Query" 
        SERVER="0.0.0.0"
       Port="389"
      ATTRIBUTES="dn,cn,sn"  
     SCOPE="SUBTREE"  
    START="o=NMTREE">

Update I finally got the code to return everything but need to narrow down to one account.
Anyone know how?
<CFLDAP ACTION="Query"
NAME="GetS"
SERVER="#session.server#"
Port="389"
ATTRIBUTES="dn,cn,sn"
start="o=NMTREE"
SCOPE="SUBTREE"
FILTER="objectClass=*">

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.