diff options
author | Simo Sorce <idra@samba.org> | 2005-09-15 23:10:07 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:11 -0500 |
commit | d8da5e4fb7534d2931a01bfc4b6f59bdca206c65 (patch) | |
tree | 49c2adff156206f2aaf55ab0bd50fc049d55a8c5 /source4/lib/ldb/tools | |
parent | 8bfcb31b0e01d42532db5837b1f0a070eb076bb1 (diff) | |
download | samba-d8da5e4fb7534d2931a01bfc4b6f59bdca206c65.tar.gz samba-d8da5e4fb7534d2931a01bfc4b6f59bdca206c65.tar.bz2 samba-d8da5e4fb7534d2931a01bfc4b6f59bdca206c65.zip |
r10251: some more work on ldb_sqlite3
I must say that writing a new module is a very good way
to find lot of subtle bugs laying in the code
We need more tests!
commit oLschema2ldif.c to keep it safe from data losses (rm -fr :-)
update test generic to reflect the fix made on comparsion functions
(This used to be commit 4357a2db5eadb15519ed93b957b2bad25ebf2a7d)
Diffstat (limited to 'source4/lib/ldb/tools')
-rw-r--r-- | source4/lib/ldb/tools/oLschema2ldif.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/source4/lib/ldb/tools/oLschema2ldif.c b/source4/lib/ldb/tools/oLschema2ldif.c index 0a88ba6b71..4e1607f314 100644 --- a/source4/lib/ldb/tools/oLschema2ldif.c +++ b/source4/lib/ldb/tools/oLschema2ldif.c @@ -58,6 +58,32 @@ #define SCHEMA_SYNTAX 12 #define SCHEMA_DESC 13 +struct syntax_map { + const char *Standard_OID; + const char *AD_OID; + const char *comment; +} syntax_map[] = { + { "1.3.6.1.4.1.1466.115.121.1.12", "2.5.5.1", "Object(DS-DN) == a DN" }, + { "1.3.6.1.4.1.1466.115.121.1.38", "2.5.5.2", "OID String" }, + { "1.2.840.113556.1.4.905", "2.5.5.4", "Case Insensitive String" }, + { "1.3.6.1.4.1.1466.115.121.1.44", "2.5.5.5", "Printable String" }, + { "1.3.6.1.4.1.1466.115.121.1.36", "2.5.5.6", "Numeric String" }, + { "1.2.840.113556.1.4.903", "2.5.5.7", "OctetString: Binary+DN" }, + { "1.3.6.1.4.1.1466.115.121.1.7", "2.5.5.8", "Boolean" }, + { "1.3.6.1.4.1.1466.115.121.1.27", "2.5.5.9", "Integer" }, + { "1.3.6.1.4.1.1466.115.121.1.40", "2.5.5.10", "Octet String" }, + { "1.3.6.1.4.1.1466.115.121.1.24", "2.5.5.11", "Generalized Time" }, + { "1.3.6.1.4.1.1466.115.121.1.53", "2.5.5.11", "UTC Time" }, + { "1.3.6.1.4.1.1466.115.121.1.15", "2.5.5.12", "Directory String" }, + { "1.3.6.1.4.1.1466.115.121.1.43", "2.5.5.13", "Presentation Address" }, + { "Not Found Yet", "2.5.5.14", "OctetString: String+DN" }, + { "1.2.840.113556.1.4.907", "2.5.5.15", "NT Security Descriptor" }, + { "1.2.840.113556.1.4.906", "2.5.5.16", "Interval" }, + { "1.3.6.1.4.1.1466.115.121.1.40", "2.5.5.17", "Octet String - Security Identifier (SID)" }, + { "1.3.6.1.4.1.1466.115.121.1.26", "2.5.5.5", "IA5 String" }, + { NULL, NULL } +}; + struct schema_conv { int count; |