1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

ldb_tdb: Add better comments for duplicate attr values

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Garming Sam 2017-03-09 16:10:16 +13:00 committed by Andrew Bartlett
parent b562a90646
commit ee04f96b69

View File

@ -361,7 +361,7 @@ static int ltdb_add_internal(struct ldb_module *module,
if (ldb_msg_find_val(el, &el->values[j]) != &el->values[j]) {
ldb_asprintf_errstring(ldb,
"attribute '%s': value #%u on '%s' "
"provided more than once",
"provided more than once in ADD object",
el->name, j,
ldb_dn_get_linearized(msg->dn));
return LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS;
@ -820,7 +820,7 @@ int ltdb_modify_internal(struct ldb_module *module,
}
if (ldb_msg_find_val(el, &el->values[j]) != &el->values[j]) {
ldb_asprintf_errstring(ldb,
"attribute '%s': value #%u on '%s' provided more than once",
"attribute '%s': value #%u on '%s' provided more than once in ADD",
el->name, j, ldb_dn_get_linearized(msg2->dn));
ret = LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS;
goto done;
@ -875,7 +875,7 @@ int ltdb_modify_internal(struct ldb_module *module,
for (j=0; j<el->num_values; j++) {
if (ldb_msg_find_val(el, &el->values[j]) != &el->values[j]) {
ldb_asprintf_errstring(ldb,
"attribute '%s': value #%u on '%s' provided more than once",
"attribute '%s': value #%u on '%s' provided more than once in REPLACE",
el->name, j, ldb_dn_get_linearized(msg2->dn));
ret = LDB_ERR_ATTRIBUTE_OR_VALUE_EXISTS;
goto done;