Lines Matching refs:samaccount
904 struct samu *samaccount;
906 samaccount = samu_new(NULL);
907 if (!samaccount) {
912 if (!pdb_getsampwnam(samaccount, username)) {
915 TALLOC_FREE(samaccount);
919 if (!NT_STATUS_IS_OK(pdb_delete_sam_account(samaccount))) {
921 TALLOC_FREE(samaccount);
925 TALLOC_FREE(samaccount);
935 struct samu *samaccount = NULL;
943 samaccount = samu_new(NULL);
944 if (!samaccount) {
950 name = talloc_asprintf(samaccount, "%s$", machinename);
955 if (!pdb_getsampwnam(samaccount, name)) {
959 TALLOC_FREE(samaccount);
962 if (!NT_STATUS_IS_OK(pdb_delete_sam_account(samaccount))) {
964 TALLOC_FREE(samaccount);
968 TALLOC_FREE(samaccount);