projects
/
shibboleth
/
cpp-sp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a16bcd1
)
Allow non-user aliases to map to REMOTE_USER
author
Scott Cantor
<cantor.2@osu.edu>
Tue, 28 Mar 2006 03:27:41 +0000
(
03:27
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Tue, 28 Mar 2006 03:27:41 +0000
(
03:27
+0000)
apache/mod_apache.cpp
patch
|
blob
|
history
diff --git
a/apache/mod_apache.cpp
b/apache/mod_apache.cpp
index
b612233
..
cae4c69
100644
(file)
--- a/
apache/mod_apache.cpp
+++ b/
apache/mod_apache.cpp
@@
-768,8
+768,12
@@
bool htAccessControl::authorized(
}
bool regexp=false;
- const char* vals=ap_table_get(sta->m_req->headers_in,wrapper->getHeader());
- while (*t && vals) {
+ const char* vals;
+ if (!strcmp(wrapper->getHeader(),"REMOTE_USER"))
+ vals=remote_user.c_str();
+ else
+ vals=ap_table_get(sta->m_req->headers_in,wrapper->getHeader());
+ while (*t && vals && *vals) {
w=ap_getword_conf(sta->m_req->pool,&t);
if (*w=='~') {
regexp=true;