From 3608b6af426c99eaa99f366d556018193a1aaa2d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 23 Oct 2005 11:23:55 +0000 Subject: r11264: 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 (This used to be commit c26b432c27954c8dc6ac8e702bd5e34a351d15bd) --- source4/libcli/smb_composite/connect.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/libcli/smb_composite') diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c index 466d86233a..4e9ee48cb7 100644 --- a/source4/libcli/smb_composite/connect.c +++ b/source4/libcli/smb_composite/connect.c @@ -355,7 +355,11 @@ static NTSTATUS connect_resolve(struct composite_context *c, 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) { -- cgit