setenvif and mod_authnz_ldap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I'd like to know whether it is possible to check a request for a string via regex, store this into an envvar and match an ldap attribute against this variable?

below is my directory block. from the logs I can tell that the match in the require ldap-attribute shows that the variable doesn't get expanded.
on a side note I'd like to know how to log the variable to check whether it has been set or if my regex is completly in the woods.

any help very much appreciated


    <Directory "/public_html/directory/*/private/">

        SetEnvIf REQUEST_URI ".*/directory/(\d{8})/.*" date=$1

        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        AuthType basic
        AuthName "private"
        AuthBasicProvider ldap
        AuthLDAPURL "ldap://ldap.example.com:389/ou=people,dc=ldap,dc=example,dc=com?uid";
        Require ldap-attribute sn=date
        Order allow,deny
        Allow from all
    </Directory>




__
cu
christian unger



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux