Import Ldif In Ldap

in directory.ldif

dn: ou=Contactlist,dc=domain,dc=com
objectClass:    top
objectClass:    organizationalUnit
ou: Contactlist

add to ldap server

ldapadd -D "dc=domain,dc=com" -f directory.ldif -W -x

add data to ldap server from convert csv to ldif

ldapadd -x -D "cn=Manager,dc=domain,dc=com" -W -f example.ldif

test with

ldapsearch -x -b "ou=Contactlist,dc=domain,dc=com" "objectclass=*"

sources:
http://wiki.tryphon.org/configure_openldap
http://www.openldap.org/doc/admin23/quickstart.html

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.