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

Re: No validator for syntax



At 02:25 AM 9/5/00 -0700, you wrote:
Le Mon, 04 September 2000, "Kurt D. Zeilenga" a écrit :
>> At 02:26 PM 9/4/00 +0000, Gwenael Treguier wrote:
>> >  ldap_add ... no validator for syntax.
>>
>> This means that you have attempted to add a value of a
>> syntax which the server is unable to validate.
>>
I have modified my LDIF, and it seems that the problem comes from entries
with "uniqueMember" attributes (ie, Group). When I have suppressed these
attributes, it complains that Group must have uniqueMember...

When I encountered this problem, I was able (with the help of this list) to track it back to a lack of validations in the schema_init.c source code. It seems that anything there which is missing an appropriate validation function will not properly function. To fix this, I made the following modifications against the code. Please note that this was submitted in the bug system, and Kurt replied that he purposely did not want to do this (use the DN validation for uniqueMember). Your mileage may vary, but it appears to be working well for us,


Tony

*** schema_init.c       Mon Sep  4 07:19:31 2000
--- schema_init.c.old   Tue Sep  5 07:20:23 2000
***************
*** 3544,3550 ****
        {"( 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, dnValidate, dnNormalize, dnPretty},
        {"( 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' )",
--- 3544,3550 ----
        {"( 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},
        {"( 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' )",

******************************************************************************
* Anthony Brock                                         abrock@georgefox.edu *
* Director of Network Services                         George Fox University *
******************************************************************************