summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {