Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-01-2002, 05:38 PM   PM User | #1
three_4me
New Coder

 
Join Date: Jul 2002
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
three_4me is an unknown quantity at this point
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.
three_4me is offline   Reply With Quote
Old 08-01-2002, 06:34 PM   PM User | #2
allida77
Regular Coder

 
Join Date: Jun 2002
Location: Cincinnati, OH
Posts: 545
Thanks: 0
Thanked 0 Times in 0 Posts
allida77 is an unknown quantity at this point
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
allida77 is offline   Reply With Quote
Old 08-01-2002, 09:35 PM   PM User | #3
three_4me
New Coder

 
Join Date: Jul 2002
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
three_4me is an unknown quantity at this point
What browser or server are you using that you are returning HTTP_IV_GROUPS? When I enumerate through Request.ServerVariables this isn't returned?
three_4me is offline   Reply With Quote
Old 08-02-2002, 02:42 PM   PM User | #4
allida77
Regular Coder

 
Join Date: Jun 2002
Location: Cincinnati, OH
Posts: 545
Thanks: 0
Thanked 0 Times in 0 Posts
allida77 is an unknown quantity at this point
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
allida77 is offline   Reply With Quote
Old 08-02-2002, 03:50 PM   PM User | #5
three_4me
New Coder

 
Join Date: Jul 2002
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
three_4me is an unknown quantity at this point
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
three_4me is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:50 AM.


Advertisement
Log in to turn off these ads.