From 23600a657f84bbd71dca4dd77d65a1c6f4f4ff86 Mon Sep 17 00:00:00 2001 From: Daniel Gollub Date: Mon, 1 Sep 2014 19:37:53 +0000 Subject: sysdb: Write additional attrs in sysdb_add_user In the uid=0 case (to obtain new free id) only uidNumber and gidNumber attributes got written, but not the additonal provided attributes like alias or others. Reviewed-by: Jakub Hrozek --- src/db/sysdb_ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/db/sysdb_ops.c') diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 8a7feaefe..9a8d9fab5 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -1350,7 +1350,8 @@ int sysdb_add_user(struct sss_domain_info *domain, } ret = sysdb_set_user_attr(domain, name, id_attrs, SYSDB_MOD_REP); - goto done; + /* continue on success, to commit additional attrs */ + if (ret) goto done; } if (!attrs) { -- cgit