TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_username(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_domain(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_nt_username(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_fullname(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_homedir(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_dir_drive(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_logon_script(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_profile_path(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_acct_desc(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_workstations(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_comment(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
struct samu *sam_acct = (struct samu *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (!pdb_set_munged_dial(sam_acct, PyStr_AsString(value), PDB_CHANGED)) {
talloc_free(frame);
return -1;
TALLOC_CTX *frame = talloc_stackframe();
GROUP_MAP *group_map = (GROUP_MAP *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (value == Py_None) {
fstrcpy(group_map->nt_name, NULL);
} else {
TALLOC_CTX *frame = talloc_stackframe();
GROUP_MAP *group_map = (GROUP_MAP *)pytalloc_get_ptr(obj);
- PY_CHECK_TYPE(&PyStr_Type, value, return -1;);
+ PY_CHECK_TYPE(&PyUnicode_Type, value, return -1;);
if (value == Py_None) {
fstrcpy(group_map->comment, NULL);
} else {