Searched defs:hostname (Results 1 - 25 of 33) sorted by relevance

12

/sssd-io/src/providers/ldap/
H A Dsdap_async_hosts.c40 const char *hostname; member in struct:sdap_host_state
55 * hostname == NULL -> look up all hosts / host groups
56 * hostname != NULL -> look up only given host and groups
64 const char *hostname,
80 state->hostname = hostname;
92 if (hostname == NULL) {
99 hostname);
60 sdap_host_info_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_handle *sh, struct sdap_options *opts, const char *hostname, struct sdap_attr_map *host_map, struct sdap_search_base **search_bases) argument
H A Dsdap_async_sudo_hostinfo.c348 * SUDO allows only one hostname that is returned from gethostname()
360 char hostname[HOST_NAME_MAX + 1]; local
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 an
[all...]
H A Dldap_child.c339 char hostname[HOST_NAME_MAX + 1]; local
341 ret = gethostname(hostname, HOST_NAME_MAX);
346 hostname[HOST_NAME_MAX] = '\0';
348 DEBUG(SSSDBG_TRACE_LIBS, "got hostname: [%s]\n", hostname);
350 ret = select_principal_from_keytab(tmp_ctx, hostname, realm_name,
H A Dsdap_dyndns.c49 const char *hostname; member in struct:sdap_dyndns_update_state
90 const char *hostname,
107 state->hostname = hostname;
191 state->be_res, state->hostname);
336 state->hostname,
479 ret = be_nsupdate_create_ptr_msg(state, realm, servername, state->hostname,
83 sdap_dyndns_update_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct be_ctx *be_ctx, struct dp_option *opts, struct sdap_id_ctx *sdap_ctx, enum be_nsupdate_auth auth_type, const char *ifname, const char *hostname, const char *realm, const int ttl, bool check_diff) argument
/sssd-io/src/providers/ipa/
H A Dipa_hosts.c41 const char *hostname; member in struct:ipa_host_state
60 * hostname == NULL -> look up all hosts / host groups
61 * hostname != NULL -> look up only given host and groups
70 const char *hostname,
86 state->hostname = hostname;
92 subreq = sdap_host_info_send(mem_ctx, ev, sh, opts, hostname, host_map,
134 if (state->hostname == NULL) {
249 if (state->hostname == NULL) {
66 ipa_host_info_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_handle *sh, struct sdap_options *opts, const char *hostname, struct sdap_attr_map *host_map, struct sdap_attr_map *hostgroup_map, struct sdap_search_base **search_bases) argument
H A Dipa_srv.c34 const char *hostname; member in struct:ipa_srv_plugin_ctx
41 const char *hostname,
53 ctx->hostname = talloc_strdup(ctx, hostname);
54 if (ctx->hostname == NULL) {
82 * _locations.hostname.discovery_domain for primary servers and
124 if (strchr(ctx->hostname, '.') == NULL) {
127 ctx->hostname, backup_domain);
130 ctx->hostname);
39 ipa_srv_plugin_ctx_init(TALLOC_CTX *mem_ctx, struct resolv_ctx *resolv_ctx, const char *hostname, const char *ipa_domain) argument
H A Dipa_subdomains.h102 const char *hostname; member in struct:ipa_server_mode_ctx
H A Dipa_hbac_common.c282 const char *hostname,
613 const char *hostname,
635 host->name = hostname;
611 hbac_eval_host_element(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *hostname, struct hbac_request_element **host_element) argument
H A Dipa_access.c257 const char *hostname; local
268 hostname = NULL;
276 hostname = dp_opt_get_string(state->ipa_options, IPA_HOSTNAME);
281 state->sdap_ctx->opts, hostname,
H A Dipa_common.c52 char hostname[HOST_NAME_MAX + 1]; local
82 ret = gethostname(hostname, HOST_NAME_MAX);
89 hostname[HOST_NAME_MAX] = '\0';
90 DEBUG(SSSDBG_TRACE_ALL, "Setting ipa_hostname to [%s].\n", hostname);
91 ret = dp_opt_set_string(opts->basic, IPA_HOSTNAME, hostname);
1233 const char *hostname; local
1246 ret = sysdb_attrs_get_string(hosts[i], SYSDB_FQDN, &hostname);
1252 if (strcasecmp(hostname, ipa_hostname) == 0) {
H A Dipa_init.c243 const char *hostname; local
259 hostname = dp_opt_get_string(ipa_options->basic, IPA_HOSTNAME);
280 ret = be_fo_set_dns_srv_lookup_plugin(be_ctx, hostname);
313 const char *hostname; local
328 hostname = dp_opt_get_string(ipa_options->basic, IPA_HOSTNAME);
335 hostname, ipa_domain);
345 ret = be_fo_set_dns_srv_lookup_plugin(be_ctx, hostname);
H A Dipa_session.c239 const char *hostname; local
242 hostname = dp_opt_get_string(state->ipa_options, IPA_HOSTNAME);
248 hostname,
470 const char *hostname,
559 const char *hostname; local
586 hostname = dp_opt_get_string(state->session_ctx->ipa_options, IPA_HOSTNAME);
591 hostname,
702 const char *hostname,
763 hostname,
697 ipa_pam_session_handler_save_deskprofile_rules( struct be_ctx *be_ctx, struct sss_domain_info *domain, const char *username, const char *user_dir, const char *hostname, uid_t uid, gid_t gid) argument
H A Dipa_deskprofile_rules_util.c513 const char *hostname,
541 host_dn = sysdb_custom_dn(tmp_ctx, domain, hostname,
604 hostname, base_dn);
623 rule_name, hostname, domain->name);
686 const char *hostname,
844 base_dn, hostname,
507 ipa_deskprofile_rule_check_memberhost(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, struct sysdb_attrs *rule, const char *rule_name, const char *rule_prio, const char *base_dn, const char *hostname, char **_host_prio, char **_hostgroup_prio) argument
681 ipa_deskprofile_rules_save_rule_to_disk( TALLOC_CTX *mem_ctx, uint16_t priority, struct sysdb_attrs *rule, struct sss_domain_info *domain, const char *hostname, const char *username, uid_t uid, gid_t gid) argument
H A Dipa_subdomains_server.c153 id_ctx->server_mode->hostname,
193 id_ctx->server_mode->hostname,
313 id_ctx->server_mode->hostname,
710 const char *hostname; local
733 hostname = dp_opt_get_string(state->id_ctx->ipa_options->basic,
746 hostname,
1116 char *hostname; local
1147 hostname = dp_opt_get_string(id_ctx->ipa_options->basic, IPA_HOSTNAME);
1148 if (hostname == NULL) {
1158 id_ctx->server_mode->hostname
[all...]
H A Dipa_sudo_async.c957 const char *hostname; local
982 hostname = dp_opt_get_string(state->ipa_opts->basic, IPA_HOSTNAME);
985 state->sh, state->sdap_opts, hostname,
/sssd-io/src/resolv/
H A Dasync_resolv_utils.c32 char *hostname; member in struct:resolv_get_domain_state
41 const char *hostname,
58 if (hostname == NULL) {
59 /* use system hostname */
68 hostname = system_hostname;
72 state->hostname = talloc_strdup(state, hostname);
73 if (state->hostname == NULL) {
78 DEBUG(SSSDBG_TRACE_LIBS, "Host name is: %s\n", state->hostname);
80 subreq = resolv_gethostbyname_send(state, ev, resolv_ctx, state->hostname,
38 resolv_get_domain_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resolv_ctx *resolv_ctx, const char *hostname, enum host_database *host_dbs, enum restrict_family family_order) argument
[all...]
/sssd-io/src/tests/
H A Dsysdb_ssh-tests.c162 const char *hostname; member in struct:test_data
175 data->hostname,
187 ret = sysdb_delete_ssh_host(data->ctx->domain, data->hostname);
196 ret = sysdb_get_ssh_host(data->ctx, data->ctx->domain, data->hostname,
223 data->hostname = talloc_strdup(test_ctx, TEST_HOSTNAME);
224 if (data->hostname == NULL) {
264 data->hostname = talloc_strdup(test_ctx, TEST_HOSTNAME);
265 if (data->hostname == NULL) {
299 data->hostname = talloc_strdup(test_ctx, "nonexistent_host");
300 if (data->hostname
[all...]
H A Dresolv-tests.c100 const char *hostname, const char *address)
111 rhostent->name = talloc_strdup(rhostent, hostname);
302 const char *hostname = "127.0.0.1"; local
312 test_ctx->resolv, hostname, IPV4_ONLY,
372 const char *hostname = "localhost.localdomain"; local
382 test_ctx->resolv, hostname, IPV4_FIRST,
429 const char *hostname = "sssd.foo"; local
440 test_ctx->resolv, hostname, IPV4_FIRST,
535 const char *hostname = "redhat.com"; local
547 test_ctx->resolv, hostname, IPV4_FIRS
99 test_create_rhostent(TALLOC_CTX *mem_ctx, const char *hostname, const char *address) argument
640 const char *hostname = "redhat.com"; local
850 const char *hostname = "redhat.com"; local
929 const char *hostname = "redhat.com"; local
[all...]
/sssd-io/src/providers/ad/
H A Dad_init.c179 const char *hostname; local
185 hostname = dp_opt_get_string(ad_options->basic, AD_HOSTNAME);
192 ret = be_fo_set_dns_srv_lookup_plugin(be_ctx, hostname);
204 hostname, ad_domain,
H A Dad_common.c274 const char *hostname,
291 ret = dp_opt_set_string(ad_options->basic, AD_HOSTNAME, hostname);
293 DEBUG(SSSDBG_OP_FAILURE, "Cannot set AD hostname\n");
315 const char *hostname,
330 ret = set_common_ad_trust_opts(ad_options, realm, subdom->name, hostname,
354 const char *hostname,
379 subdom->name, hostname, keytab);
422 char hostname[HOST_NAME_MAX + 1]; local
456 /* Set the machine's hostname to the local host name if it
461 gret = gethostname(hostname, HOST_NAME_MA
271 set_common_ad_trust_opts(struct ad_options *ad_options, const char *realm, const char *ad_domain, const char *hostname, const char *keytab) argument
309 ad_create_2way_trust_options(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, const char *conf_path, struct data_provider *dp, const char *realm, struct sss_domain_info *subdom, const char *hostname, const char *keytab) argument
349 ad_create_1way_trust_options(TALLOC_CTX *mem_ctx, struct confdb_ctx *cdb, const char *subdom_conf_path, struct data_provider *dp, struct sss_domain_info *subdom, const char *hostname, const char *keytab, const char *sasl_authid) argument
[all...]
H A Dad_srv.c483 const char *hostname; member in struct:ad_srv_plugin_ctx
495 const char *hostname,
512 ctx->hostname = talloc_strdup(ctx, hostname);
513 if (ctx->hostname == NULL) {
490 ad_srv_plugin_ctx_init(TALLOC_CTX *mem_ctx, struct be_ctx *be_ctx, struct be_resolv_ctx *be_res, enum host_database *host_dbs, struct sdap_options *opts, const char *hostname, const char *ad_domain, const char *ad_site_override) argument
/sssd-io/src/providers/
H A Dfail_over_srv.c440 char *hostname; member in struct:fo_resolve_srv_dns_ctx
467 const char *hostname,
481 ctx->hostname = talloc_strdup(ctx, hostname);
482 if (ctx->hostname == NULL) {
537 ctx->hostname, ctx->host_dbs,
463 fo_resolve_srv_dns_ctx_init(TALLOC_CTX *mem_ctx, struct resolv_ctx *resolv_ctx, enum restrict_family family_order, enum host_database *host_dbs, const char *hostname, const char *sssd_domain) argument
H A Ddata_provider_fo.c235 const char *hostname)
241 if (hostname == NULL) {
250 hostname = resolved_hostname;
255 default_host_dbs, hostname,
234 be_fo_set_dns_srv_lookup_plugin(struct be_ctx *be_ctx, const char *hostname) argument
/sssd-io/src/tests/cmocka/
H A Dtest_resolv_fake.c50 const char *hostname; member in struct:srv_rrdata
139 compressed_len = ns_name_compress(rr->hostname,
316 rr[0].hostname = "ldap.sssd.com";
322 rr[1].hostname = "ldap2.sssd.com";
H A Dtest_fo_srv.c182 const char *hostname,
328 mock_ares_reply(TALLOC_CTX *mem_ctx, const char *hostname, argument
338 s->host = talloc_strdup(s, hostname);
179 resolv_get_domain_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resolv_ctx *resolv_ctx, const char *hostname, enum host_database *host_dbs, enum restrict_family family_order) argument

Completed in 233 milliseconds

12