diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-18 22:13:10 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-11-19 12:07:06 +0100 |
commit | 3874331edb9a7bb0ff85104ffc4a5cc92bd87523 (patch) | |
tree | 359e4c63249e41ffffc45f140e16e2d4e4614eba /source4/torture/ldb | |
parent | 8b7f23d644f2c9a0e5eeffeb2f93786c54a43afe (diff) | |
download | samba-3874331edb9a7bb0ff85104ffc4a5cc92bd87523.tar.gz samba-3874331edb9a7bb0ff85104ffc4a5cc92bd87523.tar.bz2 samba-3874331edb9a7bb0ff85104ffc4a5cc92bd87523.zip |
s4:torture/ldb/ldb.c - add a small test for a DN with an escaped comma
Diffstat (limited to 'source4/torture/ldb')
-rw-r--r-- | source4/torture/ldb/ldb.c | 6 |
1 files changed, 6 insertions, 0 deletions
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), |