sss_userdel.c revision 83bf46f4066e3d5e838a32357c201de9bd6ecdfd
5214cf3742dc626a7efc5ec851db09bf0ff1f579Christian Maeder Copyright (C) Jakub Hrozek <jhrozek@redhat.com> 2009
b96b500ba4430269d97a08f07de87838278e9c5dChristian Maeder This program is free software; you can redistribute it and/or modify
5214cf3742dc626a7efc5ec851db09bf0ff1f579Christian Maeder it under the terms of the GNU General Public License as published by
5214cf3742dc626a7efc5ec851db09bf0ff1f579Christian Maeder the Free Software Foundation; either version 3 of the License, or
5214cf3742dc626a7efc5ec851db09bf0ff1f579Christian Maeder (at your option) any later version.
along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <nss.h>
#include <stdio.h>
#include <stdlib.h>
#include <talloc.h>
#include <popt.h>
#include "util/find_uid.h"
#include "tools/tools_util.h"
#include "tools/sss_sync_ops.h"
#ifndef KILL_CMD
#ifndef KILL_CMD_USER_FLAG
#ifndef KILL_CMD_SIGNAL_FLAG
#ifndef KILL_CMD_SIGNAL
int ret;
return ret;
int ret;
int status;
return ret;
errno = 0;
if (pid == 0) {
(char *) NULL);
return ret;
return errno;
return EOK;
int pc_remove = 0;
int pc_force = 0;
int pc_kick = 0;
goto fini;
switch (ret) {
goto fini;
goto fini;
goto fini;
goto done;
goto fini;
if (pc_kick) {
goto done;
goto done;
goto fini;
if (!pc_kick) {
switch(ret) {
case ENOENT:
case EOK:
case ENOSYS:
goto fini;
pc_force);
goto fini;
done:
if (ret) {
switch (ret) {
case ENOENT:
goto fini;
fini: