#include "python/py_common.h"
#include "python/py_conv.h"
static struct pyconv py_passwd[] = {
{ "pw_name", PY_STRING, offsetof(struct winbindd_response, data.pw.pw_name) },
{ "pw_passwd", PY_STRING, offsetof(struct winbindd_response, data.pw.pw_passwd) },
{ "pw_uid", PY_UID, offsetof(struct winbindd_response, data.pw.pw_uid) },
{ "pw_guid", PY_GID, offsetof(struct winbindd_response, data.pw.pw_gid) },
{ "pw_gecos", PY_STRING, offsetof(struct winbindd_response, data.pw.pw_gecos) },
{ "pw_dir", PY_STRING, offsetof(struct winbindd_response, data.pw.pw_dir) },
{ "pw_shell", PY_STRING, offsetof(struct winbindd_response, data.pw.pw_shell) },
{ NULL}
};
BOOL py_from_winbind_passwd(PyObject **dict, struct winbindd_response *response)
{
*dict = from_struct(response, py_passwd);
return True;
}