diff options
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_ops.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 91fa21e9..33abd06b 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1568,7 +1568,14 @@ int sysdb_store_user(struct sysdb_ctx *sysdb, ret = sysdb_add_user(sysdb, name, uid, gid, gecos, homedir, shell, attrs, cache_timeout, now); } - goto done; + + /* Handle the result of sysdb_add_user */ + if (ret == EOK) { + goto done; + } else { + DEBUG(SSSDBG_OP_FAILURE, ("Could not add user\n")); + goto fail; + } } /* the user exists, let's just replace attributes when set */ |