[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: RE: [users@httpd] Can I use different Directory according to the source IP?
From: Mark jensen <ngiw2012 () hotmail ! com>
Date: 2014-07-24 9:22:09
Message-ID: SNT153-W953FF234553B744226795BD9FF0 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (text/plain)]
Thanks for your reply, I know about satisfy, but as I mentioned before, I want \
different Authorization for internal users and external Users:
For internal Users : Require IP IP_Address
for External Users: authorization using LDAP
How can I achieve this?
with Satisfy Any
Can I use different Require tag like this:
<Directory /var/www/html/directory> AuthName "LDAP Authentication" AuthType \
Basic AuthBasicProvider ldap AuthzLDAPauthoritative off
AuthLDAPURL ldap://192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*) \
Require valid-user Order deny,allow
Allow from 192.168.1 Satisfy any
Require ip 192.168.1.2
</Directory>
[Attachment #3 (text/html)]
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks for your reply, I know about satisfy, \
but as I mentioned before, I want different Authorization for internal users and \
external Users:<br><br>For internal Users : Require IP IP_Address<br><br>for External \
Users: authorization using LDAP<br><br>How can I achieve this?<br><br>with Satisfy \
Any<br><br>Can I use different Require tag like \
this:<br><br><div><Directory /var/www/html/directory></div><div> \
AuthName "LDAP Authentication"</div><div> AuthType \
Basic</div><div> AuthBasicProvider ldap</div><div> \
AuthzLDAPauthoritative off</div>
<div> AuthLDAPURL ldap://<a \
href="http://192.168.1.3/dc=example%2cdc=com?uid?sub?%28objectClass=%2a%29" \
target="_blank">192.168.1.3/dc=example,dc=com?uid?sub?(objectClass=*)</a></div><div> \
Require valid-user</div><div> Order \
deny,allow<br></div>
<div> Allow from 192.168.1</div><div> Satisfy \
any<br> Require ip \
192.168.1.2<br></div><div></Directory></div><br> </div></body> \
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic