Re: Problem with roles
- From: "Patrick.O.Ige" <patrickige@xxxxxxxxxxxxxxx>
- Date: Sun, 31 Jul 2005 16:30:23 +1000
Michael i think i blogged something related here at:-
http://spaces.msn.com/members/naijacoder/
Hope that helps
Patrick
"Michael Persaud" <michaelsrpersaud@xxxxxxxxxxx> wrote in message
news:ufr$FnukFHA.2916@xxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
>
> I am trying to get role based authentication and its not working
>
> I have set IIS to windows and removed anonymous
>
> the config file has identity impersonate=true
> winows authen
>
> my codes are:
>
> Dim ident As WindowsIdentity
>
> ident = WindowsIdentity.GetCurrent()
>
> Dim winprin As WindowsPrincipal = New WindowsPrincipal(ident)
>
> Dim role
>
> If winprin.IsInRole("domain\administrators") = True Then
>
> <code>
>
> Exit Sub
>
> End If
>
> or
>
>
>
> 'Put user code to initialize the page here
>
> If (User.IsInRole(s + "\administrators") = True) Then
>
> 'If (User.IsInRole(s + "\managers") = True) Or (User.IsInRole(s +
> "\c_users") = True) Then
>
> Else
>
> Response.Redirect("NotMember.aspx")
>
> End If
>
>
>
> none isnt working please help
>
>
>
> Michael
>
>
.
- Prev by Date: Re: session sharing from ASP to ASP.NET
- Next by Date: Re: Double Encoding Spanish
- Previous by thread: Late night beginners question
- Next by thread: Re: Double Encoding Spanish
- Index(es):
Relevant Pages
|