在Apache中,当使用mod_authnz_ldap模块时,有没有办法让它只在IP地址不在定义的内部范围内时才要求登录?我们有一个网站,我们不希望人们在办公室时必须登录,但当他们不在办公室时-从家里或移动设备等,他们应该必须进行身份验证。
有可能吗?
发布于 2014-06-11 16:49:55
是的,这是可能的。假设您在每个位置上使用LDAP授权:
<Location /your/path/here>
Order deny,allow
Deny from all
Allow from 192.168.0.
Auth...
<your complete ldap config here>
# if one of the above matches, go on
Satisfy any
</Location>您可以找到有关for here的完整文档
https://stackoverflow.com/questions/21707427
复制相似问题