Still the same the cfldap query below is not returning any results ? Any idea on what I could be ?
<!--- Form page snippet ---> <cfform method="POST" action="cfldap1.cfm" name="form"> <cfinput type="text" name="givenName" size=22 ><br> <input type="image" src="search.gif" border="0" style="cursor:hand" width="49" height="18"> </cfform> <!--- Form action page snippet ---> <cfldap action="query" name="adresult" attributes = "sn" start="cn=users,dc=neath-porttalbot,dc=gov.uk" scope="subtree" filter="(&(objectclass=user)(givenName=#form.givenName#))" server="domaincontroller.neath-porttalbot.gov.uk" port="389" username="username" password="password" > </head> <body> <CFIF adresult.RecordCount is 0> No Results ? <cfelse> <cfoutput query="adresult"> Name : #givenName# <br> <br> <hr> <br> </cfoutput> </cfif> -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: 26 January 2006 17:27 To: CF-Talk Subject: RE: Coldfusion and Active Directory Change "name" to "givenName" in your LDAP filter. In AD, "name" refers to the unique identifier, for an object, such as "sAMAccountName". M!ke - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230722 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54