diff options
-rw-r--r-- | source3/groupdb/mapping_ldb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/groupdb/mapping_ldb.c b/source3/groupdb/mapping_ldb.c index c6ff6ca2af..fd59e0f438 100644 --- a/source3/groupdb/mapping_ldb.c +++ b/source3/groupdb/mapping_ldb.c @@ -149,15 +149,11 @@ static struct ldb_dn *mapping_dn(TALLOC_CTX *mem_ctx, const DOM_SID *sid) sid_to_string(string_sid, &map->sid)) != LDB_SUCCESS || ldb_msg_add_fmt(msg, "gidNumber", "%u", (unsigned)map->gid) != LDB_SUCCESS || ldb_msg_add_fmt(msg, "sidNameUse", "%u", (unsigned)map->sid_name_use) != LDB_SUCCESS || + ldb_msg_add_string(msg, "comment", map->comment) != LDB_SUCCESS || ldb_msg_add_string(msg, "ntName", map->nt_name) != LDB_SUCCESS) { goto failed; } - if ((map->comment[0] != '\0') && - (ldb_msg_add_string(msg, "ntName", map->nt_name) != LDB_SUCCESS)) { - goto failed; - } - ret = ldb_add(ldb, msg); /* if it exists we update it. This is a hangover from the semantics the |