Obtaining Windows Username

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Obtaining Windows Username


    Hey all,
    Once again, I find myself requiring your expertise, so I'll say Thank
    in advance. I was going to try using Kerberos (thanks for the inf
    Ken), but unfortunately after speaking with our network admin, it isn'
    an option. So I'm going to use Windows Authentication in the web.confi
    file for all forms in the web site. This will force the user to log on
    but I need a way to retrieve the user login info. Is there any way t
    do that thru the user session or any other way?
    Thanks,
    Joh


    -
    lajua
    -----------------------------------------------------------------------
    Posted via [url]http://www.codecomments.co[/url]
    -----------------------------------------------------------------------

    lajuan Guest

  2. Similar Questions and Discussions

    1. windows username
      Hi! I'm a real beginner. Sorry if I ask some stuõid questions :-) My problem is: I have more users on my computer. The system is windows 2000/...
    2. Getting windows username
      I am developing an intranet and was wondering, when a user logs on is there a way to get the username of the windows account in asp.net. I have...
    3. Antwort: windows username
      Hi, try to read what "perldoc -f stat" tells you! As being myself a beginner, I haven't tried it yet, just read about it. HTH! Best regards...
    4. retrieve windows username in php
      Hi, I am new to php. Is it possible to find out the windows user name in php ? Logon in windows domain with 'user1'. I want to get the username...
    5. Obtaining network username when impersonate is set to false
      I found the answer: System.Web.HttpContext.Current.User.Identity.Name.ToString(); jeremy_deats@hotmail.com (Ramzey) wrote in message...
  3. #2

    Default Re: Obtaining Windows Username

    Use System.Threading.Thread.CurrentPrincipal.Identity. Name

    This works only if user is authentcated...
    To force user authenticate just set following values in web.config

    <authentication mode="Windows" />

    and

    <authorization>
    <deny users="?" />
    <allow users="*" />
    </authorization>

    --

    Thanks,
    Yunus Emre ALPÖZEN
    BSc, MCAD.NET

    "lajuan" <lajuan.1p1huw@mail.codecomments.com> wrote in message
    news:lajuan.1p1huw@mail.codecomments.com...
    >
    > Hey all,
    > Once again, I find myself requiring your expertise, so I'll say Thanks
    > in advance. I was going to try using Kerberos (thanks for the info
    > Ken), but unfortunately after speaking with our network admin, it isn't
    > an option. So I'm going to use Windows Authentication in the web.config
    > file for all forms in the web site. This will force the user to log on,
    > but I need a way to retrieve the user login info. Is there any way to
    > do that thru the user session or any other way?
    > Thanks,
    > John
    >
    >
    >
    > --
    > lajuan
    > ------------------------------------------------------------------------
    > Posted via [url]http://www.codecomments.com[/url]
    > ------------------------------------------------------------------------
    >

    Yunus Emre ALPÖZEN [MCAD.NET] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139