Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Reg. Apache 2.4 | DirectoryMatch |
|
Author |
|
RAJIV_KVL
Joined: 24 Apr 2018 Posts: 4
|
Posted: Tue 24 Apr '18 11:33 Post subject: Reg. Apache 2.4 | DirectoryMatch |
|
|
Hi Team,
I am using Apache/2.4.27. We are providing directory access via HTTPS.
Example url : https://dev.zambox.com/creports/awsforrest/reports/
We have used the below conf.
Alias /creports "/usr/local/apache/htdocs/clients"
<DirectoryMatch "^/usr/local/apache/htdocs/clients/(?<CLIENTNAME>[^/]+)">
DirectoryIndex disabled
AllowOverride None
Options Indexes FollowSymLinks
AuthLDAPUrl ldap://directory:390/dc=zambox,dc=com,dc=users,dc=zambox,dc=com?uid
AuthName "zambox"
AuthType Basic
AuthBasicProvider ldap
Require valid-user
IndexOptions FancyIndexing NameWidth=*
</DirectoryMatch>
Our requirement is after LDAP is authenticated , we wanted to check if user has certain flags enabled. That flags are kept in oracle DataBase Table.
We can write a Servlet to do that flag check from database.
But we don't know how to call a Servlet after LDAP is authenticated.
Is that possible , Is there a any way to do in DirectoryMatch conf ? Please let us know. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7372 Location: Germany, Next to Hamburg
|
Posted: Wed 25 Apr '18 16:11 Post subject: |
|
|
A Servlet? Are you speaking of a Java Servlet or what? |
|
Back to top |
|
RAJIV_KVL
Joined: 24 Apr 2018 Posts: 4
|
Posted: Sun 29 Apr '18 9:04 Post subject: |
|
|
Yes Java Servlet |
|
Back to top |
|
|
|
|
|
|