static NTSTATUS auth_init_guest(struct auth_context *auth_context, const char *options, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) return NT_STATUS_NO_MEMORY; (*auth_method)->auth = check_guest_security; (*auth_method)->name = "guest"; return NT_STATUS_OK; }
static NTSTATUS auth_init_name_to_ntstatus(struct auth_context *auth_context, const char *param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) return NT_STATUS_NO_MEMORY; (*auth_method)->auth = check_name_to_ntstatus_security; (*auth_method)->name = "name_to_ntstatus"; return NT_STATUS_OK; }
/* module initialisation */ static NTSTATUS auth_init_unix(struct auth_context *auth_context, const char* param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) { return NT_STATUS_NO_MEMORY; } (*auth_method)->name = "unix"; (*auth_method)->auth = check_unix_security; return NT_STATUS_OK; }
/* module initialisation */ static NTSTATUS auth_init_sam_ignoredomain(struct auth_context *auth_context, const char *param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) { return NT_STATUS_NO_MEMORY; } (*auth_method)->auth = check_sam_security; (*auth_method)->name = "sam_ignoredomain"; return NT_STATUS_OK; }
static NTSTATUS auth_init_fixed_challenge(struct auth_context *auth_context, const char *param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) return NT_STATUS_NO_MEMORY; (*auth_method)->auth = check_fixed_challenge_security; (*auth_method)->get_chal = auth_get_fixed_challenge; (*auth_method)->name = "fixed_challenge"; return NT_STATUS_OK; }
/* module initialisation */ static NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char *param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) { return NT_STATUS_NO_MEMORY; } (*auth_method)->name = "winbind"; (*auth_method)->auth = check_winbind_security; if (param && *param) { /* we load the 'fallback' module - if winbind isn't here, call this module */ if (!load_auth_module(auth_context, param, (auth_methods **)&(*auth_method)->private_data)) { return NT_STATUS_UNSUCCESSFUL; } } return NT_STATUS_OK; }
/* module initialisation */ static NTSTATUS auth_init_script(struct auth_context *auth_context, const char *param, auth_methods **auth_method) { if (!make_auth_methods(auth_context, auth_method)) { return NT_STATUS_NO_MEMORY; } (*auth_method)->name = "script"; (*auth_method)->auth = script_check_user_credentials; if (param && *param) { /* we load the 'fallback' module - if script isn't here, call this module */ auth_methods *priv; if (!load_auth_module(auth_context, param, &priv)) { return NT_STATUS_UNSUCCESSFUL; } (*auth_method)->private_data = (void *)priv; } return NT_STATUS_OK; }