473,394 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

User.InRole upto Domain Users --Windows Authentication Problem

Hi All,
i used the code below to get the group of the user rfom
Active Directory

WindowsPrincipal wp=new WindowsPrincipal(WindowsIdentity.GetCurrent());
Response.Write(wp.IsInRole("MyDomain\\domain users"));

And iam getting true, for the same, but my problem is i belong to a
group as WebTeam, Iam not able to validate it

wp.IsInRole("MyDomain\\WebTeam"));

If i give this it return false,

Can somebody help me out how do i validate against my Group

Thanks in Advance

Thomson

Oct 13 '06 #1
0 1701

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Reza | last post by:
Hello I need, have no other option, to use windows authentication for my .net project and SQL server users. I have the list of users in my web.config What do I do, or how do I setup my .net/sql...
3
by: Rich Miller | last post by:
I have a strange situation IIS. Take a sample web site which contains only Index.htm. If I choose anonymous access and go to the site, the page loads fine. If instead of Index.htm I use...
4
by: AGB | last post by:
Hi all, I just created a website in IIS 6. I am using ASP.net and have set impersonate=true in my web config. I set the security level to Integrated Windows Authentication but don't get...
13
by: chuckdfoster | last post by:
I am having a problem with my ASP.NET application and using Windows Authentication. It works until I take the "Everyone" group away from the permissions. Then it won't let anyone in, including...
2
by: Jimmy J. | last post by:
I have a website, that works perfectly locally - it works perfectly, setting it up on the Development server, but then, when we set itup on the Production server (all using same SQL Server), when...
6
by: Matt Adamson | last post by:
Guys, I'm unsure how to use windows authentication in an intranet application. I'd like to user existing windows account to identify users however the issue I have is how to then add settings to...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I have an ASP.NET app using <authentication mode="Windows" /and <identity impersonate="true" />. The program creates files in a network share using the Create method of System.IO.FileStream....
0
by: nclauss | last post by:
I have an Intranet web application developed in VS2005, using ASP.Net 2.0 that uses windows authentication. When run on development or test deployment servers it works fine. When deployed on a...
0
by: singmalay | last post by:
Hi, I am using vbscript (adodb) to connect to a SQL DB that is situated in a different domain with windows authentication configured of that domain. For example if I want to login to the DB I use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.