WindowsIdentity in a WinXP Platform

Discussion in 'ASP .Net Security' started by Kishore Gopalan, Nov 15, 2005.

  1. I have the username of the format domain\username in a string. I need to get
    a WindowsIdentity for this user. WindowsIdentity(string) constructor is said
    to work only in Windows Server 2003 platform. I use WinXP for development. In
    XP platform, If I need to get a WindowsIdentity object when I have the
    username in a string, how can I accomplish that..

    Thanks

    Kishore
    Kishore Gopalan, Nov 15, 2005
    #1
    1. Advertising

  2. Hello Kishore,

    using the Win32 LogonUser API.
    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com

    > I have the username of the format domain\username in a string. I need
    > to get a WindowsIdentity for this user. WindowsIdentity(string)
    > constructor is said to work only in Windows Server 2003 platform. I
    > use WinXP for development. In XP platform, If I need to get a
    > WindowsIdentity object when I have the username in a string, how can I
    > accomplish that..
    >
    > Thanks
    >
    > Kishore
    >
    Dominick Baier [DevelopMentor], Nov 15, 2005
    #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. Elton  Sir Sanjiyan  Sanchez
    Replies:
    4
    Views:
    527
  2. The Doormouse

    XML to XHTML on WinXP platform

    The Doormouse, Apr 20, 2004, in forum: HTML
    Replies:
    4
    Views:
    435
    The Doormouse
    Apr 20, 2004
  3. jcc
    Replies:
    15
    Views:
    4,696
    Nigel Wade
    May 12, 2006
  4. Coca
    Replies:
    15
    Views:
    639
    Alan Balmer
    Jan 14, 2004
  5. Replies:
    2
    Views:
    309
    Chris Dollin
    May 24, 2007
Loading...

Share This Page