how to obtain the login id and domain in c#.asp

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

  1. #1

    Default how to obtain the login id and domain in c#.asp

    I am using c#.asp to write an application in which I need to get the login id
    and domain of the user and verify his/her privileges to use such functions or
    actions. Can someone show me an example code? Thanks a lot.
    Steve Guest

  2. Similar Questions and Discussions

    1. Login using Domain Login ID
      I'd like to get the Domain login ID to use to log into Dreamweaver applications. I'd like to log the user into a Dreamweave application (based on...
    2. Windows cannot obtain the domain controller name (userenv, id = 1054)
      Hi. PDC w2k3 & wXPsp2. i have a problems: 1) Domain is not found with error 1054 by UserEnv in windows xp application log. DNS settings is...
    3. Login issues (two pc domain)
      Hello, Setup = two pcs, one windows 2003 server which is the domain server. 2nd pc is a windxp Pro pc. I changed the password on the account I...
    4. VERY Slow domain login - need help...
      I'm running Server 2003 and all clients log into the domain. Frequently (as in more often than not) it takes over three minutes for the login...
    5. XP Client login to W2K domain problems
      I have a W2K domain server and XP clients. I get an error message on some of the xp machines that there is no trust relationship with the server...
  3. #2

    Default Re: how to obtain the login id and domain in c#.asp

    How are you authenticating the user? If you are using Windows
    authentication in IIS, the user info will be available in the Context.User
    property. You can get the name and domain from the Identity.Name property
    and verify Windows group membership with the IsInRole method.

    Joe K.

    "Steve" <Steve@discussions.microsoft.com> wrote in message
    news:49DF3A5C-F815-4DBA-8D72-1C50EC13C5E6@microsoft.com...
    > I am using c#.asp to write an application in which I need to get the login
    id
    > and domain of the user and verify his/her privileges to use such functions
    or
    > actions. Can someone show me an example code? Thanks a lot.

    Joe Kaplan \(MVP - ADSI\) 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