Lines Matching defs:acct
39 idmap_lsa_xlate_sid_type(const lsa_account_t *acct, idmap_id_type *ret_type)
41 switch (acct->a_sidtype) {
60 acct->a_sidtype, acct->a_name, acct->a_domain);
75 lsa_account_t acct;
80 (void) memset(&acct, 0, sizeof (acct));
86 rc = smb_lookup_sid(sid, &acct);
97 if (acct.a_status == NT_STATUS_NONE_MAPPED) {
101 if (acct.a_status != NT_STATUS_SUCCESS) {
104 sid, acct.a_status);
110 ret = idmap_lsa_xlate_sid_type(&acct, ret_type);
114 *ret_name = strdup(acct.a_name);
120 *ret_domain = strdup(acct.a_domain);
149 lsa_account_t acct;
154 (void) memset(&acct, 0, sizeof (acct));
170 rc = smb_lookup_name(namedom, SidTypeUnknown, &acct);
180 if (acct.a_status == NT_STATUS_NONE_MAPPED) {
184 if (acct.a_status != NT_STATUS_SUCCESS) {
187 namedom, acct.a_status);
193 rc = smb_sid_splitstr(acct.a_sid, ret_rid);
195 *ret_sidprefix = strdup(acct.a_sid);
201 ret = idmap_lsa_xlate_sid_type(&acct, ret_type);
206 *ret_name = strdup(acct.a_name);
214 *ret_domain = strdup(acct.a_domain);