How to change user account properties by ASP.NET?

From: Evgeny Zoldin (zoldin_at_hotmail.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 22:13:10 +0100

Hi ALL.

I have the configuration:
    1. WinXP PRO with MS IIS 5.0 and installed ASP.NET
    2. ASP.NET application A configured to authenticate only users from
local Users group.

I would like to de the following:
    Logged on user is able through ASP.NET-Pages to change its own Logon
Username, Password and Full Name

I tried to implement it by the code (C#):

    DirectoryEntry deCurrUser = new DirectoryEntry("WinNT://" +
User.Identity.Name);
    deCurrUser.Invoke("SetPassword", new string[]{"123"} ); // ***

If the logged on user belongs only to Users group then the statement ***
causes Exception "SystemUnautherizedException: General access denied error".
But as soon as that user has been included into Administrators group the
statement *** is executed well.

I know about impersonation possibility, but it requires to type clear
Administrators username and password in code-behind class that will be
published on target server.

So, what should I do in order to give to user the ability to change its
username, password and full name?
May be orginize on the target server a group, add the users into the group
and gain to this group some specils rights?

Thanx
Evgeny



Relevant Pages

  • How to change user account properties by ASP.NET?
    ... I have the configuration: ... Username, Password and Full Name ... But as soon as that user has been included into Administrators group the ... May be orginize on the target server a group, add the users into the group ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • How to change user account properties by ASP.NET?
    ... I have the configuration: ... Username, Password and Full Name ... But as soon as that user has been included into Administrators group the ... May be orginize on the target server a group, add the users into the group ...
    (microsoft.public.de.inetserver.iis.asp)
  • Re: WSE 3.O Web Service with ASP.Net Client using VB.Net
    ... <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"</a>;> ... ''' Constructs an instance of this security token manager. ... Dim principal As GenericPrincipal = New ... There is a logon page which takes a Username and Password, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • RE: Routing mail to a SMTP server
    ... I am unsure of where the username & password are configured correctly - BT ... >> Unfortunetly they cant give us configuration details on how to configure ... >> I went into system manager and changed the properties of the Virtual SMTP ... >> What is the correct config for the exchange server (2003 small buisness ...
    (microsoft.public.exchange.admin)
  • Re: No .Net Performance counters visible using perfmon
    ... I didn`t make any additional rights configuration. ... By local admin I mean that I am a memeber of administrators group on local ... NET counters were not successfully registered, ... >> As a local admin I can see all object/counters including .NET and ASP.NET ...
    (microsoft.public.dotnet.framework.performance)