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

Discussion in 'ASP .Net Security' started by Steve, Aug 10, 2004.

  1. Steve

    Steve Guest

    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, Aug 10, 2004
    #1
    1. Advertising

  2. 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" <> wrote in message
    news:...
    > 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\), Aug 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Infant Newbie
    Replies:
    2
    Views:
    3,254
    Infant Newbie
    Nov 12, 2003
  2. =?Utf-8?B?U3RldmU=?=

    how to obtain login ID and domain name in c#.asp?

    =?Utf-8?B?U3RldmU=?=, Aug 11, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    753
    =?Utf-8?B?U3RldmU=?=
    Aug 11, 2004
  3. Sasquatch
    Replies:
    2
    Views:
    462
    Sasquatch
    Oct 4, 2006
  4. Jeff Kish
    Replies:
    4
    Views:
    855
    Martin Honnen
    Oct 30, 2008
  5. Obtain domain thet frame me!

    , Apr 6, 2005, in forum: Javascript
    Replies:
    4
    Views:
    97
Loading...

Share This Page