Re: How to authenticate user with domain server

From: digital-fallout (no.spam@here.com)
Date: 03/30/03

  • Next message: Paul G: "forms auth/web.config file location"
    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 ]::.
    

  • Next message: Paul G: "forms auth/web.config file location"

    Relevant Pages

    • How to authenticate user with domain server
      ... I have a domain server that is sitting in, ... Upon providing a username and password and domain, my C#.net app in Machine ...
      (microsoft.public.dotnet.security)
    • Windows domain a/c not working ,asp.net ,pls help
      ... I have a web application runs under windows authentication works well ... I want my app should allow the domain users to access .I mean the domain ... I want to access my app from the domain server using windows ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: how can you use mshtml DOM object to grab rendered asp.net page?
      ... my problem is that right off the bat I run into security ... the inability to use IIS on my laptop to run an ... I'm in an intranet. ... I can create this app ...
      (microsoft.public.dotnet.framework.aspnet)
    • How to get logged in user from another app?
      ... For Intranet, If you use windows authentication and deny ... Authentication to the Intranet app is forms ... >I can get the Intranet use sql server as a state server ...
      (microsoft.public.dotnet.framework.aspnet)
    • How to get logged in user from another app?
      ... I have an Intranet asp.net application that opens multiple frames in its ... Authentication to the Intranet app is forms based. ... I can get the Intranet use sql server as a state server and it can save the ...
      (microsoft.public.dotnet.framework.aspnet)