David Herselman wrote:
I
removed some fields from the new.ldif file and tried again, now it waits
for about 1 minute and then spits out the following: ldap_add:
DSA is unavailableldap_add: additional info: Can't chase referral I'm
running an rpm install version, ldap-3.3-4_.i386.rpm and ldap-servers-3.3-4.i386.rpm
on Redhat v5.0 kernel 2.0.35 What
I told it to do: rm -f /var/ldap/*/etc/rc.d/init.d/ldap
restartldapadd -w secret -D 'cn=root,
o=Syrex Intranets, c=ZA' -f /root/new.ldif slapd.conf:include
/etc/slapd.at.conf
include
/etc/slapd.oc.conf
schemacheck
off
referral
ldap://ldap.itd.umich.edudatabase
ldbm
suffix
"o=Syrex Intranets, c=ZA"
directory
/var/ldap
rootdn
"cn=root, o=Syrex Intranets, c=ZA"
rootpw
secret new.ldif
is an address book entry exported from Netscape v4.05:dn:
cn=David Herselman,mail=davidh@syrex.co.za
cn: David Herselman
sn: Herselman
objectclass: top
objectclass: person
mail: davidh@syrex.co.za
title: Mr.
o: Syrex Intranets Regards
David Herselman
(syrex@syrex.co.za) -=*> Syrex
Intranets <*=- =-
|\ _,,,---,,_
The views expressed above are strictly
/,`.-'`' -. ;-;;,_ those of DJ Herselman
and in no way
|,4- ) )-,_. ,\ ( `'-' whatsoever reflect those expressed by
'---''(_/--'
`-'\_) Syrex Intranets.
the DN for that entry is unqualified...
the ldif file exported by netscape does not work as an import system,
here's what an ldif should look
like for you to have a proper e-mail address for netscape to look up
---- cut here ----
dn: o=Syrex Intranets, c=za
o: Syrex Intranets
objectclass: organization
dn: cn=David Herselman, o=Syrex Intranets, c=US
cn: David Herselman
sn: David Herselman
mail: davidh@syrex.co.za
title: Mr.
o: Syrex Intranets
objectclass: person
---- cut here ---
the blank lines must be there for it to know it is done with one record
and that you are proceeding to the next record.
let me know if you need more explanation...
Blake
|