Ask a Question related to ASP.NET Security, Design and Development.
-
naijacoder naijacoder #1
Windows autentication with WindowsPrinicipal
Hello,
I'm using Windows Authenetication with my code below with
Windows Principal.
I noticed that when i use IsinRole with "BUILT\Administrator its does
work fine but when i use
DomainName\GroupName it doesn't go.
Does anybody know what 'm doing wrong?
Pls forward ur ideas!
Thanks
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'Dim UserName As String = wp.Name
Dim wp As New WindowsPrincipal(WindowsIdentity.GetCurrent())
'If wp.IsInRole("DomainName\GroupName") Then
If wp.IsInRole("BUILTIN\Administrators") Then
'code
Response.Redirect("welcome.aspx")
End If
If wp.IsInRole("BUILTIN\dministrators") Then
'code
Response.Redirect("Nowelcome.aspx")
End If
End Sub
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
naijacoder naijacoder Guest
-
Problems with User Autentication
I am trying to develop a login page for my website using a table with userID and Password through a coldfusion interface. I used some of the code... -
Windows autentication PROBLEMS
HI I was using Windows Authentication before in my LOCALHOST with BuiltIN/Administrator(And i was getting DOMAIN\USERNAME and it was working now ... -
Acrobat Printers Missing in Printer Folders after Windows XP Upgrade from Windows Me
I just upgraded one of my computers from Windows Me to Windows XP Home. The computer had Adobe Acrobat 5.0.5 installed within the Windows Me. Now... -
Forms autentication and registration page - some advices
Hi, I implement forms authentication in my application. So I have a login form. Actually I have two custom Web controls, one to login and one to... -
How to return a keyvalue from popup windows with datagrid control to parent windows through JavaScript?
How to return a keyvalue from popup windows with datagrid control to parent windows through JavaScript? -
Paul Glavich [MVP - ASP.NET] #2
Re: Windows autentication with WindowsPrinicipal
Are you using impersonation in your web.config?
--
- Paul Glavich
Microsoft MVP - ASP.NET
"naijacoder naijacoder" <naijacoder@toughguy.net> wrote in message
news:e94t3dkjEHA.156@TK2MSFTNGP10.phx.gbl...> Hello,
> I'm using Windows Authenetication with my code below with
> Windows Principal.
> I noticed that when i use IsinRole with "BUILT\Administrator its does
> work fine but when i use
> DomainName\GroupName it doesn't go.
> Does anybody know what 'm doing wrong?
> Pls forward ur ideas!
> Thanks
>
> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
> System.EventArgs) Handles MyBase.Load
> 'Put user code to initialize the page here
> 'Dim UserName As String = wp.Name
> Dim wp As New WindowsPrincipal(WindowsIdentity.GetCurrent())
> 'If wp.IsInRole("DomainName\GroupName") Then
> If wp.IsInRole("BUILTIN\Administrators") Then
> 'code
> Response.Redirect("welcome.aspx")
>
> End If
> If wp.IsInRole("BUILTIN\dministrators") Then
> 'code
> Response.Redirect("Nowelcome.aspx")
>
> End If
>
> End Sub
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Paul Glavich [MVP - ASP.NET] Guest
-
naijacoder naijacoder #3
Re: Windows autentication with WindowsPrinicipal
Hi Paul,
Yeah i wasn't doing impersonation.
Did that and its working fine!
Thx
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
naijacoder naijacoder Guest



Reply With Quote

