summaryrefslogtreecommitdiffstats
path: root/src/python/pysss.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-03-22 22:10:29 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-04-06 14:33:43 -0400
commit4aa841c5724f313435aeea1c0319e81bb0d14321 (patch)
treea8443c64d42b51954a130f3a38ca2750c48c0e2b /src/python/pysss.c
parent7acaaa6c6563cf3b8ab20bf6431898d20d735842 (diff)
downloadsssd-4aa841c5724f313435aeea1c0319e81bb0d14321.tar.gz
sssd-4aa841c5724f313435aeea1c0319e81bb0d14321.tar.xz
sssd-4aa841c5724f313435aeea1c0319e81bb0d14321.zip
Add userdel_cmd param
Fixes: #231
Diffstat (limited to 'src/python/pysss.c')
-rw-r--r--src/python/pysss.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/python/pysss.c b/src/python/pysss.c
index bc1cf6e70..7c84c21e4 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,