diff options
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 5d0748740..5e6698010 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1071,6 +1071,14 @@ int sysdb_add_user(struct sysdb_ctx *sysdb, goto done; } + /* If we're not enumerating, previous getgr{nam,gid} calls might + * have stored ghost users into the cache, so we need to link them + * with the newly-created user entry */ + if (domain->enumerate == true) { + ret = EOK; + goto done; + } + /* We need to find all groups that contain this object as a ghost user * and replace the ghost user by actual member record in direct parents. * Note that this object can be referred to either by its name or any |