summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-17 09:43:36 +0200
committerStefan Metzmacher <metze@samba.org>2009-09-24 06:41:11 +0200
commitf23691cffd39e5df81b7b075e61ed1def6cce9f6 (patch)
treed6fef3b0ae5b9e6c5b1ac73417d543ac553bf89c /source3
parent4f9de0e995cbdebe8919bc703ea257149f02d5b1 (diff)
downloadsamba-f23691cffd39e5df81b7b075e61ed1def6cce9f6.tar.gz
samba-f23691cffd39e5df81b7b075e61ed1def6cce9f6.tar.bz2
samba-f23691cffd39e5df81b7b075e61ed1def6cce9f6.zip
s3:winbindd: use a tcp connection for lsa in case lookup_names/lookup_sids doesn't work over ncacn_np
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_cm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c
index 05df19fd0c..e83d5b0101 100644
--- a/source3/winbindd/winbindd_cm.c
+++ b/source3/winbindd/winbindd_cm.c
@@ -2310,6 +2310,8 @@ NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
DEBUG(10,("cm_connect_lsa: connected to LSA pipe for domain %s using "
"schannel.\n", domain->name ));
+ domain->can_do_ncacn_ip_tcp = domain->active_directory;
+
result = rpccli_lsa_open_policy(conn->lsa_pipe, mem_ctx, True,
SEC_FLAG_MAXIMUM_ALLOWED,
&conn->lsa_policy);
@@ -2317,6 +2319,13 @@ NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
goto done;
}
+ if (NT_STATUS_EQUAL(result, NT_STATUS_RPC_CANNOT_SUPPORT)) {
+ domain->can_do_ncacn_ip_tcp = true;
+ ZERO_STRUCT(conn->lsa_policy);
+ result = NT_STATUS_OK;
+ goto done;
+ }
+
DEBUG(10,("cm_connect_lsa: rpccli_lsa_open_policy failed, trying "
"anonymous\n"));