I have a form to search the Active Diretory shown below, searching the
account name, name, title, e-mail and telephone number attributes for an
Intranet Phone Directory
 
How can I modify the filter query of the CFLDAP statement to cater for
this ?
 
filter="(&(objectClass=user)(sAMAccountName=#Form.sAMAccountName#)(cn=#F
orm.cn#)(title=#Form.title#)(email=#Form.email#))"
 
I have tried using | instead of & but that just brings back all results
??
 
 
<cfform method="POST" action="cfldap1.cfm" name="form"> 
 
<cfinput type="text" name="sAMAccountName" size=22 ><br>
<cfinput type="text" name="cn" size=22 ><br>
<cfinput type="text" name="title" size=22 ><br>
<cfinput type="text" name="email" size=22 ><br>
<input type="image" src="search.gif" border="0" style="cursor:hand"
width="49" height="18"> 
</cfform>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230835
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

Reply via email to