diff options
Diffstat (limited to 'server/tools/sss_useradd.c')
-rw-r--r-- | server/tools/sss_useradd.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/server/tools/sss_useradd.c b/server/tools/sss_useradd.c index 78ded2ee..f573877f 100644 --- a/server/tools/sss_useradd.c +++ b/server/tools/sss_useradd.c @@ -456,7 +456,15 @@ int main(int argc, const char **argv) if (user_ctx->error) { ret = user_ctx->error; - DEBUG(0, ("Operation failed (%d)[%s]\n", ret, strerror(ret))); + switch (ret) { + case EEXIST: + DEBUG(0, ("The user %s already exists\n", user_ctx->username)); + break; + + default: + DEBUG(0, ("Operation failed (%d)[%s]\n", ret, strerror(ret))); + break; + } ret = EXIT_FAILURE; goto fini; } |