6728
6728
struct userPwdChangeFailureInformation *object = (struct userPwdChangeFailureInformation *)py_talloc_get_ptr(obj);
6729
6729
PyObject *py_filterModuleName;
6730
if (object->filterModuleName == NULL) {
6731
py_filterModuleName = Py_None;
6732
Py_INCREF(py_filterModuleName);
6734
if (object->filterModuleName == NULL) {
6735
py_filterModuleName = Py_None;
6736
Py_INCREF(py_filterModuleName);
6738
py_filterModuleName = PyUnicode_Decode(object->filterModuleName, strlen(object->filterModuleName), "utf-8", "ignore");
6730
py_filterModuleName = py_talloc_reference_ex(lsa_String_Type, py_talloc_get_mem_ctx(obj), &object->filterModuleName);
6741
6731
return py_filterModuleName;
6744
6734
static int py_userPwdChangeFailureInformation_set_filterModuleName(PyObject *py_obj, PyObject *value, void *closure)
6746
6736
struct userPwdChangeFailureInformation *object = (struct userPwdChangeFailureInformation *)py_talloc_get_ptr(py_obj);
6747
if (value == Py_None) {
6748
object->filterModuleName = NULL;
6750
object->filterModuleName = NULL;
6751
if (PyUnicode_Check(value)) {
6752
object->filterModuleName = PyString_AS_STRING(PyUnicode_AsEncodedString(value, "utf-8", "ignore"));
6753
} else if (PyString_Check(value)) {
6754
object->filterModuleName = PyString_AS_STRING(value);
6756
PyErr_Format(PyExc_TypeError, "Expected string or unicode object, got %s", Py_TYPE(value)->tp_name);
6737
PY_CHECK_TYPE(lsa_String_Type, value, return -1;);
6738
if (talloc_reference(py_talloc_get_mem_ctx(py_obj), py_talloc_get_mem_ctx(value)) == NULL) {
6742
object->filterModuleName = *(struct lsa_String *)py_talloc_get_ptr(value);