(MU_AUTH_REGISTER_ALL_MODULES): Call mu_auth_init first.
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -62,6 +62,7 @@ struct mu_auth_module | ... | @@ -62,6 +62,7 @@ struct mu_auth_module |
62 | { | 62 | { |
63 | char *name; | 63 | char *name; |
64 | struct argp *argp; | 64 | struct argp *argp; |
65 | struct mu_cfg_param *cfg; | ||
65 | mu_auth_fp authenticate; | 66 | mu_auth_fp authenticate; |
66 | void *authenticate_data; | 67 | void *authenticate_data; |
67 | mu_auth_fp auth_by_name; | 68 | mu_auth_fp auth_by_name; |
... | @@ -127,12 +128,13 @@ extern struct mu_auth_module mu_auth_virtual_module; | ... | @@ -127,12 +128,13 @@ extern struct mu_auth_module mu_auth_virtual_module; |
127 | extern struct mu_auth_module mu_auth_radius_module; | 128 | extern struct mu_auth_module mu_auth_radius_module; |
128 | 129 | ||
129 | #define MU_AUTH_REGISTER_ALL_MODULES() do {\ | 130 | #define MU_AUTH_REGISTER_ALL_MODULES() do {\ |
131 | mu_auth_init (); \ | ||
130 | mu_auth_register_module (&mu_auth_generic_module); \ | 132 | mu_auth_register_module (&mu_auth_generic_module); \ |
131 | mu_auth_register_module (&mu_auth_system_module); \ | 133 | mu_auth_register_module (&mu_auth_system_module); \ |
132 | mu_auth_register_module (&mu_auth_pam_module);\ | 134 | mu_auth_register_module (&mu_auth_pam_module);\ |
133 | mu_auth_register_module (&mu_auth_sql_module);\ | 135 | mu_auth_register_module (&mu_auth_sql_module);\ |
134 | mu_auth_register_module (&mu_auth_virtual_module);\ | 136 | mu_auth_register_module (&mu_auth_virtual_module);\ |
135 | mu_auth_register_module (&mu_auth_radius_module);\ | 137 | mu_auth_register_module (&mu_auth_radius_module);\ |
136 | mu_auth_init (); } while (0) | 138 | } while (0) |
137 | 139 | ||
138 | #endif | 140 | #endif | ... | ... |
-
Please register or sign in to post a comment