[Date Prev][Date Next]
Importing Netscape LDIF address book into OpenLDAP
- To: openldap-software@OpenLDAP.org
- Subject: Importing Netscape LDIF address book into OpenLDAP
- From: Thomas Brown <firstname.lastname@example.org>
- Date: Wed, 13 Feb 2002 14:02:42 -0500
- References: <200202131850.g1DIojT35815@galois.openldap.org>
This seems to me like a FAQ, and for that I apologize in advance,
but I have poured through all the documentation, mailing list
archives, FAQs, and the like and can't seem to resolve it on my
I am trying to set up an OpenLDAP situation where I can import a
Netscape-communicator-generated LDIF address book into the tree
so that various mail clients can perform E-mail address lookups
via an LDAP search. I suspect there is something that needs to
be tweaked in the schema before that can happen, as the 'ldifadd'
command chokes on the 'mail' field:
# /opt/openldap/bin/ldapadd -f import.ldif -x -D
Enter LDAP Password:
adding new entry "o=mydomain.com"
adding new entry "cn=Manager, o=mydomain.com"
adding new entry "cn=username, o=mydomain.com"
ldap_add: Object class violation
additional info: attribute 'mail' not allowed
ldif_record() = 65
My sample LDIF import file looks like this:
description: Directory Manager
dn: cn=username, o=mydomain.com
The business-end of my slapd.conf file looks like this: