I did the call to Active Directory and have the code in VB:
>> What i would like to know is how to translate it into simple ASP so that i can pass two values to another page but i can handle that part of the code - just translation is all i need.
Code:
Dim ent As New System.DirectoryServices.DirectoryEntry("LDAP://dc=RYANBECK,dc=com")
Dim child As System.DirectoryServices.DirectoryEntry
Dim results As System.DirectoryServices.SearchResultCollection
Dim entsearch As New System.DirectoryServices.DirectorySearcher(ent)
Dim search As System.DirectoryServices.SearchResult
entsearch.Filter = ("SAMAccountName=" & p_cID)
'entsearch.Filter = ("cn=" & p_cID)
entsearch.SearchScope = SearchScope.Subtree
results = entsearch.FindAll
Dim ssn As String
Dim name As String
For Each search In results
'ssn = search.Properties("employeeid")(0)
name = search.Properties("Name")(0)
Next
Return name