svn commit: samba r11264 - in branches/SAMBA_4_0/source/libcli/smb_composite: .

vlendec at samba.org vlendec at samba.org
Sun Oct 23 11:23:56 GMT 2005


Author: vlendec
Date: 2005-10-23 11:23:55 +0000 (Sun, 23 Oct 2005)
New Revision: 11264

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11264

Log:
Winbind does not rely on the hostname resolution mechanisms of
composite_connect, so in io.in.dest_host I'm setting the IP address. Gensec
does not like that as a target hostname, so if a called name is present, use
that. So we can session setup using kerberos now.

Volker


Modified:
   branches/SAMBA_4_0/source/libcli/smb_composite/connect.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/smb_composite/connect.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/smb_composite/connect.c	2005-10-23 11:21:15 UTC (rev 11263)
+++ branches/SAMBA_4_0/source/libcli/smb_composite/connect.c	2005-10-23 11:23:55 UTC (rev 11264)
@@ -355,7 +355,11 @@
 
 	conn->in.hostnames = talloc_array(state->conn, const char *, 1);
 	NT_STATUS_HAVE_NO_MEMORY(conn->in.hostnames);
-	conn->in.hostnames[0] = state->io->in.dest_host;
+	if (state->io->in.called_name != NULL) {
+		conn->in.hostnames[0] = state->io->in.called_name;
+	} else {
+		conn->in.hostnames[0] = state->io->in.dest_host;
+	}
 	
 	conn->in.ports = NULL;
 	if (state->io->in.port != 0) {



More information about the samba-cvs mailing list