apache 身份验证-如何抑制或绕过网络内部的用户

apache 身份验证-如何抑制或绕过网络内部的用户

我有以下配置以允许公司网络内的用户无需用户 ID 或密码即可访问该网站。

    <Location />
      Require valid-user
      Order allow,deny
      Allow from 1XX.2XX.0.0/16
      Allow from 10.0.0.0/8
      Allow from 127.0.0.1  
      Satisfy Any

      AuthType Basic
      AuthName "Enter your ID and password"
      AuthBasicProvider ldap
      Include /abc/httpd/conf/ldap_userinfo.conf   

      AuthLDAPGroupAttribute member

      ### Add application ldap-user/ldap-group below ###        
      Require ldap-group CN=AP-ABC-PREVIEWSITE-USERS,OU=GROUPS,OU=ABC INFRASTRUCTURE,DC=i,DC=abc,DC=com
      ErrorDocument 401 "Please use correct id and password for access to         this site"

    </Location>

添加后,用户会看到输入用户 ID 和密码的提示,但可以点击取消并访问网站。我如何才能隐藏该提示?

相关内容