summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-25 18:00:57 +0000
committerGerald Carter <jerry@samba.org>2003-07-25 18:00:57 +0000
commite12f6a8c13f27c3caea96b467cc4294e20dad341 (patch)
treedc5cda1d5eb1ff049fac48fd0cb098bc16443a10 /source/nsswitch
parent6edc7e0a744a5d8c6332758b800a2646ef16dd77 (diff)
downloadsamba-e12f6a8c13f27c3caea96b467cc4294e20dad341.tar.gz
samba-e12f6a8c13f27c3caea96b467cc4294e20dad341.tar.xz
samba-e12f6a8c13f27c3caea96b467cc4294e20dad341.zip
domain in schannel bind credentials must be the dest domain, not ours
Diffstat (limited to 'source/nsswitch')
-rw-r--r--source/nsswitch/winbindd_cm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd_cm.c b/source/nsswitch/winbindd_cm.c
index 9a166068566..f9da38660d6 100644
--- a/source/nsswitch/winbindd_cm.c
+++ b/source/nsswitch/winbindd_cm.c
@@ -169,6 +169,11 @@ static NTSTATUS cm_open_connection(const char *domain, const int pipe_index,
return result;
}
+ /* set the domain if empty; needed for schannel connections */
+ if ( !*new_conn->cli->domain )
+ fstrcpy( new_conn->cli->domain, domain );
+
+
if ( !cli_nt_session_open (new_conn->cli, pipe_index) ) {
result = NT_STATUS_PIPE_NOT_AVAILABLE;
/*