【发布时间】:2013-12-27 09:26:47
【问题描述】:
我正在开发 WCF 日志记录模块。我想使用 WCF 服务启用所有安全日志记录。就像auditLogLocation="Application | Security | Default 中有三个选项一样。我使用了Application,但我想启用Security 选项。我读了这个链接Auditing Security Events。
我只想知道如何在 WCF 服务中启用 SeAuditPrivilege 和 SeSecurityPrivilege。
这是我的配置
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceSecurityAudit auditLogLocation="Application" suppressAuditFailure="true" serviceAuthorizationAuditLevel="SuccessOrFailure"
messageAuthenticationAuditLevel="SuccessOrFailure" />
</behavior>
</serviceBehaviors>
</behaviors>
【问题讨论】:
标签: c# .net wcf security wcf-security