Re: Active Directory and asp.net....
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 05/27/03
- Next message: Jim: "Re: Active Directory and asp.net...."
- Previous message: Jim: "Active Directory and asp.net...."
- In reply to: Jim: "Active Directory and asp.net...."
- Next in thread: Jim: "Re: Active Directory and asp.net...."
- Reply: Jim: "Re: Active Directory and asp.net...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
>
- Next message: Jim: "Re: Active Directory and asp.net...."
- Previous message: Jim: "Active Directory and asp.net...."
- In reply to: Jim: "Active Directory and asp.net...."
- Next in thread: Jim: "Re: Active Directory and asp.net...."
- Reply: Jim: "Re: Active Directory and asp.net...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|