2011-11-10 3 views
2

IIS 7/Windows Server 2008では、WindowsPrincipal.IsInRoleが常にfalseを返すような設定やアクセス許可がありますかIIS 6/Windows Server 2003で動作するコードは動作しますか?方法を呼び出す方法は次のとおりです。Windows 7/Windows Server 2K8ではWindowsPrincipal.IsInRoleが機能していませんが、IIS 6/Windows Server 2K3で動作します

IPrincipal principal = new WindowsPrincipal(WindowsIdentity.GetCurrent()); 
bool isInRole = principal.IsInRole("DOMAIN\Group"); // Always false in Win 2K8 

Webアプリケーションは、両方のサーバーで統合Windows認証を使用して実行されています。また、Windows 2008サーバーはWindows 2003サーバーとは異なるサブドメインにあります。チェックしているグループは、Win 2003サーバーと同じサブドメインにあります。

私は必要に応じて詳細を提供することができますが、関連性の高いものとノイズのものがわかりません。

答えて

0

「DOMAIN \ Group」がグループの完全な名前であるかどうかをドメインコントローラで確認します。グループ名(Windows2000以前)でなければなりません。

関連する問題