git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3e2e41
)
auth_winbind3: Correctly handle !authoritative
author
Volker Lendecke
<vl@samba.org>
Sat, 11 Feb 2017 09:25:44 +0000
(10:25 +0100)
committer
Jeremy Allison
<jra@samba.org>
Fri, 10 Mar 2017 02:28:26 +0000
(
03:28
+0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/auth/auth_winbind.c
patch
|
blob
|
history
diff --git
a/source3/auth/auth_winbind.c
b/source3/auth/auth_winbind.c
index 2b5c84d2760e1a0205b04da1a8117abc808c4fec..e6a629658c01aa164253313d85e61005d1ecdd7a 100644
(file)
--- a/
source3/auth/auth_winbind.c
+++ b/
source3/auth/auth_winbind.c
@@
-121,6
+121,15
@@
static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
if (wbc_status == WBC_ERR_AUTH_ERROR) {
nt_status = NT_STATUS(err->nt_status);
+
+ if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NO_SUCH_USER) &&
+ (err->authoritative == 0)) {
+ /*
+ * Trigger a fallback to local SAM
+ */
+ nt_status = NT_STATUS_NOT_IMPLEMENTED;
+ }
+
wbcFreeMemory(err);
return nt_status;
}