Section 15.6:OpenLDAP Files
to something like:
rootdn
or
rootdn
Change the rootpw line from:
rootpw
to something like
rootpw
In the above example, you are using an encrypted root password, which is a much better idea than
leaving a plain text root password in the slapd.conf file. To make this crypt string, you can use
Perl:
perl -e "print crypt(' passwd ',' a_salt_string ');"
In the previous Perl line, salt_string is a two character salt, and passwd is the plain text version
of the password.
You could also copy a passwd entry out of /etc/passwd, but this won't work if the passwd entry
is an MD5 password (the default in Red Hat Linux 7.2).
15.6.2 The schema Directory
New to OpenLDAP version 2, the schema directory holds the various LDAP definitions, previously
located in the slapd.at.conf and slapd.oc.conf files. All attribute syntax definitions and
objectclass definitions are now located in the different schema files. The various schema files are
referenced in /etc/openldap/slapd.conf using include lines, as shown in this example:
include
/etc/openldap/schema/core.schema
include
/etc/openldap/schema/cosine.schema
include
/etc/openldap/schema/inetorgperson.schema
include
/etc/openldap/schema/nis.schema
include
/etc/openldap/schema/rfc822-MailMember.schema
include
/etc/openldap/schema/autofs.schema
include
/etc/openldap/schema/kerberosobject.schema
"cn=root, dc=redhat, dc=com"
"cn=ldapmanager, dc=my_organization, dc=org"
secret
{crypt}s4L9sOIJo4kBM
251
Need help?
Do you have a question about the LINUX 7.2 and is the answer not in the manual?
Questions and answers