dlongnecker
MIS
After developing for quite some time on IIS 5.1 (Windows XP)/MDAC 2.8, I started moving my webs over to a Windows 2000 Advanced Server/MDAC 2.8; however, those pages that queried Active Directory gave me the evil '80004005' error (Unknown error). I've moved a few to a 2003 Server and they work just fine.
Is there something special that needs to be setup in IIS 5.0 to allow AD queries?
Relevant Code Below:
Side Notes:
1. Using windows authentication on both boxes; anonymous is disabled.
2. Verified MDAC 2.8 on Windows 2000 machine and, from what I've found on the web, that provided I specified should work. (
Any input would be greatly appreciated!
-David
---
David R. Longnecker
Web Developer
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259
Is there something special that needs to be setup in IIS 5.0 to allow AD queries?
Relevant Code Below:
Code:
<!-- insert file="adovbs.inc" -->
<%
Set ADConnect = Server.CreateObject("ADODB.Connection")
ADCS = "Provider=ADSDSOObject"
ADConnect.Open ADCS
username = request.ServerVariables("LOGON_USER")
username = Mid(username, (InStr(username, "\")+1))
ADQuery = ""
ADQuery = "SELECT displayname, title, department, manager, mail, telephoneNumber, homeDrive, [URL unfurl="true"]wwwhomepage[/URL] from 'LDAP://DC=domain, dc=suffix' where sAMAccountName = '" & username & "'"
Set RS = ADConnect.Execute(ADQuery)
...
Side Notes:
1. Using windows authentication on both boxes; anonymous is disabled.
2. Verified MDAC 2.8 on Windows 2000 machine and, from what I've found on the web, that provided I specified should work. (
Any input would be greatly appreciated!
-David
---
David R. Longnecker
Web Developer
CCNA, MCSA, Network+, A+
Management Information Services
Wichita Public Schools, USD 259