From: Stefan Metzmacher Date: Sat, 8 Dec 2018 21:48:33 +0000 (+0100) Subject: s3:auth_winbind: remove fallback to optional backend X-Git-Tag: samba-4.8.9~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1bcc4e56f67914867454cd09df2c65e0531587;p=thirdparty%2Fsamba.git s3:auth_winbind: remove fallback to optional backend This is not possible anymore, as the trustdomain backend was removed in commit 75c152c0d764165a4a9dd0a85390af063dd0192a. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13722 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13723 Signed-off-by: Stefan Metzmacher Reviewed-by: Alexander Bokovoy (cherry picked from commit f3bac8c91121871bf8ce852bc3e3ea2e834d3f27) --- diff --git a/source3/auth/auth.c b/source3/auth/auth.c index 4df74f9f39f..cdf4f1db430 100644 --- a/source3/auth/auth.c +++ b/source3/auth/auth.c @@ -545,7 +545,7 @@ NTSTATUS make_auth3_context_for_netlogon(TALLOC_CTX *mem_ctx, switch (lp_server_role()) { case ROLE_DOMAIN_BDC: case ROLE_DOMAIN_PDC: - methods = "sam_netlogon3 winbind:trustdomain"; + methods = "sam_netlogon3 winbind"; break; default: diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 6bf2118037d..10e6c53c108 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -110,12 +110,6 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, } if (wbc_status == WBC_ERR_WINBIND_NOT_AVAILABLE) { - struct auth_methods *auth_method = - (struct auth_methods *)my_private_data; - - if ( auth_method ) - return auth_method->auth(auth_context, auth_method->private_data, - mem_ctx, user_info, server_info); return NT_STATUS_LOGON_FAILURE; } @@ -164,16 +158,6 @@ static NTSTATUS auth_init_winbind(struct auth_context *auth_context, const char result->name = "winbind"; result->auth = check_winbind_security; - if (param && *param) { - /* we load the 'fallback' module - if winbind isn't here, call this - module */ - auth_methods *priv; - if (!load_auth_module(auth_context, param, &priv)) { - return NT_STATUS_UNSUCCESSFUL; - } - result->private_data = (void *)priv; - } - *auth_method = result; return NT_STATUS_OK; }