Lines Matching defs:acct
589 lsa_account_t acct;
592 bzero(&acct, sizeof (lsa_account_t));
595 lsa_account_xdr, &acct) != 0)
598 if (*acct.a_domain == '\0')
599 (void) snprintf(buf, MAXNAMELEN, "%s", acct.a_name);
600 else if (strchr(acct.a_domain, '.') != NULL)
601 (void) snprintf(buf, MAXNAMELEN, "%s@%s", acct.a_name,
602 acct.a_domain);
604 (void) snprintf(buf, MAXNAMELEN, "%s\\%s", acct.a_domain,
605 acct.a_name);
607 acct.a_status = lsa_lookup_name(buf, acct.a_sidtype, &ainfo);
608 if (acct.a_status == NT_STATUS_SUCCESS) {
609 acct.a_sidtype = ainfo.a_type;
610 smb_sid_tostr(ainfo.a_sid, acct.a_sid);
611 (void) strlcpy(acct.a_name, ainfo.a_name, MAXNAMELEN);
614 (void) strlcpy(acct.a_domain, dinfo.di_fqname,
617 (void) strlcpy(acct.a_domain, ainfo.a_domain,
622 arg->rbuf = smb_common_encode(&acct, lsa_account_xdr, &arg->rsize);
634 lsa_account_t acct;
637 bzero(&acct, sizeof (lsa_account_t));
640 lsa_account_xdr, &acct) != 0)
643 sid = smb_sid_fromstr(acct.a_sid);
644 acct.a_status = lsa_lookup_sid(sid, &ainfo);
647 if (acct.a_status == NT_STATUS_SUCCESS) {
648 acct.a_sidtype = ainfo.a_type;
649 smb_sid_tostr(ainfo.a_sid, acct.a_sid);
650 (void) strlcpy(acct.a_name, ainfo.a_name, MAXNAMELEN);
653 (void) strlcpy(acct.a_domain, dinfo.di_fqname,
656 (void) strlcpy(acct.a_domain, ainfo.a_domain,
662 arg->rbuf = smb_common_encode(&acct, lsa_account_xdr, &arg->rsize);