LDAP-Series-一-Chapter-2
LDAP-Series-1-Chapter-2Config LDAP.Directory struct.|-- ACL.conf(make by myself to contain ACL conf
LDAP-Series-1-Chapter-2
Config LDAP.
Directory struct.
|-- ACL.conf(make by myself to contain ACL config)|-- DB_CONFIG.example|-- ldap.conf|-- ldap.conf.default|-- schema|-- slapd.conf|-- slapd.conf.bck|-- slapd.conf.default|-- slapd.ldif`-- slapd.ldif.default
First, you should vi slapd.confinclude /usr/local/openldap/etc/openldap/schema/core.schema
include /usr/local/openldap/etc/openldap/schema/cosine.schema
include /usr/local/openldap/etc/openldap/schema/inetorgperson.schema (inetorgperson)
include /usr/local/openldap/etc/openldap/schema/nis.schema (posixaccount,posixgroup) All above is schema.include /usr/local/openldap/etc/openldap/ACL.conf (ACL file)
database bdb
suffix "dc=xxx,dc=org"
rootdn "cn=admin,dc=xxx,dc=org"
directory /usr/local/openldap/var/weiwejiaLdap (dir to contain the ldap)
OK, the dn of super root is "cn=admin,dc=xxx,dc=org" now. Password set as rootpw, Using slappasswd to generate.