Ask a Question related to ASP, Design and Development.
-
Mike Zehner #1
ASP, ADSI and IIS 6.0 Problem
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
Mike Zehner Guest
-
IIS ADSI virtual dir creation problem from web application
I am trying to create a virtual directory using ADSI, with the following C# code: string Server = <srv>; string ApplicationName = <app>;... -
AD password / ADSI
Hi I run my perl scripts from unix (hp-ux) and I need to change users passwords to the Active Directory. Is this possible from unix. I am found... -
ADSI with PHP
Hi everyone, I'm pretty new to using the COM functionality in PHP. I want to administer my PC using PHP together with ADSI. My first problem is... -
ADSI
Hi, I have found some code that authenticates users agains a domain using ADSI. I then redirect to another page and pass the username they have... -
ADSI question
Hello, I use the following ASP code to access Active Directory's property: Dim objUser Set objUser = GetObject("WinNT://myDomain/UserId") I... -
Mike Zehner #2
Re: ASP, ADSI and IIS 6.0 Problem
The last line I was refering to should read:
objCommand.CommandText
="<GC://dc=mydomain,dc=com>;(&(objectCategory=person)(obje ctClass=user)(samA
ccountName=" & strLoginTemp & "));samAccountName;subtree"
This was a typo on my part, sorry about that.
Mike
"Mike Zehner" <mzehner@hotmail.com> wrote in message
news:#hIgkdtdDHA.2560@TK2MSFTNGP10.phx.gbl...of> 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 couplethe> years now.
>
> I have been trying unsucessfully for now for some time now trying to getscript> same ASP script to work on Windows 2003 with IS 6.0.
>
> I am using Windows Integrated Authentication and I am accessing this"<GC://dc=mydomain,dc=com>;(&(objectCategory=person)(obje ctClass=user)(samAc> 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 =
>> countName=" & strLoginTemp & "));samAccountName;subtree"
>
>
> Any advice or examples of how to do this would be greatly appreciated.
>
> TIA
>
> Mike
>
>
Mike Zehner Guest



Reply With Quote

