summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2009-11-22 14:46:09 +0200
committerStefan Metzmacher <metze@samba.org>2009-11-23 14:15:05 +0100
commitd03d15d0cb9003fa92be5d6d8dfb5fb652a354ae (patch)
treea9c0441d6fbc1cd4173a074f931fd068957e1d1f /source4/dsdb
parentaa238ff6ea64b50027542563418d27fab2c3556c (diff)
downloadsamba-d03d15d0cb9003fa92be5d6d8dfb5fb652a354ae.tar.gz
samba-d03d15d0cb9003fa92be5d6d8dfb5fb652a354ae.tar.bz2
samba-d03d15d0cb9003fa92be5d6d8dfb5fb652a354ae.zip
s4/schema(tort): Add test for Object(OR-Name) syntax
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/schema/tests/schema_syntax.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/dsdb/schema/tests/schema_syntax.c b/source4/dsdb/schema/tests/schema_syntax.c
index f5194a5f50..c356741abb 100644
--- a/source4/dsdb/schema/tests/schema_syntax.c
+++ b/source4/dsdb/schema/tests/schema_syntax.c
@@ -105,6 +105,13 @@ static bool torture_dsdb_drs_DN(struct torture_context *torture)
return torture_test_syntax(torture, LDB_SYNTAX_DN, "lastKnownParent", ldb_str, drs_str);
}
+static bool torture_dsdb_drs_OR_Name(struct torture_context *torture)
+{
+ const char *ldb_str = "<GUID=23cc7d16-3da0-4f3a-9921-0ad60a99230f>;<SID=S-1-5-21-3427639452-1671929926-2759570404-500>;CN=Administrator,CN=Users,DC=kma-exch,DC=devel";
+ const char *drs_str = "960000001C000000167DCC23A03D3A4F99210AD60A99230F0105000000000005150000009CA04DCC46A0A763E4B37BA4F40100002E00000043004E003D00410064006D0069006E006900730074007200610074006F0072002C0043004E003D00550073006500720073002C00440043003D006B006D0061002D0065007800630068002C00440043003D0064006500760065006C000000000004000000";
+ return torture_test_syntax(torture, DSDB_SYNTAX_OR_NAME, "authOrig", ldb_str, drs_str);
+}
+
static bool torture_dsdb_drs_INT32(struct torture_context *torture)
{
const char *ldb_str = "532480";
@@ -150,6 +157,7 @@ struct torture_suite *torture_dsdb_syntax(TALLOC_CTX *mem_ctx)
torture_suite_add_simple_test(suite, "DN-BINARY", torture_dsdb_drs_DN_BINARY);
torture_suite_add_simple_test(suite, "DN", torture_dsdb_drs_DN);
+ torture_suite_add_simple_test(suite, "OR-Name", torture_dsdb_drs_OR_Name);
torture_suite_add_simple_test(suite, "INT32", torture_dsdb_drs_INT32);
torture_suite_add_simple_test(suite, "INT64", torture_dsdb_drs_INT64);
torture_suite_add_simple_test(suite, "NTTIME", torture_dsdb_drs_NTTIME);