Hi I am trying to create an Employee Directory searching against the information stored in Active Directory. I would like to be able to search against the following information stored in the AD. First Name Last Name Telephone Number E-Mail Address Department What would I need to add to my code below to get this working ? This is my search form <cfform method="POST" action="adsearch.cfm" name="search"> <cfinput type="text" name="firstname" size=22 ><br> <cfinput type="text" name="lastname" size=22 ><br> <cfinput type="text" name="telephonenumber" size=22 ><br> <cfinput type="text" name="email" size=22 ><br> <cfinput type="text" name="address" size=22 ><br> <cfinput type="text" name="department" size=22 ><br> <input type="image" src="search.gif <http://intranet.neath-porttalbot.gov.uk/images/intranethomepage/search. gif> " border="0" style="cursor:hand" width="49" height="18"> </cfform> My adsearch.cfm page <cfldap action="query" name="adresult" attributes="firstname,lastname,telephonenumber,email,address,department" start="cn=users,dc=neath-porttalbot,dc=gov.uk" filter="(&(objectclass=user)" server="nptgcs.neath-porttalbot.gov.uk" >
<cfoutput query="query"> #firstname# #lastname# <br> #Telephonenumber# #email# <br> #address# #department' <br> <br> <hr> <br> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230474 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54