]> granicus.if.org Git - apache/commitdiff
The arguments to require are case-sensitive, so that "Require User" and
authorRich Bowen <rbowen@apache.org>
Wed, 20 Jul 2005 16:23:35 +0000 (16:23 +0000)
committerRich Bowen <rbowen@apache.org>
Wed, 20 Jul 2005 16:23:35 +0000 (16:23 +0000)
"Require Valid-User" don't work. This makes those comparisons
case-insensitive.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@219936 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authz_dbm.c
modules/aaa/mod_authz_groupfile.c
modules/aaa/mod_authz_user.c

index 436c42a6f727cae9466bd4167e03f1f1f33f1064..e9f25dc9d628f00be59ad53dee0a6db9717d6a11 100644 (file)
@@ -167,7 +167,7 @@ static int dbm_check_auth(request_rec *r)
         t = reqs[x].requirement;
         w = ap_getword_white(r->pool, &t);
  
-        if (!strcmp(w, "file-group")) {
+        if (!cmpstri(w, "file-group")) {
             filegroup = apr_table_get(r->notes, AUTHZ_GROUP_NOTE);
             
             if (!filegroup) {
@@ -179,7 +179,7 @@ static int dbm_check_auth(request_rec *r)
             }
         }
 
-        if (!strcmp(w, "group") || filegroup) {
+        if (!cmpstri(w, "group") || filegroup) {
             const char *realm = ap_auth_name(r);
             const char *groups;
             char *v;
index 6f02d06d9dee0455e28574bcc2ffb3105a79a36e..5d7a9d8957dcf1f34b23397edd8d888bd9610792 100644 (file)
@@ -185,7 +185,7 @@ static int check_user_access(request_rec *r)
         w = ap_getword_white(r->pool, &t);
 
         /* needs mod_authz_owner to be present */
-        if (!strcmp(w, "file-group")) {
+        if (!cmpstri(w, "file-group")) {
             filegroup = apr_table_get(r->notes, AUTHZ_GROUP_NOTE);
             
             if (!filegroup) {
@@ -197,7 +197,7 @@ static int check_user_access(request_rec *r)
             }
         }
 
-        if (!strcmp(w, "group") || filegroup) {
+        if (!cmpstri(w, "group") || filegroup) {
             required_group = 1; /* remember the requirement */
 
             /* create group table only if actually needed. */
index 3478359593dcfe2d1e344b564941c115a9c8dc3e..f7f7b910a257851f74bf13c7c0c0ea61b77b2b4e 100644 (file)
@@ -77,10 +77,10 @@ static int check_user_access(request_rec *r)
 
         t = reqs[x].requirement;
         w = ap_getword_white(r->pool, &t);
-        if (!strcmp(w, "valid-user")) {
+        if (!cmpstri(w, "valid-user")) {
             return OK;
         }
-        if (!strcmp(w, "user")) {
+        if (!cmpstri(w, "user")) {
             /* And note that there are applicable requirements 
              * which we consider ourselves the owner of.
              */