Hi, On Wednesday 15 June 2005 15:13, Graham Barr wrote: > On Wed, June 15, 2005 2:47 am, Chris Ridd said: > >> 3) If Net::LDAP::LDIF is run on UNIX but opens a Windows-created LDIF > >> file (\r\n instead of just \n line endings), read_entry doesn't properly > >> read in the separate entries. > > Can you expand on that. What do you get?
I guess the OP is getting te error message: First line of LDIF entry does not begin with 'dn:' As far as I found out, this is due to the fact that Perl's paragraph mode that Net::LDAP::LDIF uses, seems to rely on the "natural" line ends for the platform. My tests showed that paragraph mode = slurp mode for files with CR+LF line endings on a Linux platform, which uses LF line ends. Really strange ;-) Peter -- Peter Marschall eMail: [EMAIL PROTECTED]