[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>&lt;Directory&nbsp;/var/www/html/directory&gt;</div><div>&nbsp; \
&nbsp; &nbsp; AuthName "LDAP Authentication"</div><div>&nbsp; &nbsp; &nbsp; AuthType \
Basic</div><div>&nbsp; &nbsp; &nbsp; AuthBasicProvider ldap</div><div>&nbsp; &nbsp; \
&nbsp; AuthzLDAPauthoritative off</div>

<div>&nbsp; &nbsp; &nbsp; 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>&nbsp; \
&nbsp; &nbsp; Require valid-user</div><div>&nbsp; &nbsp; &nbsp; Order \
deny,allow<br></div>

<div>&nbsp; &nbsp; &nbsp; Allow from 192.168.1</div><div>&nbsp; &nbsp; &nbsp; Satisfy \
any<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Require ip \
192.168.1.2<br></div><div>&lt;/Directory&gt;</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