mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3-auth Use else if in do_map_to_guest_server_info
This means we can't ever call make_server_info_guest() twice. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
parent
8a650243b3
commit
c9bde9ae75
@ -1600,9 +1600,7 @@ NTSTATUS do_map_to_guest_server_info(NTSTATUS status,
|
||||
user, domain));
|
||||
status = make_server_info_guest(NULL, server_info);
|
||||
}
|
||||
}
|
||||
|
||||
if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD)) {
|
||||
} else if (NT_STATUS_EQUAL(status, NT_STATUS_WRONG_PASSWORD)) {
|
||||
if (lp_map_to_guest() == MAP_TO_GUEST_ON_BAD_PASSWORD) {
|
||||
DEBUG(3,("Registered username %s for guest access\n",
|
||||
user));
|
||||
|
Loading…
x
Reference in New Issue
Block a user