Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Windows Authentication IIS

Windows Authentication IIS

Scheduled Pinned Locked Moved Visual Basic
questionsysadminwindows-adminsecurity
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Harmonium
    wrote on last edited by
    #1

    Goal: I need to use Windows Groups to determine access to certain controls on an intranet web app. Specs: 1. I can only use Windows Authentication. 2. IIS6. What I have done so far: 1. I have an application already in use that uses Windows Authentication. 2. I added two new groups each with users to my local machine. 3. I added this code in the web.Config: 4. I have this code in the code-behind of my start page: Dim authUserName As String authUserName = User.Identity.Name.ToUpper.Trim Session("Username") = authUserName If Principal.WindowsIdentity.GetCurrent.IsAuthenticated Then Server.Transfer("main.aspx") End If Questions: 1. How can I determine the Group name of the user when they log in? 2. How can I set up my local machine to test my program?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups