Unable to create new users using Directory services in Windows 200

G

Guest

I am unable to create new users using directory services in Windows 2003
server. But it is possible to create users with ASP.NET applications in
windows 2000.

I am getting "Permission Denied" and the "General access denied error "
error.

Can you please some code samples or solution for the problem.
 
D

David Jessee

the System.DirectoryServices namespace has what you need
the permission denied error comes in because the default WindowsPrincipal
that is used is machine\ASPNET. the ways around it are:

1) in your web.config, change to <identity impersonate="true"/> then the
user can make the changes assuming they have the permissions
2) in your web.config, change to <identity impersonate="true"
userName="domain\usr" password="pwd"/> then the specified account will be
used instead of the ASPNET account
3) go to the microsoft site and download aspnet_setreg so that you can put
the account information for the app in the registry.

I use #3 for everything. Every application that we create runs under a
seperate identity. Your network services group shouldn't have a problem
creating an Applitaion account for you, assuming that you can justify it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top