Lines Matching refs:sam_account
299 struct samu *sam_account=NULL;
310 if ( !(sam_account = samu_new(mem_ctx)) ) {
314 nt_ret = smb_create_user(sam_account, r->acct_flags, account, &passwd);
326 if (!pdb_getsampwsid(sam_account, &user_sid)) {
327 sam_account_from_delta(sam_account, r);
330 pdb_get_username(sam_account)));
331 if (!NT_STATUS_IS_OK(pdb_add_sam_account(sam_account))) {
337 sam_account_from_delta(sam_account, r);
340 pdb_get_username(sam_account)));
341 if (!NT_STATUS_IS_OK(pdb_update_sam_account(sam_account))) {
344 TALLOC_FREE(sam_account);
349 if (pdb_get_group_sid(sam_account) == NULL) {
353 group_sid = *pdb_get_group_sid(sam_account);
357 pdb_get_username(sam_account)));
362 (unsigned long)map.gid, pdb_get_username(sam_account), sid_string_tos(&group_sid)));
364 smb_set_primary_group(grp->gr_name, pdb_get_username(sam_account));
371 pdb_get_username(sam_account)));
375 TALLOC_FREE(sam_account);