
November 24th, 2003, 07:36 PM
|
|
Contributing User
|
|
Join Date: Sep 2003
Posts: 117
Time spent in forums: 1 Day 13 h 12 m 26 sec
Reputation Power: 6
|
|
|
Creating Active Directory user from ASP page
I am able to create a user in AD with the following script from an ASP page, with Anonymous user disabled in IIS, logged on to the server as an administrator.
============================================
Set objOU = GetObject("LDAP://OU=testing,DC=test,DC=com")
Set objUser = objOU.Create("user", "cn=" & sUsername )
objuser.put "samAccountName", sLogon
============================================
My question is:
How to run the asp page that has the code above located in a different machine?
When I post the page located in a different machine, I get "HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services" error.
When I run it from my machine It works fine.
What might be the problem?
Thanks for any help.
Last edited by spin2k : November 26th, 2003 at 07:17 PM.
|