logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reg. Apache 2.4 | DirectoryMatch
Author
RAJIV_KVL



Joined: 24 Apr 2018
Posts: 4

PostPosted: Tue 24 Apr '18 11:33    Post subject: Reg. Apache 2.4 | DirectoryMatch Reply with quote

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: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 25 Apr '18 16:11    Post subject: Reply with quote

A Servlet? Are you speaking of a Java Servlet or what?
Back to top
RAJIV_KVL



Joined: 24 Apr 2018
Posts: 4

PostPosted: Sun 29 Apr '18 9:04    Post subject: Reply with quote

Yes Java Servlet
Back to top


Reply to topic   Topic: Reg. Apache 2.4 | DirectoryMatch View previous topic :: View next topic
Post new topic   Forum Index -> Apache