summaryrefslogtreecommitdiffstats
path: root/source3/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-06-30 12:04:03 +1200
committerAndrew Bartlett <abartlet@samba.org>2014-07-04 02:52:35 +0200
commit0b77cd969c54e4efa6faff507834c183958ec23c (patch)
tree7615b93b7e97793cdb6533f5ea311de40e989285 /source3/auth
parent5d069a04fc843512b6a703691d81c4c1d28ef744 (diff)
downloadsamba-0b77cd969c54e4efa6faff507834c183958ec23c.tar.gz
samba-0b77cd969c54e4efa6faff507834c183958ec23c.tar.xz
samba-0b77cd969c54e4efa6faff507834c183958ec23c.zip
s4-auth: Do not override the NT_STATUS_NOT_IMPLEMENTED error for winbindd
This changes the auth code in winbindd to use this as a flag, and to therefore contact the RW DC. Change-Id: If4164d27b57b453b398642fdf7d46d03cd0e65f2 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
Diffstat (limited to 'source3/auth')
-rw-r--r--source3/auth/auth.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index 6d1192eded..00261f725f 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -232,6 +232,13 @@ NTSTATUS auth_check_ntlm_password(TALLOC_CTX *mem_ctx,
if ( NT_STATUS_V(result) == NT_STATUS_V(NT_STATUS_NOT_IMPLEMENTED) ) {
DEBUG(10,("check_ntlm_password: %s had nothing to say\n", auth_method->name));
TALLOC_FREE(tmp_ctx);
+ if (user_info->flags & USER_INFO_LOCAL_SAM_ONLY) {
+ /* we don't expose the NT_STATUS_NOT_IMPLEMENTED
+ * internals, except when the caller is only probing
+ * one method, as they may do the fallback
+ */
+ nt_status = result;
+ }
continue;
}