(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Configuration : (Category) SLAPD Configuration : (Category) Schema : (Answer) How do I add schemas to cn=schema,cn=config?
One way is to start your properly configured server (assuming 2.4.7) and issue the following command:
 ldapadd -x -H ldap://<LDAP SERVER>/ -D "cn=config" -W -f <SCHEMA>.ldif
 Enter LDAP Password: 
 adding new entry "cn=<SCHEMA>,cn=schema,cn=config"

when I try to add cosine schema with following command, it prompted for password but it failed with "ldap_bind: invalid credentials(49)" message. Is this Root Dn password or somethingelse? I am trying to use cosign as well as inetorgperson schema. slapd failed to start after I include these two schemas in slapd.conf.
ldapadd -x -H ldap://myinstitution.edu -D "cn=config" -W -f /usr/local/etc/schema/cosign.ldif"
[Append to This Answer]
Previous: (Answer) How can I fetch schema information from the server?
This document is: http://www.openldap.org/faq/index.cgi?file=1442
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org