Hi all,

I have just tried to convince httpd v2.2.0 to password protect a single file on the filesystem, but without any success.

Does anybody know whether this is possible?

I tried

<Location /cgi-bin/dir/file.cgi>

and

<Files /full/path/to/cgi-bin/dir/file.cgi>

but neither of these seemed to do anything - the user was allowed to view the file without error or password.

The full config looks like this:

  <Files /full/path/to/cgi-bin/MT-3.2-en_US/mt-ldap.cgi>
    Options Indexes
    AllowOverride AuthConfig
    AuthBasicProvider ldap
    AuthType basic
    AuthName fileserver
    AuthLDAPBindDN yyy
    AuthLDAPBindPassword yyy
    AuthzLDAPAuthoritative on
    AuthLDAPURL ldap://127.0.0.1:389/yyy?mail?sub
    require ldap-group cn=yyy
  </Files>

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to