Lines Matching defs:hostname
348 * SUDO allows only one hostname that is returned from gethostname()
360 char hostname[HOST_NAME_MAX + 1];
372 /* hostname, fqdn and NULL */
380 /* get hostname */
383 ret = gethostname(hostname, HOST_NAME_MAX);
386 DEBUG(SSSDBG_CRIT_FAILURE, "Unable to retrieve machine hostname "
390 hostname[HOST_NAME_MAX] = '\0';
392 state->hostnames[0] = talloc_strdup(state->hostnames, hostname);
399 dot = strchr(hostname, '.');
401 /* already a fqdn, determine hostname and finish */
402 DEBUG(SSSDBG_TRACE_INTERNAL, "Found fqdn: %s\n", hostname);
405 DEBUG(SSSDBG_TRACE_INTERNAL, "Found hostname: %s\n", hostname);
407 state->hostnames[1] = talloc_strdup(state->hostnames, hostname);
417 DEBUG(SSSDBG_TRACE_INTERNAL, "Found hostname: %s\n", hostname);
425 hostname, be_ctx->be_res->family_order,