diff options
author | Simo Sorce <idra@samba.org> | 2009-02-13 08:57:29 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-02-13 08:58:07 -0500 |
commit | b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776 (patch) | |
tree | e592410484c6299a2339bb7cf58e1ea455a1752b /server | |
parent | df11c36b9354eccc6c4101e5a911a478ce1f52f8 (diff) | |
download | sssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.tar.gz sssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.tar.xz sssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.zip |
Fix add member, remove one to many lines in the previous tidyup
Diffstat (limited to 'server')
-rw-r--r-- | server/db/sysdb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c index 3d5b1fa9f..86c4fa8e2 100644 --- a/server/db/sysdb.c +++ b/server/db/sysdb.c @@ -752,6 +752,12 @@ int sysdb_add_group_member(TALLOC_CTX *mem_ctx, goto done; } msg->dn = group_dn; + lret = ldb_msg_add_empty(msg, SYSDB_GR_MEMBER, + LDB_FLAG_MOD_ADD, NULL); + if (lret != LDB_SUCCESS) { + ret = errno; + goto done; + } lret = ldb_msg_add_fmt(msg, SYSDB_GR_MEMBER, "%s", ldb_dn_get_linearized(member_dn)); if (lret != LDB_SUCCESS) { |