You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Mark jensen <ng...@hotmail.com> on 2014/07/22 17:20:42 UTC
[users@httpd] How to allow a directory and don't allow a sub-directory?
I want to allow a directory " /var/www/html/ldap" to two users according to IPs (192.168.1.2 192.168.1.7):
<Directory /var/www/html/ldap>
Order allow,deny
Allow from 192.168.1.2 192.168.1.7
Satisfy any
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
</Directory>
but I don't want to allow a sub directory to 192.168.1.7 (I want it to be allowed only to 192.168.1.2):
I have tried to add:
<Directory /var/www/html/ldap//manager>
Order allow,deny
Allow from 192.168.1.2
Satisfy any
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
</Directory>
but it seems that 192.168.1.7 can reach to manager directory because it is a part of ldap directory, how can I forbid this?
RE: [users@httpd] How to allow a directory and don't allow a
sub-directory?
Posted by Mark jensen <ng...@hotmail.com>.
Thanks for your reply but I want a dynamic solution, this is a static solution
Re: [users@httpd] How to allow a directory and don't allow a sub-directory?
Posted by Peter Kühnlein <pe...@function2form.net>.
Am 22.07.2014 17:20, schrieb Mark jensen:
> I have tried to add:
>
> <Directory /var/www/html/ldap//manager>
> Order allow,deny
> Allow from 192.168.1.2
> Satisfy any
> 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
> </Directory>
Maybe you try "deny from 192.168.1.7" instead or in addition?
Cheers, Peter
--
http://function2form.net
http://peter-kuehnlein.net
"Being a retainer is nothing other than being a supporter of one's lord, entrusting matters of good and evil to him, and renouncing self-interest. If there are but two or three men of this type, the fief will be secure."
(Hagakure)
RE: [users@httpd] How to allow a directory and don't allow a
sub-directory?
Posted by Mark jensen <ng...@hotmail.com>.
but this will ask for authentication,I don't want to be asked for authentication on both 192.168.1.2 and 192.168.1.7
Re: [users@httpd] How to allow a directory and don't allow a sub-directory?
Posted by Eric Covener <co...@gmail.com>.
On Tue, Jul 22, 2014 at 11:20 AM, Mark jensen <ng...@hotmail.com> wrote:
> Satisfy any
satisfy all?
--
Eric Covener
covener@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org