From 4aa841c5724f313435aeea1c0319e81bb0d14321 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 22 Mar 2010 22:10:29 +0100 Subject: Add userdel_cmd param Fixes: #231 --- src/python/pysss.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/python') 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, -- cgit