View Full Version : Authentication - Domain Groups
08-01-2002, 06:38 PM
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.
08-01-2002, 07:34 PM
This is what I use:
If InStr(Request.ServerVariables("HTTP_IV_GROUPS"),"NameofGroup") <> 0 Then
in the group
not in the group
08-01-2002, 10:35 PM
What browser or server are you using that you are returning HTTP_IV_GROUPS? When I enumerate through Request.ServerVariables this isn't returned? :confused:
08-02-2002, 03:42 PM
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:
08-02-2002, 04:50 PM
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
User is not in group
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.