git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1cff02
)
Try anonymous session setup
author
Volker Lendecke
<vl@samba.org>
Wed, 9 Apr 2008 07:07:04 +0000
(09:07 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 9 Apr 2008 07:59:49 +0000
(09:59 +0200)
... if there's no trust password
Attempt to fix bug 5350
source/nsswitch/winbindd_cm.c
patch
|
blob
|
history
diff --git
a/source/nsswitch/winbindd_cm.c
b/source/nsswitch/winbindd_cm.c
index 5b3120e88764e60911c1417bc5e0fdd491b58101..91c8c461e85c1006d133819cee8fefcb16de93ab 100644
(file)
--- a/
source/nsswitch/winbindd_cm.c
+++ b/
source/nsswitch/winbindd_cm.c
@@
-720,7
+720,7
@@
static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
&machine_account,
&machine_krb5_principal);
if (!NT_STATUS_IS_OK(result)) {
- goto
done
;
+ goto
anon_fallback
;
}
if (lp_security() == SEC_ADS) {
@@
-803,6
+803,8
@@
static NTSTATUS cm_prepare_connection(const struct winbindd_domain *domain,
}
}
+ anon_fallback:
+
/* Fall back to anonymous connection, this might fail later */
if (NT_STATUS_IS_OK(cli_session_setup(*cli, "", NULL, 0,