Hi,

On Thursday, 24. November 2005 15:19, Graham Barr wrote:
> On Nov 24, 2005, at 7:59 AM, Eric Nichols wrote:
> > [...]
> >  Here is a better example:
> >
> > dn: cn="<[EMAIL PROTECTED]",ou=site,o=org
> >
> > In addition the parser seems to stop if the data of an attribute
> > begins with a
> > '<'.
> >
> > sn: <doe
>
> Well that is an error as < being the first character is supposed to
> be followed by a file: URL to read the attribute contents from. But
> it should not hang. $ldif->error should return an error string like
> "unsupported URL type"
>
> There have been some changes since 0.32. You can try the latest
> LDIF.pm from the repository
>
> http://svn.mutatus.co.uk/repos/perl-ldap/trunk/lib/Net/LDAP/LDIF.pm

Graham is right !
according to my tests the code in SVN does not silently fail.

With the input "cn:<joe" (note: no space between : and <) it flags the error 
"unsupported URL type at ldiftest2.pl line 10".

When the input is "cn: <joe" (note the space between : and <) the LDIF
is accepted with cn having "<joe" (without the quotes).

IMHO this behaviour is the correct one.

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

Reply via email to