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