Hi -
I wrote an ASP script that adds users to Active Directory. I have been
running this script sucessfully on Windows 2000 with IIS 5.0 for a couple of
years now.
I have been trying unsucessfully for now for some time now trying to get the
same ASP script to work on Windows 2003 with IS 6.0.
I am using Windows Integrated Authentication and I am accessing this script
with Enterprise Admin permissions.
All I get is a response that says: "HTTP 500 - Internal server error."
ASP is enabled on this server and I have several applications on here
working fine. This server was an upgrade from W2K w/IIS 5.0.
Below is where the script errors, specifically on the last line:
strLoginTemp = "AUser"
Set objConnection = Server.CreateObject("ADODB.Connection")
Set objRecordset = Server.CreateObject("ADODB.Recordset")
objConnection.Open "Provider=ADsDSOObject;"
Set objCommand = CreateObject("ADODB.Command")
objCommand.ActiveConnection = objConnection
objCommand2.CommandText =
"<GC://dc=mydomain,dc=com>;(&(objectCategory=person)(obje ctClass=user)(samAc
countName=" & strLoginTemp & "));samAccountName;subtree"
Any advice or examples of how to do this would be greatly appreciated.
TIA
Mike