summaryrefslogtreecommitdiff
path: root/source4/torture/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-11-13 19:31:40 +1100
committerAndrew Tridgell <tridge@samba.org>2009-11-13 19:32:47 +1100
commitc8884e1cf2f9fe08b464c34c25ce682ff3450b34 (patch)
treee710ba233d8d2a7a0a874d675d9467394c09de47 /source4/torture/ldb
parentdbae29de1c146d1c6d2e1e0a2a82593f85c8ba0d (diff)
downloadsamba-c8884e1cf2f9fe08b464c34c25ce682ff3450b34.tar.gz
s4-ldb: changed the DN checks for \n to warnings
a \n is sometimes allowed in AD (eg in deleted DNs). Until we know when is really is allowed, treat it as a warning only.
Diffstat (limited to 'source4/torture/ldb')
-rw-r--r--source4/torture/ldb/ldb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c
index f986372fe94..dbfd96c59b2 100644
--- a/source4/torture/ldb/ldb.c
+++ b/source4/torture/ldb/ldb.c
@@ -661,9 +661,11 @@ static bool torture_ldb_dn(struct torture_context *torture)
dn = ldb_dn_new(mem_ctx, ldb, "CN=New\nLine,DC=SAMBA,DC=org"),
"Failed to create a DN with 0xA in it");
- torture_assert(torture,
- ldb_dn_validate(dn) == false,
- "should have failed to validate a DN with 0xA in it");
+ /* this is a warning until we work out how the DEL: CNs work */
+ if (ldb_dn_validate(dn) != false) {
+ torture_warning(torture,
+ "should have failed to validate a DN with 0xA in it");
+ }
val = data_blob_const("CN=Zer\0,DC=SAMBA,DC=org", 23);
torture_assert(torture,