NFS:用户标识登录

Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserLogon (UnitMonitor)

已为此监视器启用警报时,如果用户无法登录,该对象会监视用户名映射和凭据并生成警报。

Knowledge Base article:

摘要

已为此监视器启用警报时,如果用户无法登录,该对象会监视用户名映射和凭据并生成警报。

用户名映射将 Windows 与 UNIX 用户帐户关联,以便登录到 UNIX 域的用户可以访问 Windows 域中的共享资源,而无需另外登录到 Windows 域。

原因

如果存在用户登录问题或安全策略问题,此监视器可能会进入“警告”运行状况状态。

检查 Windows 系统事件日志确定具体原因,方法是检查是否存在事件源 Microsoft-Windows-ServicesForNFS-Server 的消息和以下任一事件 ID:

如果运行状况状态未知,则说明对此对象的监视尚未开始。

解决方案

配置 Server for NFS 使用标识映射源

若要配置 Server for NFS 使用标识映射源,请使用以下过程:

1. 在受影响服务器的提升命令提示符处,键入 nfsadmin mapping 可显示和配置标识映射设置。

2. 执行以下操作之一:

验证

若要确认是否已正确配置 Server for NFS 以进行用户名映射,请使用以下过程:

1. 在受影响服务器的提升命令提示符处,键入 nfsadmin mapping

2. 确认至少已配置以下任一项:

在 Server for NFS 重新启动之后,此监视器将自动重置为“正常”状态。

其他

事件 ID 1071 至 1073 (http://go.microsoft.com/fwlink/?LinkId=186008)

有关管理用户帐户的信息,请参阅 管理用户 (http://go.microsoft.com/fwlink/?LinkId=185984)和 帐户策略 (http://go.microsoft.com/fwlink/?LinkId=185985)。

有关配置 Server for NFS 的详细信息,请参阅 网络文件系统服务 (http://go.microsoft.com/fwlink/?LinkId=185983)。

Element properties:

TargetMicrosoft.Windows.FileServices.Service.NFS.6.3
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.FileServices.Service.NFS.6.3.Server.UserLogon" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.FileServices.Service.NFS.6.3" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</FirstComputerName>
<FirstLogName>Microsoft-Windows-ServicesForNFS-Server/IdentityMapping</FirstLogName>
<FirstExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-ServicesForNFS-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1071</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1072</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1073</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</SecondComputerName>
<SecondLogName>Microsoft-Windows-ServicesForNFS-Server/Admin</SecondLogName>
<SecondExpression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1000</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-ServicesForNFS-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>