mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
r18875: The comment field can be empty
(This used to be commit 6d5d7bf4bb
)
This commit is contained in:
parent
323b724ce9
commit
6f3c6a46f9
@ -149,8 +149,12 @@ 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, "ntName", map->nt_name) != 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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user