我在域中的 Windows Server 2016 上有一个 IIS 10 服务。有一个使用 Windows 身份验证的网站。规则监视传入用户是否是 AD\xy 组的成员。如果是 AD\group 成员,则用户可以登录该网站。
问题:在同一台计算机上,有些用户可以登录网站,有些用户无法登录网站!
这是 web.config
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument enabled="true">
<files>
<remove value="Default.htm" />
<remove value="Default.asp" />
<remove value="index.htm" />
<remove value="iisstart.htm" />
<remove value="index.html" />
<add value="index.html" />
</files>
</defaultDocument>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" roles="AD\xy" />
</authorization>
</security>
<rewrite>
<rules>
<rule name="http to https redirect" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>