<cfldap server="my.ldap.server" PORT="389" action="query" name="GetEmployee" 
start = "cn=users,dc=directory,dc=school,dc=org" 
attributes = "cn,sn,uid,givenName,mail,position,telephonenumber,memberUid"
username="cn=username" password="pass">

When I run my code, I get an error. First is the code correct or do I not have the correct permissions.

Authentication failed:[LDAP: error code 49 - Invalid Credentials]

Code is correct. It looks like a credentials issue. Are you sure you have the correct rights to where you're trying to login into? I would try another to connect via another client and see if it works with those privileges.

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.