1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-19 04:23:48 +03:00

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 commit is contained in:
Volker Lendecke
2005-10-23 11:23:55 +00:00
committed by Gerald (Jerry) Carter
parent 4fe3c9871b
commit c26b432c27

View File

@@ -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) {