Added auth_cmds.c processing for apache1 and 2. Still need to add custom
authorjadestorm <jadestorm>
Mon, 2 Sep 2002 04:29:49 +0000 (04:29 +0000)
committerjadestorm <jadestorm>
Mon, 2 Sep 2002 04:29:49 +0000 (04:29 +0000)
option processors.

apache1/auth_cmds.c
apache1/module.c
apache2/auth_cmds.c [new file with mode: 0644]
apache2/module.c

index 611dff6..f1d5014 100644 (file)
@@ -10,21 +10,12 @@ command_rec kerb_auth_cmds[] = {
 
        {
                "KrbFailStatus",
-               kerb_set_fail_slot_string,
+               kerb_set_fail_slot,
                (void*)XtOffsetOf(kerb_auth_config, krb_fail_status),
                OR_AUTHCFG,
                TAKE1,
                "If auth fails, return status set here."
        },
 
-       {
-               "KrbAuthoritative",
-               kerb_set_fail_slot_flag,
-               (void*)XtOffsetOf(kerb_auth_config, krb_fail_status),
-               OR_AUTHCFG,
-               FLAG,
-               "If auth fails, decline and pass on to lower modules."
-       },
-
        { NULL }
 };
index 327200e..d513b9d 100644 (file)
@@ -5,7 +5,7 @@ module kerb_auth_module = {
        NULL,                           /* dir merger */
        NULL,                           /* server config */
        NULL,                           /* merge server config */
-       NULL,                           /* command table */
+       kerb_auth_cmds,                 /* command table */
        NULL,                           /* handlers */
        NULL,                           /* filename translation */
        kerb_authenticate_user,         /* check_user_id */
diff --git a/apache2/auth_cmds.c b/apache2/auth_cmds.c
new file mode 100644 (file)
index 0000000..7209294
--- /dev/null
@@ -0,0 +1,19 @@
+static const command_rec kerb_auth_cmds[] = {
+       AP_INIT_TAKE1(
+               "AuthKerberos",
+               kerb_set_type_slot,
+               (void*)APR_XtOffsetOf(kerb_auth_config, krb_auth_type),
+               OR_AUTHCFG,
+               "Permit Kerberos auth without AuthType requirement."
+       ),
+
+       AP_INIT_TAKE1(
+               "KrbFailStatus",
+               kerb_set_fail_slot,
+               (void*)APR_XtOffsetOf(kerb_auth_config, krb_fail_status),
+               OR_AUTHCFG,
+               "If auth fails, return status set here."
+       ),
+
+       { NULL }
+};
index 367f1f7..a846a0c 100644 (file)
@@ -5,6 +5,6 @@ module AP_MODULE_DECLARE_DATA kerb_auth_module =
        NULL,                           /* dir merger */
        NULL,                           /* server config */
        NULL,                           /* merge server config */
-       NULL,                           /* command apr_table_t */
+       kerb_auth_cmds,                 /* command apr_table_t */
        kerb_register_hooks             /* register hooks */
 };