Ubuntu 12.04 Install openldap,slapd.conf workaround not found

Source: Internet
Author: User
Tags ldap openldap

Https://help.ubuntu.com/12.04/serverguide/openldap-server.html

Ubuntu installation OpenLDAP experienced a series of setbacks, on-line to find a half-day data are identical, can not solve the problem.

1. Use apt-get install SLAPD ldap-utils to indicate that it is the latest version 2. In the/ETC/LDAP directory see the ldap.conf SASL2 schema Slapd.d, no previous familiar slapd.conf file, originally Ubuntu installed LDAP has no slapd.conf file, so don't look for it.  3. You can reconfigure LDAP with the sudo dpkg-reconfigure slapd  4. For a friend who is accustomed to using the slapd.conf profile, it is inconvenient not to have this file, so simply create the file yourself. In the official documentation note, the old style slapd.conf is still supported. , but must be converted to the new SLAPD configuration format, allowing runtime changes to be saved. Although the old style configuration uses a single file, usually installed in the/usr/local/etc/openldap/slapd.conf (this is the path of the slapd.conf after compiling the installation itself OpenLDAP, if it is directly apt-get installed, the path is/ etc/ldpa/slapd.conf), the new style uses the SLAPD backend database to store the configuration. The configuration database is typically placed in the/USR/LOCAL/ETC/OPENLDAP/SLAPD.D directory. When converting from the slapd.conf format to the SLAPD.D format, any include files will also be integrated into the resulting configuration database.

Create slapd.conf directly, backup delete slapd.d folder:

sudo touch/etc/ldap/slapd.conf

sudo mv/etc/ldap/slapd.d/etc/ldap/slap.d.bak-f

Edit the Slapd.conf file with the following configuration:

# slapd.conf-configuration file for LDAP SLAPD
##########
# Basics #
##########
Include/etc/ldap/schema/core.schema
Include/etc/ldap/schema/cosine.schema
Include/etc/ldap/schema/inetorgperson.schema
Pidfile/var/run/slapd/slapd.pid
Argsfile/var/run/slapd/slapd.args
LogLevel None
Modulepath/usr/lib/ldap
# MODULEPATH/USR/LOCAL/LIBEXEC/OPENLDAP
ModuleLoad Back_hdb
##########################
# Database Configuration #
##########################
Database HDB
Suffix "dc=example,dc=com"
RootDN "Cn=manager,dc=example,dc=com"
ROOTPW Secret
Directory/var/lib/ldap
# Directory/usr/local/var/openldap-data
Index OBJECTCLASS,CN EQ
########
# ACLs #
########
Access to Attrs=userpassword
by Anonymous Auth
by self Write

by * None
Access to *
by self Write
by * None

Restart OpenLDAP,

Off: sudo kill ' pgrep slapd ' or sudo service slapd stop

Open: sudo slapd or sudo service slapd start

Restart: sudo service restart or sudo invoke-rc.d slapd restart

View the OpenLDAP run, showing only grep--color=auto SLAPD, stating that it is not running.

PS aux | grep slapd

Reference: http://hi.baidu.com/ankchl/item/5a93d1f972399d0985d27870

Ubuntu 12.04 Install openldap,slapd.conf workaround not found

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.