summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-02-13 08:57:29 -0500
committerSimo Sorce <idra@samba.org>2009-02-13 08:58:07 -0500
commitb794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776 (patch)
treee592410484c6299a2339bb7cf58e1ea455a1752b
parentdf11c36b9354eccc6c4101e5a911a478ce1f52f8 (diff)
downloadsssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.tar.gz
sssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.tar.bz2
sssd-b794a3bae0ed6b8ce7e0762a36f0e58d8f8d8776.zip
Fix add member, remove one to many lines in the previous tidyup
-rw-r--r--server/db/sysdb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/db/sysdb.c b/server/db/sysdb.c
index 3d5b1fa9..86c4fa8e 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) {