2014-02-11 133 views
0

有沒有在Apache中的方式,使用mod_authnz_ldap模塊模塊時,只能有它要求登錄,如果IP地址是沒有定義的,內部的範圍內?我們有我們不希望人們必須從當他們在辦公室,但不在辦公室的時候登錄網站 - 在家中或移動等,他們應該有進行身份驗證。Apache和LDAP身份驗證extenernal IP只

可能嗎?

回答

0

是有可能。 Asuming您使用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> 

你可以找到完整的文檔,滿足here