Question
LDAP search
I would like to search ldap for username. I assume LDAP is on
my Windows 2000 web server but not sure or how would I find out.
Here is my form:
<form action="#cgi.script_name#" method="POST">
<p>Enter a name to search.</p>
<input type="Text" name="name">
<input type="Submit" value="Search" name="">
</form>
I am not sure how to do the ldap part.
Is this the right direction?
<cfldap
server = "ldap.myservernamehere.com" <!--- Should I add ldap in the front of my server name? --->
action = "query"
name = "results"
start = "" <!--- Not sure what to put here? --->
filter= "sAMAccountName=#name#"
attributes = "username" >
Here is my form:
<form action="#cgi.script_name#" method="POST">
<p>Enter a name to search.</p>
<input type="Text" name="name">
<input type="Submit" value="Search" name="">
</form>
I am not sure how to do the ldap part.
Is this the right direction?
<cfldap
server = "ldap.myservernamehere.com" <!--- Should I add ldap in the front of my server name? --->
action = "query"
name = "results"
start = "" <!--- Not sure what to put here? --->
filter= "sAMAccountName=#name#"
attributes = "username" >
