diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-10-10 09:35:39 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-10-12 16:51:27 +1100 |
commit | fa05abc8ffc82b1873b97d43118480b4eb9140d4 (patch) | |
tree | e4ab4a884a9dfedc44bc0a6ff9315af6b68de2dc /source4/lib | |
parent | d511d889a09dee93338d93fcef22625089ae110c (diff) | |
download | samba-fa05abc8ffc82b1873b97d43118480b4eb9140d4.tar.gz samba-fa05abc8ffc82b1873b97d43118480b4eb9140d4.tar.bz2 samba-fa05abc8ffc82b1873b97d43118480b4eb9140d4.zip |
Allow (and ignore) distinguishedName on special records
They are not stored, so we can ignore them (makes copying records much
easier)
Andrew Bartlett
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_tdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_tdb.c b/source4/lib/ldb/ldb_tdb/ldb_tdb.c index b7eec40e9a..4943f81df5 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_tdb.c +++ b/source4/lib/ldb/ldb_tdb/ldb_tdb.c @@ -179,6 +179,8 @@ static int ltdb_check_special_dn(struct ldb_module *module, /* we have @ATTRIBUTES, let's check attributes are fine */ /* should we check that we deny multivalued attributes ? */ for (i = 0; i < msg->num_elements; i++) { + if (ldb_attr_cmp(msg->elements[i].name, "distinguishedName") == 0) continue; + for (j = 0; j < msg->elements[i].num_values; j++) { if (ltdb_check_at_attributes_values(&msg->elements[i].values[j]) != 0) { ldb_set_errstring(ldb, "Invalid attribute value in an @ATTRIBUTES entry"); |