Hi,

On Friday 14 January 2005 16:28, Michael Johnson wrote:
> I'm trying to use the add function:
>
> $ldap->add($new_dn,
>   attr=>['objectclass' => ['top','person',
>                                    'organizationalPerson',
>                                           'inetOrgPerson',
> 'telephonenumber' => "$phone",
>     .... #OTHER ATTRIBUTES
>                                      ]
>                               );
> The telephoneNumber attribute fails with an invalid syntax error. All
> phone numbers are entered like this: (XXX)XXX-XXXX

perl-ldap does not check the syntax of thevtelephonenumber attribute.
But the LDAP server you connecto to does.

Some servers are stricter in syntax checking than others.
Here are some tips:
- make suer that there are no leading or trailing spaces or tabs
- try to replace the braces by spaces (ehm, not the opening one ;-)))

Hope it helps
Peter
-- 
Peter Marschall
eMail: [EMAIL PROTECTED]

Reply via email to