mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
auth4: remove unused USER_INFO_LOCAL_SAM_ONLY/AUTH_METHOD_LOCAL_SAM handling
BUG: https://bugzilla.samba.org/show_bug.cgi?id=2976 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
800e248dcd
commit
b49c371762
@ -361,11 +361,6 @@ static void auth_check_password_async_trigger(struct tevent_context *ev,
|
|||||||
|
|
||||||
for (method=state->auth_ctx->methods; method; method = method->next) {
|
for (method=state->auth_ctx->methods; method; method = method->next) {
|
||||||
|
|
||||||
if (state->user_info->flags & USER_INFO_LOCAL_SAM_ONLY
|
|
||||||
&& !(method->ops->flags & AUTH_METHOD_LOCAL_SAM)) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* we fill in state->method here so debug messages in
|
/* we fill in state->method here so debug messages in
|
||||||
the callers know which method failed */
|
the callers know which method failed */
|
||||||
state->method = method;
|
state->method = method;
|
||||||
|
@ -705,7 +705,6 @@ static const struct auth_operations sam_ignoredomain_ops = {
|
|||||||
.want_check = authsam_ignoredomain_want_check,
|
.want_check = authsam_ignoredomain_want_check,
|
||||||
.check_password = authsam_check_password_internals,
|
.check_password = authsam_check_password_internals,
|
||||||
.get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper,
|
.get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper,
|
||||||
.flags = AUTH_METHOD_LOCAL_SAM
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct auth_operations sam_ops = {
|
static const struct auth_operations sam_ops = {
|
||||||
@ -713,7 +712,6 @@ static const struct auth_operations sam_ops = {
|
|||||||
.want_check = authsam_want_check,
|
.want_check = authsam_want_check,
|
||||||
.check_password = authsam_check_password_internals,
|
.check_password = authsam_check_password_internals,
|
||||||
.get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper,
|
.get_user_info_dc_principal = authsam_get_user_info_dc_principal_wrapper,
|
||||||
.flags = AUTH_METHOD_LOCAL_SAM
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_PUBLIC_ NTSTATUS auth4_sam_init(void);
|
_PUBLIC_ NTSTATUS auth4_sam_init(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user