diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-07 17:37:13 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-08 18:28:16 +0200 |
commit | bcad45ed432b67715cb08f6555f218472f3977eb (patch) | |
tree | e8a546e8d6e4c2bbc6cb52e368363f3790533c28 | |
parent | 80eba8143802dec1cad6debd85df3ab5ff47c83e (diff) | |
download | samba-bcad45ed432b67715cb08f6555f218472f3977eb.tar.gz samba-bcad45ed432b67715cb08f6555f218472f3977eb.tar.bz2 samba-bcad45ed432b67715cb08f6555f218472f3977eb.zip |
s3: Check for sid instead of name in cm_connect_sam
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index fca0a9162c..c5ceb6cc69 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -2080,7 +2080,7 @@ NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx, char *machine_account = NULL; char *domain_name = NULL; - if (strequal(domain->name, get_global_sam_name())) { + if (sid_check_is_domain(&domain->sid)) { result = open_internal_samr_conn(mem_ctx, domain, cli, sam_handle); if (!NT_STATUS_IS_OK(result)) { return result; |