Problem with roles
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
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
.
Relevant Pages
- Re: Change in ASP.Net authentication between Win2000 and Win2003
... > is turning on/off Kerberos is occuring. ... It control how IE deals with "Authentication: ... when you put IIS6 in a domain and have "Integrated Windows Authentication" ... (microsoft.public.windows.server.security) - Re: Change in ASP.Net authentication between Win2000 and Win2003
... > is turning on/off Kerberos is occuring. ... It control how IE deals with "Authentication: ... when you put IIS6 in a domain and have "Integrated Windows Authentication" ... (microsoft.public.inetserver.iis.security) - Re: Need help configuring Wireless Connection profile
... and I can only use the intel OR windows utility, not both at the same time. ... Windows authentication for all users,4129,LRG\ryanv,4149,Wireless WPA2 ... SMALL BUSINESS SERVER: ... STEP #1 Install Certificate Services ... (microsoft.public.windowsxp.general) - Re: form authentication and webservices
... Co-author of "The .NET Developer's Guide to Directory Services Programming" ... We will be using Windows Authentication on the Web Services side (same ... Dominick Baier ... (microsoft.public.dotnet.framework.aspnet.security) - mixed authentication and LogonUser token in forms ticket - safe?
... I've implemented a mixed forms/windows authentication solution loosely based ... IIS has anonymous access enabled and also has windows integrated ... Dim ident as WindowsIdentity = New WindowsIdentity, ... and return the IntPtr, which I then stick in the forms cookie's user data: ... (microsoft.public.security) |
|