名前付きパイプを介してセットアップしているサーバーがあります。ドメインの管理者には問題なく機能しますが、通常のユーザーでクライアントをテストすると、「パスへのアクセスが拒否されました」という例外が発生します。ドメイン内のすべての認証済みユーザーにアクセス権を付与するためのアクセス許可を設定しようとしているのは次のとおりです。ここで何が間違っていますか?
サーバ:
NamedPipeServerStream pipeServer = new NamedPipeServerStream("message-generator", PipeDirection.InOut, pipeThreads, PipeTransmissionMode.Message, PipeOptions.None);
PipeSecurity pipeSecurity = pipeServer.GetAccessControl();
pipeSecurity.AddAccessRule(new PipeAccessRule(@"localdomain\Authenticated Users", PipeAccessRights.FullControl, AccessControlType.Allow));
pipeServer.SetAccessControl(pipeSecurity);
クライアント:
NamedPipeClientStream pipeClient = new NamedPipeClientStream("servername", "message-generator", PipeDirection.InOut, PipeOptions.None, TokenImpersonationLevel.Impersonation))
サーバー名とドメインは明らかに異なりますが、サーバー上で pipeServer.SetAccessControl 関数に到達すると、「UnauthorizedAccessException」という例外が発生します。
どんな助けでも大歓迎です