git.samba.org
/
idra
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a65024
)
s3-auth Use else if in do_map_to_guest_server_info
author
Andrew Bartlett
<abartlet@samba.org>
Wed, 27 Jul 2011 03:20:59 +0000
(13:20 +1000)
committer
Andrew Bartlett
<abartlet@samba.org>
Wed, 3 Aug 2011 08:48:02 +0000
(18:48 +1000)
This means we can't ever call make_server_info_guest() twice.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/auth/auth_util.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_util.c
b/source3/auth/auth_util.c
index 1621630b876960013725736be0c15bd0171e30e2..530b8da096913c9b784e6782337b492442d36e3b 100644
(file)
--- a/
source3/auth/auth_util.c
+++ b/
source3/auth/auth_util.c
@@
-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));