1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

r9918: Fix two copy-n-paste bugs that were preventing the modification

of special DN's when the rdn_name or timestamps modules were in use.
This commit is contained in:
Jelmer Vernooij 2005-09-01 21:32:43 +00:00 committed by Gerald (Jerry) Carter
parent 8ff1358f40
commit c61efb2ff8
2 changed files with 3 additions and 3 deletions

View File

@ -159,12 +159,12 @@ static int rdn_name_modify_record(struct ldb_module *module, const struct ldb_me
/* do not manipulate our control entries */
if (ldb_dn_is_special(msg->dn)) {
return ldb_next_add_record(module, msg);
return ldb_next_modify_record(module, msg);
}
/* Perhaps someone above us knows better */
if ((attribute = rdn_name_find_attribute(msg, "name")) != NULL ) {
return ldb_next_add_record(module, msg);
return ldb_next_modify_record(module, msg);
}
msg2 = talloc(module, struct ldb_message);

View File

@ -162,7 +162,7 @@ static int timestamps_modify_record(struct ldb_module *module, const struct ldb_
/* do not manipulate our control entries */
if (ldb_dn_is_special(msg->dn)) {
return ldb_next_add_record(module, msg);
return ldb_next_modify_record(module, msg);
}
timeval = time(NULL);