Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

w2ksp4.exe, WwwxxXdbf, procmail "FROM_MAILER" patch, Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF

Links

XODOX
Impressum

#1: Allow access to one file

Posted on 2008-04-11 19:14:24 by winterbeef

Hello all,

I have site whose docroot is protected by LDAP authentication.

In the docroot i have one file, "xml.php" that I need to exclude from
this authentication.

I have been mucking around with <Files>, <FilesMatch>, etc. wiht no
success.

Here's my .htaccess in the docroot, but I *do* have access to
httpd.conf if needed:

>>>>>>>>>>>>>>>>>>>>>>>>>>
AuthType Basic
AuthName "Protected Content"
AuthBasicProvider "ldap"
AuthLDAPURL "ldap://LDAP-HOST:PORT/DC=example,DC=com?uid?
sub?(objectClass=user)"
AuthLDAPBindDN ldap-search@example.com
AuthLDAPBindPassword "p@55ww0rd"
authzldapauthoritative Off
require valid-user

<FilesMatch "^xml\.php">
Allow from all
</FilesMatch>
>>>>>>>>>>>>>>>>>>>>>>>>>>

A little help? Anyone?

Report this message

#2: Re: Allow access to one file

Posted on 2008-04-12 02:05:02 by spam

"beef" <winterbeef@gmail.com> wrote in message
news:3def6062-2257-4db2-93b9-3252aad58e87@59g2000hsb.googleg roups.com...
> Hello all,
>
> I have site whose docroot is protected by LDAP authentication.
>
> In the docroot i have one file, "xml.php" that I need to exclude from
> this authentication.
>
> I have been mucking around with <Files>, <FilesMatch>, etc. wiht no
> success.
>
> Here's my .htaccess in the docroot, but I *do* have access to
> httpd.conf if needed:
>
> >>>>>>>>>>>>>>>>>>>>>>>>>>
> AuthType Basic
> AuthName "Protected Content"
> AuthBasicProvider "ldap"
> AuthLDAPURL "ldap://LDAP-HOST:PORT/DC=example,DC=com?uid?
> sub?(objectClass=user)"
> AuthLDAPBindDN ldap-search@example.com
> AuthLDAPBindPassword "p@55ww0rd"
> authzldapauthoritative Off
> require valid-user
>
> <FilesMatch "^xml\.php">
> Allow from all
> </FilesMatch>
> >>>>>>>>>>>>>>>>>>>>>>>>>>
>
> A little help? Anyone?

Rearrange your directory/virtual host.
.... Allow from all
<FilesMatch "!^xml\.php">
AuthType, etc.
</FilesMatch>

The problem with your configuration is that the authorization applies to
everything in that directory/virtual host.

Report this message

#3: Re: Allow access to one file

Posted on 2008-04-14 17:51:13 by winterbeef

> Rearrange your directory/virtual host.
> ... Allow from all
> <FilesMatch "!^xml\.php">
> AuthType, etc.
> </FilesMatch>
>
> The problem with your configuration is that the authorization applies to
> everything in that directory/virtual host.

Thanks! I tried this, but while it doesn't error, apache now does not
prompt for ANY files...

It almost seems like the bang is being interpreted as part of the
pattern, and not as logical inversion. I have not seen this syntax,
nor have been able to find any docs on it...

pointers?

Report this message