The problem is that I am getting:

Microsoft VBScript runtime error '800a0046' 
Permission denied 
/admin/author-3.asp, line 54 

However I am logging into the web site through the Browser with NTLM Challenge and Response and Allow Anonymous turned off and it I execute this code:

Response.Write(Request.ServerVariables("AUTH_USER")

I get:

SMUM\wayne 

Which I assume means that the web server is impersonating my account's security permissions when I am calling ADSI. However, I have security audits turned on and it appears (in the event viewer) that the user making the requests is ANONYMOUS. What am I doing wrong? Why isn't my request have the security permissions of the account I logged in as? Couple Other Notes:

1) I am running in Process.
2) My account does have permissions to create users.
3) I am on SP 4

">

asp tutorials, asp.net tutorials, sample code, and Microsoft news from 15Seconds
Data Access  |   Troubleshooting  |   Security  |   Performance  |   ADSI  |   Upload  |   Email  |   Control Building  |   Component Building  |   Forms  |   XML  |   Web Services  |   ASP.NET  |   .NET Features  |   .NET 2.0  |   App Development  |   App Architecture  |   IIS  |   Wireless
 
Pioneering Active Server
 Power Search





Active News
15 Seconds Weekly Newsletter
• Complete Coverage
• Site Updates
• Upcoming Features

More Free Newsletters
Reference
News
Articles
Code Samples
Components
Tools
FAQ
Feedback
Books
Links
DL Archives
Community
Messageboard
List Servers
Mailing List
WebHosts
Consultants
Tech Jobs
15 Seconds
Home
Site Map
Press
Legal
Privacy Policy
internet.commerce














internet.com
IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

HardwareCentral
Compare products, prices, and stores at Hardware Central!


PreviousNext

 

email this FAQ to a colleague

Q: I am trying to create a User on a Domain in ASP using ASDI. Here is the code:


Set oUser = oDomain.Create("user",strNewLogin)
If (IsObject(oUser)) Then
	oUser.SetInfo
End If
Set oUser=Nothing

The problem is that I am getting:

Microsoft VBScript runtime error '800a0046' 
Permission denied 
/admin/author-3.asp, line 54 

However I am logging into the web site through the Browser with NTLM Challenge and Response and Allow Anonymous turned off and it I execute this code:

Response.Write(Request.ServerVariables("AUTH_USER")

I get:

SMUM\wayne 

Which I assume means that the web server is impersonating my account's security permissions when I am calling ADSI. However, I have security audits turned on and it appears (in the event viewer) that the user making the requests is ANONYMOUS. What am I doing wrong? Why isn't my request have the security permissions of the account I logged in as? Couple Other Notes:

1) I am running in Process.
2) My account does have permissions to create users.
3) I am on SP 4

A: Try setting the authentication to clear text, and disable ntlm. NTLM is actually working. The problem is that until Windows 2000 (NT5.0) releases with keberos technology included, you simply cannot impersonateacross servers. You can use NTLM if the servers you wish to impersonateacross reside on the same box. Clear text is the only way to impersonate across machines. In other words if the domain that you want to manipulate is not on the same box as the IIS they you have to use basic.

- Wayne Berry

Articles
Jul 30, 2002 - Accessing Active Directory Through the .NET Framework
In this article, Robert Chartier shows how to use the System.DirectoryServices Class for some simple User and Group administration tasks with impersonation.
[Read This Article]  [Top]

Books
ADSI ASP Programmer's Reference
Steven Hahn, Steve Hahn

Knowledge Base Articles
HOWTO: Speed Up ADSI Group & Dist. List Members...
Q192950 - 1998.10.08


Support the Active Server Industry

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers