Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > website

Thread Tools

Posts: n/a
I am trying to put asp page on our website that pulls information from
out Active Directory database. When someone goes to a certain page and
puts in a name, I want it to come up with all their info from ADS.
Plus we want it to have a picture displayed. Here is what have so far:

strDomainDN = "dc=precisionpractice, dc=com"

Set objCon = CreateObject("ADODB.Connection")
objCon.Provider = "ADsDSOObject;"
objCon.Open "Active Directory Provider"
Set objRS = objCon.Execute("<LDAP://" & strDomainDN & ">;" & _
"(&(objectCategory=Person)(objectClass=user)(mail= *));" & _
"givenname,sn,SamAccountName;subtree" )
Response.write "<td><B>" & objRS.Fields(1).Name & "</B></td>"
response.write "<td><B>" & objRS.Fields(2).Name & "</B></td></tr>"
While Not objRS.EOF
response.write "<tr><td>" & objRS.Fields(0).Value & "</td>"
response.write "<td>" & objRS.Fields(1).Value & "</td>"
response.write "<td>" & objRS.Fields(2).Value & "</td>"
'response.write "<td><A HREF=""mailto:" & objRS.Fields(2).Value &
'response.write objRS.Fields(2).Value & "</A></td></tr>"
Set objRS = Nothing
Set objCon = Nothing

But I am not sure how to tie this to a search field in ASP. I am new
to ASP, so any help would greatly appreciated.

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting up website inside a website sck10 ASP .Net 1 04-13-2006 09:18 PM
Website on a website. Shawn ASP .Net 3 01-15-2006 04:58 AM
deploying website or copying website? Flip ASP .Net 1 11-22-2005 06:25 PM
how to reinstall website when the name of the website changed. A Leon HTML 4 03-04-2004 07:44 AM
Update website via website? Adrian Wood HTML 13 02-25-2004 11:32 PM