Re: Active Directory and asp.net....

From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 05/27/03


Date: Tue, 27 May 2003 12:42:27 +0200


Impersonation works only on Windows authentication, so it has no affect on
Forms authentication. What you can do is, to use diferent acount for ASP
worker process (with admin rightd), but this is quite dangerous (running web
site under domain admin). Another aproach would be to use LogonUser Api, to
temporary switch application thread to another user.

Regards

Matjaz Ladava

"Jim" <ssss> wrote in message news:eRXyacDJDHA.700@TK2MSFTNGP10.phx.gbl...
> I have a web service that is doing user authentication and management,
> internally it is using active directory to store the user accounts, this
is
> accessed through the System.DirectoryServices namespace in C#. I use
> imperonsation to modify the user accounts, i.e. I impersonate a 'Domain
> Adminstrator' account and modify the user properties as required.
>
> When I test this from a desktop or console application it works perfectly
> fine, but when my web service is used from an asp.net application I am
> unable to modify user properties. The asp.net application is using forms
> authentication which uses this web service to authenticate, what do I have
> to modify in the asp.net application to get imperonsation working
correctly
> for my web service?
>
> Cheers
>
> Jim
>
>



Relevant Pages

  • RE: Form Security and WebService
    ... it has to do with the fact that you have a membership store in SQL ... that uses windows authentication). ... call the SharePoint web service to provision the user. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Problem When Calling Web Method Of Web Service From Pocket PC 2003.
    ... > NTLM Authentication is not supported in the CF. ... > Now that I have changed the Web site and Web Service to use Digest ... >> Alex Feinman ... a Desktop application and a Pocket PC 2003 application. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Active Directory authorization
    ... AD should be fine as a source for authentication for your web service. ... The easiest way to use AD for authentication is to just use the transport layer authentication schemes built in to IIS. ... For app level authorization, I'd suggest checking out Microsoft's Authorization Manager framework. ... every applications. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Problem When Calling Web Method Of Web Service From Pocket PC 2003.
    ... > The CF application will be able to support basic authentication only. ... >> When the Web site and Web Service application are set to allow Anonymous ... >> application and a Pocket PC 2003 application. ... >> Private Sub CallHelloWorld() ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Problem When Calling Web Method Of Web Service From Pocket PC 2003.
    ... The CF application will be able to support basic authentication only. ... > When the Web site and Web Service application are set to allow Anonymous ... > Imports System.Net ... > Private Sub CallHelloWorld() ...
    (microsoft.public.dotnet.framework.compactframework)