Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Authentication - Domain Groups

    I know about getting the currently logged on user information(Request.ServerVariables("LOGON_USER")), but can you get Domain\Group information as well?

    Basically I'm wanting to allow an update to happen if the user belongs to a specific group and I want to do this in one page if possible.

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is what I use:

    If InStr(Request.ServerVariables("HTTP_IV_GROUPS"),"NameofGroup") <> 0 Then
    in the group
    Else
    not in the group
    End if

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What browser or server are you using that you are returning HTTP_IV_GROUPS? When I enumerate through Request.ServerVariables this isn't returned?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Cincinnati, OH
    Posts
    545
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sorry about that, I didnt realize it was not a part of the Request.ServerVariables collection. We use something called WebSEAL that sticks the HTTP_IV_GROUPS into the headers. I did a search on google and maybe this will do it:

    http://www.iisanswers.com/Top10FAQ/t...irectusers.htm

  • #5
    New Coder
    Join Date
    Jul 2002
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply and the posted link. That would've worked, but I just ended converting the page to ASP.NET since there you can just use:

    If User.IsInRole("Domain\Domain Group") Then
    User is in group
    Else
    User is not in group
    End If

    Thanks again,
    Dan


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •