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.CreateOb ject("ADODB.Con nection")
Set objRecordset = Server.CreateOb ject("ADODB.Rec ordset")
objConnection.O pen "Provider=ADsDS OObject;"
Set objCommand = CreateObject("A DODB.Command")
objCommand.Acti veConnection = objConnection
objCommand2.Com mandText =
"<GC://dc=mydomain,dc= com>;(&(objectC ategory=person) (objectClass=us er)(samAc
countName=" & strLoginTemp & "));samAccountN ame;subtree"
Any advice or examples of how to do this would be greatly appreciated.
TIA
Mike
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.CreateOb ject("ADODB.Con nection")
Set objRecordset = Server.CreateOb ject("ADODB.Rec ordset")
objConnection.O pen "Provider=ADsDS OObject;"
Set objCommand = CreateObject("A DODB.Command")
objCommand.Acti veConnection = objConnection
objCommand2.Com mandText =
"<GC://dc=mydomain,dc= com>;(&(objectC ategory=person) (objectClass=us er)(samAc
countName=" & strLoginTemp & "));samAccountN ame;subtree"
Any advice or examples of how to do this would be greatly appreciated.
TIA
Mike
Comment