Re: LDIF import error: failed with error Net::LDAP::Add=...

"Dennis K" <[email protected]> Wed, 29 Mar 2006 05:15:41 -0500
Newsgroups gmane.comp.isp.ispman.user
Message-ID <[email protected]>
On 3/19/06, lists-rrWFhbbfsjew5LPnMra/[email protected] <lists-rrWFhbbfsjew5LPnMra/[email protected]> wrote:
> Hello,
>
> I am installing ISPMan v1.3 on a Mandriva 2006.0 system, following the
> INSTALL doc included with the download.
>
> I am at the point where I am attempting to populate the LDAP database with
> the following command:
>
> (all on one line)
>
>   cat conf/ldif/ispman.ldif | ./bin/ispman.substConf | \
> ./bin/ispman.ldifload -f -
>
> I have included the full output in the included text file, but I basically
> get the error indicated in the subject line.
>
> I initially configured to use the included perl modules ("cd contrib/perl
> && make install-bundled") which seems to have the "Net::LDAP" module in
> there, however, when I started getting the above error, I installed the
> Mandriva perl-ldap RPM which also has it, but the problem persists.
>
> I am not sure what I am missing?
>
> I look forward to hearing from you.
>
> -Alan
>

Hello Alan
I had the same problem here is my solution:

cd /opt/ispman
cat conf/ldif/ispman.ldif | ./bin/ispman.substConf >> ldif.ldif
nano ldif.ldif

Add this to top of the file ldif.ldif:
dn: dc=domain,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: domain
dc: domain

ldapadd -x -h localhost -D "cn=admin,dc=domain,dc=com" -f ldif.ldif -W


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642