diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-03-22 22:10:29 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-06 14:33:43 -0400 |
commit | 4aa841c5724f313435aeea1c0319e81bb0d14321 (patch) | |
tree | a8443c64d42b51954a130f3a38ca2750c48c0e2b /src/python | |
parent | 7acaaa6c6563cf3b8ab20bf6431898d20d735842 (diff) | |
download | sssd-4aa841c5724f313435aeea1c0319e81bb0d14321.tar.gz sssd-4aa841c5724f313435aeea1c0319e81bb0d14321.tar.bz2 sssd-4aa841c5724f313435aeea1c0319e81bb0d14321.zip |
Add userdel_cmd param
Fixes: #231
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/pysss.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c index bc1cf6e7..7c84c21e 100644 --- a/src/python/pysss.c +++ b/src/python/pysss.c @@ -366,6 +366,12 @@ static PyObject *py_sss_userdel(PySssLocalObject *self, goto fail; } + ret = run_userdel_cmd(tctx); + if (ret != EOK) { + PyErr_SetSssError(ret); + goto fail; + } + if (tctx->octx->remove_homedir) { ret = sysdb_getpwnam_sync(tctx, tctx->ev, |