Lines Matching defs:domain
210 "smbd: unable to connect to domain controller\n");
235 "smbd: unknown domain controller level and domain level\n");
264 "Please rejoin domain %s\n", fqdn);
324 * \\hostname.domain\shareUNC
384 * 1) not in the specified domain
394 smb_ads_validate_cache_host(char *domain, char *srv)
399 if (smb_strcasecmp(smb_ads_cached_host->domain, domain, 0) != 0)
486 /* domain name */
544 /* domain name */
661 * The service location of _ldap._tcp.dc.msdcs.<ADS domain> is used to
662 * guarantee that Microsoft domain controllers are returned. Microsoft domain
669 * on repeating domain name label in the message. i.e hostname.
675 smb_ads_query_dns_server(char *domain, char *msdcs_svc_name)
690 len = res_nquerydomain(&res_state, msdcs_svc_name, domain,
848 * Finds an ADS host in a given domain.
862 * If this function is called during domain join, the specified kpasswd server
866 * domain: fully-qualified domain name.
875 smb_ads_find_host(char *domain, char *kpasswd_srv)
888 if (smb_ads_validate_cache_host(domain, kpasswd_srv)) {
911 hlist = smb_ads_query_dns_server(domain, site_service);
914 hlist = smb_ads_query_dns_server(domain,
947 hlist2 = smb_ads_query_dns_server(domain, site_service);
963 (void) strlcpy(host->domain, domain, sizeof (host->domain));
975 (void) strlcpy(smb_ads_cache_host_list->ah_domain, domain,
1025 * Obtain a list of cached AD servers for the specified domain.
1143 * Convert a domain name in dot notation to distinguished name format,
1215 smb_ads_update_cached_host(char *domain, char *srvname)
1237 (void) strlcpy(host->domain, domain, sizeof (host->domain));
1256 * This function should be called only if the system is already a domain member
1257 * or at the end of domain join process in order to update computer account
1260 * The KRB5_ENV_CCNAME environment variable is only set if the domain join
1261 * operation is in progress. When the system becomes a domain member, such
1266 * the domain join operation. Hence, smb_ads_open_{s,u}cred functions that
1270 * be modified to set the environment variable outside the domain join context.
1275 char domain[MAXHOSTNAMELEN];
1284 if (smb_getdomainname_ad(domain, MAXHOSTNAMELEN) != 0)
1287 if (smb_ads_acquire_tgt(domain) != 0)
1290 return (smb_ads_open(domain));
1297 * using the credentials of the specified user (For domain join only).
1300 * domain - fully-qualified domain name
1306 * the domain join operation. Hence, smb_ads_open_{s,u}cred functions that
1310 * used outside the domain join context and may be called simultaneously by
1314 smb_ads_open_ucred(const char *domain, const char *user, const char *password)
1326 principal = smb_ads_get_principal(domain, user);
1344 return (smb_ads_open((char *)domain));
1354 * realms and the realm for the AD domain is not set as default realm.
1357 smb_ads_acquire_tgt(const char *domain)
1366 princ = smb_ads_get_principal(domain, sam_acct);
1404 * Open an LDAP connection to a discovered AD server for the specified domain.
1416 * domain - fully-qualified domain name
1419 smb_ads_open(char *domain)
1430 ads_host = smb_ads_find_host(domain, NULL);
1464 ah->domain = strdup(domain);
1466 if (ah->domain == NULL) {
1473 * ah->domain is often used for generating service principal name.
1476 (void) smb_strlwr(ah->domain);
1477 ah->domain_dn = smb_ads_convert_domain(domain);
1535 free(ah->domain);
1596 * cn=<sharename>,<container RDNs>,<domain DN>
1598 * If the domain DN is not included in the container parameter,
1990 * If the system is in domain mode, the DC level is obtained using
1995 smb_ads_update_dsattr(const char *domain, const char *hostname, int port)
2000 rc = smb_ads_host_update_dsattr(domain, hostname, port);
2008 smb_ads_host_update_dsattr(const char *domain, const char *hostname, int port)
2014 if (smb_ads_acquire_tgt(domain) != 0)
2064 * Get the AD DS functional level for the DC, domain or forest.
2134 *dns_suffix == '\0' ? ah->domain : dns_suffix);
2147 * initiated the domain join process.
2316 * a successful domain join.
2441 * using credential of the user who initiated the domain join process.
2503 smb_ads_locate_trust_account(const char *domain, const char *user,
2511 if ((ah = smb_ads_open_ucred(domain, user, usr_passwd)) == NULL)
2599 * Clean up ccache files used during domain join.
2623 * initiates the domain join prior to setting machine password. The ticket
2682 if (smb_krb5_setpwd(ah->domain, ctx->c_account->m_passwd) != 0)
2741 if (smb_krb5_get_pn_set(&spn, flags, ah->domain) == 0)
2850 if (smb_krb5_kt_update_adjoin(ah->domain, kvno,
3024 * If it is set to empty string, locate any DCs in the specified domain.
3026 * fqdn - fully-qualified AD domain name
3050 (void) smb_ads_update_dsattr(hinfo->domain, hinfo->name, hinfo->port);
3060 smb_ads_get_principal(const char *domain, const char *user)
3065 if ((realm = smb_krb5_domain2realm(domain)) == NULL)