DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Secure login using Windows Integrated Security

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    60

    Secure login using Windows Integrated Security

    Does anyone have an example of how to accomplish a secure login using Windows Integrated Security in VB.Net? I'm a newbie to Vb.Net and the .Net Framework. Thanks in advance for any help/assistance.

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Is this a Windows Forms (desktop) or ASP.NET (Web) app?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Jan 2004
    Posts
    60
    Phil,

    This is a Windows form application. Also, on a related topic. How does one go about determining what NT/2000 Security Role/Group that a user is a member of?

    Greg

  4. #4
    Join Date
    Dec 2003
    Posts
    2,750
    Once you're logged on to the network from Windows, you're already authenticated. Do you simply want to check the user's roles (group membership) at this point?

    Also, is this an Active Directory domain?
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

  5. #5
    Join Date
    Jan 2004
    Posts
    60
    Paul,

    Understood about the already being logged on -- I want to be able to check their group membership and perhaps, later in the application check which user is looged on to the application. This is not an AD domain; but, if they choose to move to AD is it sgnificantly different to accomplish this task?

    Greg

  6. #6
    Join Date
    Dec 2003
    Posts
    2,750
    Doesn't matter whether you have an AD domain but I was just asking since there are different ways to implement role based security.

    I would take a look at the System.Security.Principal namespace, specifically the WindowsPrincipal class. There is a method you can call named IsInRole that will indicate whether the authenticated user belongs to a specific group.
    Paul
    ~~~~
    Microsoft MVP (Visual Basic)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center