Lines Matching defs:di

333 	smb_domain_t di;
345 smb_domain_set_basic_info(NT_BUILTIN_DOMAIN_SIDSTR, "BUILTIN", "", &di);
346 rc = smb_domain_add(SMB_DOMAIN_BUILTIN, &di);
373 smb_domain_add(smb_domain_type_t type, smb_domain_t *di)
377 if ((di == NULL) || (di->di_sid == NULL))
381 di->di_type = type;
382 res = smb_dcache_add(di);
393 * If the requested domain is found and given 'di' pointer is not NULL
396 * NULL for 'di' and just check the return value.
401 smb_domain_lookup_name(char *name, smb_domain_t *di)
419 if (di)
420 *di = *dcnode;
430 if (di)
431 *di = *dcnode;
446 * If the requested domain is found and given 'di' pointer is not NULL
449 * NULL for 'di' and just check the return value.
454 smb_domain_lookup_sid(smb_sid_t *sid, smb_domain_t *di)
472 if (di)
473 *di = *dcnode;
487 * If the requested domain is found and given 'di' pointer is not NULL
490 * NULL for 'di' and just check the return value.
495 smb_domain_lookup_type(smb_domain_type_t type, smb_domain_t *di)
507 if (di)
508 *di = *dcnode;
614 smb_domain_t *di)
617 di == NULL)
620 (void) strlcpy(di->di_sid, sid, SMB_SID_STRSZ);
621 (void) strlcpy(di->di_nbname, nb_domain, NETBIOS_NAME_SZ);
622 (void) smb_strupr(di->di_nbname);
623 (void) strlcpy(di->di_fqname, fq_domain, MAXHOSTNAMELEN);
624 di->di_binsid = NULL;
629 char *forest, char *guid, smb_domain_t *di)
631 if (di == NULL || forest == NULL || guid == NULL)
634 smb_domain_set_basic_info(sid, nb_domain, fq_domain, di);
635 (void) strlcpy(di->di_u.di_dns.ddi_forest, forest, MAXHOSTNAMELEN);
636 (void) strlcpy(di->di_u.di_dns.ddi_guid, guid,
643 smb_domain_t *di)
647 if (di == NULL)
650 di->di_type = SMB_DOMAIN_TRUSTED;
651 ti = &di->di_u.di_trust;
652 smb_domain_set_basic_info(sid, nb_domain, fq_domain, di);
746 smb_domain_t di;
758 smb_domain_set_basic_info(lsidstr, hostname, ad_domain, &di);
759 (void) smb_domain_add(SMB_DOMAIN_LOCAL, &di);
774 smb_domain_t di;
788 smb_domain_set_basic_info(sidstr, nb_domain, ad_domain, &di);
789 (void) smb_domain_add(SMB_DOMAIN_PRIMARY, &di);
820 smb_domain_t *di;
823 while ((di = list_head(&smb_dcache.dc_cache)) != NULL)
824 smb_dcache_remove(di);
921 smb_dcache_add(smb_domain_t *di)
929 *dcnode = *di;
945 smb_dcache_remove(smb_domain_t *di)
948 list_remove(&smb_dcache.dc_cache, di);
949 smb_sid_free(di->di_binsid);
950 free(di);