<cfldap action="query" name="qryLDAPUser" start="dc=domain,dc=com" attributes="uid,cn,sn,ou,o,c,dn"
filter="(uid=#arguments.email#)"
server = "my LDAP server address" password="server password"
username="username">
<cfif qryLDAPUser.recordcount>
<cfldap
server = "my LDAP server address"
action="delete"
dn="(dn=#qryLDAPUser.dn#)"
username="username"
password="server password">
When I run this coldfusion code to delete LDAP user, I get LDAP Error 34. I am not sure what is wrong with the DN, please help me. Thanks for any help you provide.
filter="(uid=#arguments.email#)"
server = "my LDAP server address" password="server password"
username="username">
<cfif qryLDAPUser.recordcount>
<cfldap
server = "my LDAP server address"
action="delete"
dn="(dn=#qryLDAPUser.dn#)"
username="username"
password="server password">
When I run this coldfusion code to delete LDAP user, I get LDAP Error 34. I am not sure what is wrong with the DN, please help me. Thanks for any help you provide.