mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
More logical operations on booleans. IBM checker.
Jeremy.
This commit is contained in:
parent
7f9fe7da1e
commit
e289a0c859
@ -270,7 +270,9 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
|
||||
&info3);
|
||||
|
||||
if (NT_STATUS_IS_OK(nt_status)) {
|
||||
(*server_info)->was_mapped |= user_info->was_mapped;
|
||||
if (user_info->was_mapped) {
|
||||
(*server_info)->was_mapped = user_info->was_mapped;
|
||||
}
|
||||
|
||||
if ( ! (*server_info)->guest) {
|
||||
/* if a real user check pam account restrictions */
|
||||
|
@ -134,7 +134,9 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
|
||||
}
|
||||
|
||||
if (NT_STATUS_IS_OK(nt_status)) {
|
||||
(*server_info)->was_mapped |= user_info->was_mapped;
|
||||
if (user_info->was_mapped) {
|
||||
(*server_info)->was_mapped = user_info->was_mapped;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (NT_STATUS_IS_OK(nt_status)) {
|
||||
|
Loading…
Reference in New Issue
Block a user