Re: elevate rights within an application



Of course,

but this may not be an option - have seen this in several companies... sad, but true.

Best regards,
Henning Krause

"Dominick Baier" <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:51eb304845168c8f87fc6a3fe70@xxxxxxxxxxxxxxxxxxxxx
Maybe it would be more appropriate to set the right ACLs on the entries this account has to change than using clear text passwords on a client...
-----
Dominick Baier (http://www.leastprivilege.com)

Hello,

if the logged-on user running your application has the appropiate
permissions, your code should be able to do the job (if you use
integrated authentication for the directory stuff).

However, if the logged on user does not have the required permission,
you must get a username/password combination and impersonate that user
using Win32 LogonUser.

What type of application are you talking about? Web, Windows or
Windows Service?

Best regards,
Henning Krause
"@rturo" <rturo@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1205B3A6-57AA-41E4-868E-22F11C0A671D@xxxxxxxxxxxxxxxx

In my company there's the need to update personal information on AD
for
every
users, like phone numbers and addresses.
I struggle alot that only a user with domain admin privileges has the
access
to do those changes to AD.
How can I do in .net to elevate the user rights in an application to
run a
few lines of code.
Thanks




.



Relevant Pages

  • Re: Service Event not triggered
    ... "crus" wrote: ... This tool 'll catch events and show errors in calling missing functions. ... Regards ... I have developed a windows service that catches the Login, LogOff, Lock ...
    (microsoft.public.windowsxp.embedded)
  • Re: Windows service concept?
    ... Best regards, ... Windows service to have public properties/methods so that other assembly may ... just reference this service either at design time ...
    (microsoft.public.dotnet.framework)
  • Re: Windows Service Custom Methods
    ... a windows service and a UI application is to use some ... Beste Grüsse / Best regards / Votre bien devoue ... Latest Open-Source Projects: http://entwicklung.junetz.de ... I have created some public methods which returns string value and other objects of classes in the service. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: API to wait until an object is created properly??
    ... Beste Grüsse / Best regards / Votre bien devoue ... I have created lot of controls on a form ... windows service and i am getting expections like ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: .NET Runtime 2.0 Error - in the Application Event Log
    ... With best regards, Vadym Stetsiak. ... Blog: http://vadmyst.blogspot.com ... S> I am running a Windows Service application that does multithreaded ...
    (microsoft.public.dotnet.framework)