From: Kurt Zeilenga Date: Tue, 5 Sep 2000 20:10:39 +0000 (+0000) Subject: Use DN syntax routines for Name and Optional OID syntax. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2099 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f2bcf33e231cd58ee173689f32afb7469bc27efb;p=openldap Use DN syntax routines for Name and Optional OID syntax. This is quite bogus but meets most users needs. Should be replaced with real Name and Optional OID routines. --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index cac0f0b0a3..1e5bac4ae2 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -19,6 +19,7 @@ /* recycled validatation routines */ #define berValidate blobValidate +#define nameUIDValidate dnValidate /* unimplemented validators */ #define bitStringValidate NULL @@ -28,6 +29,7 @@ #define phoneNumberNormalize numericStringNormalize #define telexNumberNormalize numericStringNormalize #define integerNormalize numericStringNormalize +#define nameUIDNormalize dnNormalize /* unimplemented normalizers */ #define bitStringNormalize NULL @@ -36,6 +38,9 @@ #define dnPretty NULL #define integerPretty NULL +/* recyclied pretters */ +#define nameUIDPretty dnPretty + /* recycled matching routines */ #define numericStringMatch caseIgnoreMatch #define objectIdentifierMatch numericStringMatch @@ -3544,7 +3549,7 @@ struct syntax_defs_rec syntax_defs[] = { {"( 1.3.6.1.4.1.1466.115.121.1.33 DESC 'MHS OR Address' )", 0, NULL, NULL, NULL}, {"( 1.3.6.1.4.1.1466.115.121.1.34 DESC 'Name And Optional UID' )", - 0, NULL, NULL, NULL}, + 0, nameUIDValidate, nameUIDNormalize, nameUIDPretty}, {"( 1.3.6.1.4.1.1466.115.121.1.35 DESC 'Name Form Description' )", 0, NULL, NULL, NULL}, {"( 1.3.6.1.4.1.1466.115.121.1.36 DESC 'Numeric String' )",