git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9e1690
)
s4:auth_sam: is_local_name
author
Stefan Metzmacher
<metze@samba.org>
Tue, 9 Jan 2018 08:24:11 +0000
(09:24 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 29 Oct 2019 13:33:03 +0000
(14:33 +0100)
source4/auth/ntlm/auth_sam.c
patch
|
blob
|
history
diff --git
a/source4/auth/ntlm/auth_sam.c
b/source4/auth/ntlm/auth_sam.c
index fb88cb87f66801f38fa085c5bd0b60ab9f8135cd..cdee110d83c2f095c4edff56c137e4138f68dfea 100644
(file)
--- a/
source4/auth/ntlm/auth_sam.c
+++ b/
source4/auth/ntlm/auth_sam.c
@@
-776,6
+776,12
@@
static NTSTATUS authsam_want_check(struct auth_method_context *ctx,
* Now we handle the AD DC case...
*/
+ if (is_local_name) {
+ DBG_DEBUG("%s is one of my local names (DC)\n",
+ effective_domain);
+ return NT_STATUS_NO_SUCH_USER;
+ }
+
is_my_domain = lpcfg_is_my_domain_or_realm(ctx->auth_ctx->lp_ctx,
effective_domain);
if (is_my_domain) {