Openldap is installed in ubuntu 12.04. The solution that slapd. conf cannot find is openldapslapd. conf.

Source: Internet
Author: User
Tags ldap openldap

Openldap is installed in ubuntu 12.04. The solution that slapd. conf cannot find is openldapslapd. conf.

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

 

The installation of openldap in ubuntu has experienced a series of setbacks. the materials on the Internet for half a day are the same and cannot solve the problem.

1. use apt-get install slapd ldap-utils, and the system prompts that the latest version is 2. you can see ldap in the/etc/ldap directory. conf sasl2 schema slapd. d. I am not familiar with slapd. conf file. After ldap is installed on ubuntu, there is no Server Load balancer. conf file. 3. You can use sudo dpkg-reconfigure slapd to reconfigure ldap.  4. For friends who are used to using the slapd. conf configuration file, it is inconvenient not to use this file, so they can create the file by themselves. In the official documentation, it is pointed out that the old slapd. conf style 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, it is usually installed in/usr/local/etc/openldap/slapd. conf. conf path. For apt-get installation, the path is/etc/ldpa/slapd. conf), the new style uses slapd backend database for storage configuration. The configuration database is usually stored in the/usr/local/etc/openldap/slapd. d directory. When the slapd. conf format is converted to the slapd. d format, any contained files will also be integrated into the resulting configuration database.

Directly create Server Load balancer. conf and back up and delete the Server Load balancer. 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 and configure it as follows:

 

# 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. pid
Argsfile/var/run/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 *
By self write
By * none

 

 

Restart openldap,

Close: 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

Check the openldap running status. Only grep -- color = auto slapd is displayed, indicating that it is not running.

Ps aux | grep slapd

 

 

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

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.