s4/schema(tort): Add test for Object(OR-Name) syntax
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>
Sun, 22 Nov 2009 12:46:09 +0000 (14:46 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 23 Nov 2009 13:15:05 +0000 (14:15 +0100)
source4/dsdb/schema/tests/schema_syntax.c

index f5194a5..c356741 100644 (file)
@@ -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);