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

  1. #1

    Default Can't get logonuser



    I would like to get user logon from server by
    USERLog = Request.ServerVariables("LOGON_USER")
    but it isn't see. i don't know what the problem and how i can
    solve in this. But i try to get other value can see it.

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Little Little Guest

  2. Similar Questions and Discussions

    1. LogonUser from ASP.NET
      Hello everybody, this is rather complicated, but intriguing problem that I have been having. What I want to do is: after user connects to my...
    2. problem with impersonation using LogonUser
      Hello All This is what I am tring to do: I have some folders shared for specific users on network. Now from my web appl I have to access them....
    3. Framework v1.1 & LogonUser workaround
      Greetings I am working on a project that can be configured to use Windows or Forms authentication. Occasionally the process may need to impersonate...
    4. LogonUser API Help
      Hello, I am trying to authenticate a windows user using LogonUser API on our website. I am able to authenticate and impersonate the user just...
    5. Impersonation in ASPNET and LogonUser
      Have you taken a look at the asp.net security best practices paper? It discusses some of the pitfalls and issues when using impersonation....
  3. #2

    Default Re: Can't get logonuser

    For this to work.. you need to use Windows Authentication or Basic
    authentication and turn off anonymous acess in IIS.

    --
    Naveen K Kohli
    [url]http://www.netomatix.com[/url]
    "Little Little" <leksawat@hotmail.com> wrote in message
    news:O0TyST8WDHA.2256@TK2MSFTNGP10.phx.gbl...
    >
    >
    > I would like to get user logon from server by
    > USERLog = Request.ServerVariables("LOGON_USER")
    > but it isn't see. i don't know what the problem and how i can
    > solve in this. But i try to get other value can see it.
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Naveen K Kohli Guest

  4. #3

    Default Can't get logonuser

    After looking again, I think the WindowsIdentity gets the
    <domain>\<username> instead of what I say below.

    >-----Original Message-----
    >I'm pretty new at ASP.Net, but even when I had Anonymous
    >off and Integrated Windows Authentication on,
    >ServerVariables("LOGON_USER") is still empty. Here's
    what
    >I did to get the logged on user.
    >
    >Dim thisUser As System.Security.Principal.WindowsIdentity
    >
    >Dim UserLog As String
    >
    >UserLog = thisUser.GetCurrent.Name.ToString
    >
    >UserLog will contain the <machineName>/<logged on user>,
    >such as ntsrvr1/ASPNET, if you're running in debug.
    Parse
    >out "ASPNET" for the logged on user.
    >
    >
    >>-----Original Message-----
    >>
    >>
    >>I would like to get user logon from server by
    >> USERLog = Request.ServerVariables("LOGON_USER")
    >>but it isn't see. i don't know what the problem
    and
    >how i can
    >>solve in this. But i try to get other value can see
    it.
    >>
    >>*** Sent via Developersdex [url]http://www.developersdex.com[/url]
    >***
    >>Don't just participate in USENET...get rewarded for it!
    >>.
    >>
    >.
    >
    Dave Clark 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