Lines Matching defs:host

381  * The cached ADS host is no longer valid if one of the following criteria
385 * 2) not the sought host (if specified)
391 * Return B_TRUE if the cache host is still valid. Otherwise, return B_FALSE.
416 * Returns true, if the sought host name matches the input host (host) name.
417 * The sought host is expected to be in Fully Qualified Domain Name (FQDN)
421 smb_ads_is_sought_host(smb_ads_host_info_t *host, char *sought_host_name)
423 if ((host == NULL) || (sought_host_name == NULL))
426 if (smb_strcasecmp(host->name, sought_host_name, 0))
574 * find the host in the list of DC records from
575 * the answer section, that matches the host in the
671 * Upon successful completion, host list of ADS server(s) is returned. A host
750 * Check additional section to get IP address of ADS host.
788 * This method gets the IP address by doing a host name lookup.
820 * Checks the IP address to see if it is zero. If so, then do a host
848 * Finds an ADS host in a given domain.
850 * If the cached host is valid, it will be used. Otherwise, a DC will
870 * A copy of the cached host info is returned. The caller is responsible
880 smb_ads_host_info_t *hlistp = NULL, *host = NULL;
889 host = smb_ads_dup_host_info(smb_ads_cached_host);
891 return (host);
932 host = found_kpasswd_srv;
937 host = found_pdc;
959 host = smb_ads_select_dc(hlist);
962 if (host) {
963 (void) strlcpy(host->domain, domain, sizeof (host->domain));
966 smb_ads_cached_host = smb_ads_dup_host_info(host);
967 host = smb_ads_dup_host_info(smb_ads_cached_host);
978 return (host);
1205 * The cached AD host will be set to the specified server.
1218 smb_ads_host_info_t *host = NULL, *listp = NULL;
1226 host = smb_ads_dup_host_info(listp);
1234 if (host == NULL)
1237 (void) strlcpy(host->domain, domain, sizeof (host->domain));
1238 (void) smb_ads_anon_update_dsattr(host->name, host->port);
1244 smb_ads_cached_host = host;
1880 * to use host ip addr for UNC.
2861 * Returns B_TRUE if the given host's IP address matches the preferred DC's
2865 smb_ads_match_pdc(smb_ads_host_info_t *host)
2870 if (!host)
2874 if (smb_inet_equal(&host->ipaddr, &pdc))
2884 * responds to ldap ping and is in the same subnet as the host.
2950 * Comparision function for sorting host entries (SRV records of DC) via qsort.
2989 * A reference to the host entry from input host list is returned.