Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17825

using mysql select statements within apache configurations

$
0
0

I'm using mod_auth_cas to authenticate users but I want to grant access based on a mysql select statement. What I'm imagining is being able to do something like this:

AuthType CAS <Limit GET POST> require user mysql:(select username from employee_table) </Limit> 

I have quite a few web applications that use CAS authentication via mod_auth_cas but I'd like to limit access based on authorization data stored in mysql. Anyone done something similar or know a mod/config setup that can accomplish this?

my machines are all redhat 6 running apache 2.2.

Another option might be php if I can embed php within apache config, though that sounds really dirty.

submitted by rexroof
[link][13 comments]

Viewing all articles
Browse latest Browse all 17825

Trending Articles