• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/libsmb/

Lines Matching defs:domain

29  Is this our primary domain ?
33 static BOOL is_our_primary_domain(const char *domain)
37 if ((role == ROLE_DOMAIN_MEMBER) && strequal(lp_workgroup(), domain)) {
39 } else if (strequal(get_global_sam_name(), domain)) {
47 Find the name and IP address for a server in the realm/domain
50 static BOOL ads_dc_name(const char *domain,
59 if (!realm && strequal(domain, lp_workgroup())) {
67 ads = ads_init(realm, domain, NULL);
73 DEBUG(4,("ads_dc_name: domain=%s\n", domain));
97 namecache_delete(domain, 0x1C);
102 if (is_our_primary_domain(domain) && (ads->config.flags & ADS_KDC) && ads_closest_dc(ads)) {
103 /* We're going to use this KDC for this realm/domain.
108 domain,
141 static BOOL rpc_dc_name(const char *domain, fstring srv_name, struct in_addr *ip_out)
150 /* get a list of all domain controllers */
152 if (!NT_STATUS_IS_OK(get_sorted_dc_list(domain, NULL, &ip_list, &count,
154 DEBUG(3, ("Could not look up dc's for domain %s\n", domain));
164 if (name_status_find(domain, 0x1c, 0x20, ip_list[i].ip, srv_name)) {
165 result = check_negative_conn_cache( domain, srv_name );
180 /* We have the netbios name and IP address of a domain controller.
185 DEBUG(3, ("rpc_dc_name: Returning DC %s (%s) for domain %s\n", srv_name,
186 inet_ntoa(dc_ip), domain));
199 BOOL get_dc_name(const char *domain, const char *realm, fstring srv_name, struct in_addr *ip_out)
209 if ( strequal(lp_workgroup(), domain) || strequal(lp_realm(), realm) )
213 (for the local domain) */
216 ret = ads_dc_name(domain, realm, &dc_ip, srv_name);
219 if (!domain) {
226 ret = rpc_dc_name(domain, srv_name, &dc_ip);