Ask a Question related to ASP.NET Security, Design and Development.
-
Julia #1
HttpContext.Current.User.IsInRole
Hi,
I have a problem when I am using the HttpContext.Current.User.IsInRole...
This is my code:
if (HttpContext.Current.User.IsInRole("Admin advanced")) {
....
....
}
Admin advanced is a group in my AD. I think
HttpContext.Current.User.IsInRole cant handle the white space... Is that so
and how can I solve this problem?
Thank
/julia
Julia Guest
-
HttpContext.Current.User.IsInRole(string) always returns false
I have a asp.net 1.1 site and HttpContext.Current.User.IsInRole(@"MyLocalComputer\MyGroup") always returns false. I've turned off anonymous... -
How secure is HttpContext.Current.User.Identity.Name ?
How secure it is to authorize access to an ASP.NET application based on the value of the HttpContext.Current.User.Identity.Name propery? I... -
Web.HttpContext.Current.User.Identity.Name is blank
I am using an application which is a modification of IBuySpy Portal. It is using Forms authentication. Users login and their name is added to... -
HttpContext.Current.User vs. Thread.CurrentPrincipal
How are HttpConext.Current.User and Thread.CurrentPrincipal different? It seems that they can be set differently in different places. Why would... -
HttpContext.Current.User not available in the redirected page
I am trying to use Forms Authentication and Role-Based Security: I have two pages: login.aspx and Default.aspx. -------------------------- This is... -
Nilesh Leuva via DotNetMonster.com #2
Re: HttpContext.Current.User.IsInRole
Hi Juliya,
You need to try this....
HttpContext.Current.User.IsInRole("BUILTIN\\Admin advanced"))
--
Message posted via [url]http://www.dotnetmonster.com[/url]
Nilesh Leuva via DotNetMonster.com Guest
-
Joe Kaplan \(MVP - ADSI\) #3
Re: HttpContext.Current.User.IsInRole
Except that it won't be a BUILTIN group, it will be the NETBIOS name of her
AD domain used here:
HERDOMAIN\Admin advanced
Joe K.
"Nilesh Leuva via DotNetMonster.com" <forum@DotNetMonster.com> wrote in
message news:ef810dde510245cabf6823318c83e756@DotNetMonste r.com...> Hi Juliya,
>
> You need to try this....
>
> HttpContext.Current.User.IsInRole("BUILTIN\\Admin advanced"))
>
> --
> Message posted via [url]http://www.dotnetmonster.com[/url]
Joe Kaplan \(MVP - ADSI\) Guest



Reply With Quote

