[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: attribute preferredDeliveryMethod is unuseable (ITS#3052)



I've committed a proper validation function for the
Delivery Method syntax to the HEAD branch.  Please test.

Kurt

At 02:33 PM 4/1/2004, hafre@debian.org wrote:
>Full_Name: Hans Freitag
>Version: 2.1.26
>OS: Linux 2.4 Debian
>URL: ftp://ftp.openldap.org/incoming/
>Submission from: (NULL) (62.143.2.31)
>
>
>When I try to set the preferredDeliveryMethod 
>attribute to "any" the GQ give responds with:
>
>Error modifying entry 'o=FOO,cn=Billing,dc=president,dc=eu,dc=org': Invalid
>syntax
>Additional error: (null)
>
>I found out that the ldapSyntaxes 1.3.6.1.4.1.1466.115.121.1.14 (Delivery
>Method) is not shown in GQ. It seems that every ldapSyntaxes without a Validate
>function has this problem. The following  quick hack solves the problem, but it
>is not a final solution:
>
>--- schema_init.c.orig  2004-04-02 00:27:27.000000000 +0200
>+++ schema_init.c       2004-04-01 23:56:19.000000000 +0200
>@@ -4379,7 +4379,7 @@
>        {"( 1.3.6.1.4.1.1466.115.121.1.13 DESC 'Data Quality' )",
>                0, NULL, NULL, NULL},
>        {"( 1.3.6.1.4.1.1466.115.121.1.14 DESC 'Delivery Method' )",
>-               0, NULL, NULL, NULL},
>+               0, printablesStringValidate, NULL, NULL},
>        {"( 1.3.6.1.4.1.1466.115.121.1.15 DESC 'Directory String' )",
>                0, UTF8StringValidate, UTF8StringNormalize, NULL},
>        {"( 1.3.6.1.4.1.1466.115.121.1.16 DESC 'DIT Content Rule Description'
>)",