Re: How to authenticate user with domain server
From: digital-fallout (no.spam@here.com)
Date: 03/30/03
- Previous message: Linus Martinsson: "Reflection"
- In reply to: Marvin: "How to authenticate user with domain server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: digital-fallout <no.spam@here.com> Date: Sun, 30 Mar 2003 13:11:19 +0200
Marvin wrote:
> Hi.....
>
> I have a domain server that is sitting in, say Machine X. And my app is in
> another machine, say Machine Y.
> Upon providing a username and password and domain, my C#.net app in
> Machine Y is supposed to check with my domain server whether this user is
> a valid account holder in the domain. My app is a independent app that
> will connect to the domain server either thru the intranet or internet.
>
> Any guidelines/ help/ sample codes/ url will be greatly appreciated, cos I
> have been stuck at this problem for 2 weeks already.
>
> Marvin
don't understand realy
when u login to the domain all your app's running under that user context.
if u make runAs it runs under an diffrent user context.
u can impersonate from code through the winApi , something like logonUser
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/logonuser.asp
or Impersonate from the .net framework in code
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemSecurityPrincipalWindowsIdentityClassImpersonateTopic.asp
this all runs in intranet. if you're out of the intranet , you'll have to
open your DC to the whole wide world, which wouden't be that clever.
ps:intranet means single domain , if u have 2 domains u must have trusts
between the 2 domains or forests (whatever).
-- .::[ carbon unit 64 69 67 69 74 61 6c 2d 66 61 6c 6c 6f 75 74 ]::.
- Previous message: Linus Martinsson: "Reflection"
- In reply to: Marvin: "How to authenticate user with domain server"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|