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

Re: telephoneNumber Syntax...

> --On Tuesday, April 20, 2004 11:20 PM +0200 Pierangelo Masarati
> <ando@sys-net.it> wrote:
>>> Hi!
>>>    I'm using Openldap 2.1.29 under Linux and I'm developing a little
>>> C program with libldap. My problem is, doing a ldap_modify_s(), every
>>> time I get an "Invalid Syntax" for the attribute telephoneNumber.
>>>    Anybody knows the right syntax for telephoneNumber attribute ??
>>> Any ideas ?
>> Honestly, I don't see any reason for failure.  Slapd is pretty liberal
>> on telephone numbers; all it does is remove spaces and '-' at
>> normalization, and complain if the resulting value is empty (i.e.
>> equal to "", a berval of zero length).  This behavior didn't change
>> from 2.1 to 2.2.
> It would probably help if the problem telephonenumber was supplied.
> I've found OL to be quite picky about telephone numbers, especially when
>  extensions are also used with them.  We had to build a whole process
> around  cleaning up telephone numbers for OL.  This is not a bad thing,
> as it is  simply getting you closer to being RFC compliant.  I have a
> whole list of  things that cannot appear in telephoneNumber in OL
> somewhere, I can dig it  out if that is wanted.

I think the problems you might have had are related to the fact that 2.1
used IA5 match rules, while 2.2 uses octetString match; normalization
simply strips whitespace and '-'.  So all your problems with 2.1 probably
disappeared with 2.2.


Pierangelo Masarati