From 3874331edb9a7bb0ff85104ffc4a5cc92bd87523 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 18 Nov 2010 22:13:10 +0100 Subject: s4:torture/ldb/ldb.c - add a small test for a DN with an escaped comma --- source4/torture/ldb/ldb.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4') diff --git a/source4/torture/ldb/ldb.c b/source4/torture/ldb/ldb.c index 8a5a3f309e..f5f09fae38 100644 --- a/source4/torture/ldb/ldb.c +++ b/source4/torture/ldb/ldb.c @@ -685,6 +685,12 @@ static bool torture_ldb_dn(struct torture_context *torture) "should have failed to validate a DN with 0xA in it"); } + /* Escaped comma */ + torture_assert(torture, + dn = ldb_dn_new(mem_ctx, ldb, "CN=A\\,comma,DC=SAMBA,DC=org"), + "Failed to create a DN with an escaped comma in it"); + + val = data_blob_const("CN=Zer\0,DC=SAMBA,DC=org", 23); torture_assert(torture, NULL == ldb_dn_from_ldb_val(mem_ctx, ldb, &val), -- cgit