Hi,

On Tuesday, 13. September 2005 20:18, Stephan Lauffer wrote:
> I just tried to work a bit with Net::LDAP::LDIF but
> I got an error during $ldap->add:
>
> Can't locate object method "asn" via package "Net::LDAP::LDIF" at
> /usr/lib/perl5/site_perl/5.8.5/Net/LDAP.pm line 444, <DATA> line 225.

Did you solve your problem already ?
If not, here might be the solution.

According to the error message you seem to call $ldap->add()
with a Net::LDAP::LDIF object as parameter.

This is not correct. You need to get the entries (Net::LDAP::Entry objects) 
from the LDIF file using Net::LDAP::LDIF's read_entry() method
and use this object as argument to Net::LDAP's add() method.

Hope it helps
Peter



-- 
Peter Marschall
eMail: [EMAIL PROTECTED]

Reply via email to