Results 1 to 5 of 5

Thread: Is it Possible? Win Login?

  1. #1

    Thread Starter
    Addicted Member DigitalMyth's Avatar
    Join Date
    Nov 2002
    Location
    England..
    Posts
    169

    Is it Possible? Win Login?

    I am building up a intranet development web server at work. Each person has a folder label by their Windows Username. Is it possible to get an ASP.NET (Could be PHP) page to get there Windows Login Username. I have a feeling that the security settings in IIS may stop me but i'm going to ask anyway?

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Is it Possible? Win Login?

    Code:
    string username = HttpContext.Current.User.Identity.Name;

  3. #3

    Thread Starter
    Addicted Member DigitalMyth's Avatar
    Join Date
    Nov 2002
    Location
    England..
    Posts
    169

    Re: Is it Possible? Win Login?

    Nope, that doesn't send back anything. Just a NULL string....

  4. #4
    Frenzied Member TomGibbons's Avatar
    Join Date
    Feb 2002
    Location
    San Diego, CA Previous Location: UK
    Posts
    1,345

    Re: Is it Possible? Win Login?

    I believe you have to disable 'Allow Anonymous Access' on the server.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Is it Possible? Win Login?

    We've removed anonymous access, and that's what's used to get the windows logon id.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width