]> granicus.if.org Git - apache/commitdiff
Change directives from OR_AUTHCFG to ACCESS_CONF
authorNick Kew <niq@apache.org>
Sun, 30 Oct 2005 00:32:00 +0000 (00:32 +0000)
committerNick Kew <niq@apache.org>
Sun, 30 Oct 2005 00:32:00 +0000 (00:32 +0000)
SQL config in .htaccess doesn't make sense and could have security issues.

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

modules/aaa/mod_authn_dbd.c

index b5a491623b1ca5800d74ed2b44145f059e866bd4..39e75621ab684ca15a21269416add1a5ac983cd5 100644 (file)
@@ -76,10 +76,10 @@ static const char *authn_dbd_prepare(cmd_parms *cmd, void *cfg, const char *quer
 static const command_rec authn_dbd_cmds[] =
 {
     AP_INIT_TAKE1("AuthDBDUserPWQuery", authn_dbd_prepare,
-                  (void *)APR_OFFSETOF(authn_dbd_conf, user), OR_AUTHCFG,
+                  (void *)APR_OFFSETOF(authn_dbd_conf, user), ACCESS_CONF,
                   "Query used to fetch password for user"),
-    AP_INIT_TAKE1("AuthDBDUserRealmPWQuery", authn_dbd_prepare,
-                  (void *)APR_OFFSETOF(authn_dbd_conf, realm), OR_AUTHCFG,
+    AP_INIT_TAKE1("AuthDBDUserRealmQuery", authn_dbd_prepare,
+                  (void *)APR_OFFSETOF(authn_dbd_conf, realm), ACCESS_CONF,
                   "Query used to fetch password for user+realm"),
     {NULL}
 };
@@ -128,7 +128,7 @@ static authn_status authn_dbd_password(request_rec *r, const char *user,
         if (dbd_password == NULL) {
             dbd_password = apr_dbd_get_entry(dbd->driver, row, 0);
         }
-       /* we can't break out here or row won't get cleaned up */
+        /* we can't break out here or row won't get cleaned up */
     }
 
     if (!dbd_password) {
@@ -186,7 +186,7 @@ static authn_status authn_dbd_realm(request_rec *r, const char *user,
         if (dbd_hash == NULL) {
             dbd_hash = apr_dbd_get_entry(dbd->driver, row, 0);
         }
-       /* we can't break out here or row won't get cleaned up */
+        /* we can't break out here or row won't get cleaned up */
     }
 
     if (!dbd_hash) {