Install OpenLDAP on Ubuntu

Source: Internet
Author: User
Tags ldapsearch openldap

Install OpenLDAP on Ubuntu

Configure OpenLDAP in Ubuntu

In the previous blog, we successfully installed the OpenLDAP-2.4.4 into the system. This article describes how to configure your own ldap server based on the previous article. (See the previous article)

1. Configure the dc and cn of ldap

Vim/usr/local/etc/openldap/slapd. conf

Modify the following two rows:

Suffix "dc = example, dc = com"

Rootdn "cn = Manager, dc = example, dc = com"

My modified results

2 start slapd

# Su root-c/usr/local/libexec/slapd

Verify whether the application can be used:

# Ldapsearch-x-B '-s base' (objectclass = *)'

It indicates that the ldap server is ready for use.
3. Create a management account

Create a cloudsoar. ldif File

# Vim cloudsoar. ldif

Dn: dc = cloudsoar, dc = com

Objectclass: dcObject

Objectclass: organization

O: cloudsoar company

Dc: cloudsoar

 

Dn: cn = Manager, dc = cloudsoar, dc = com

Objectclass: organizationalRole

Cn: Manager

Import an account into a database

# Ldapadd-x-D "cn = Manager, dc = cloudsoar, dc = com"-W-f cloudsoar. ldif

If you need a password, our default password is: secret (AT/usr/local/etc/openldap/slapd. conf)

Here we can see that the node has been inserted into ldap. Here, cloudsoar is my domain name. You can set a domain name as needed.

Query:

# Ldapsearch-x-B 'dc = cloudsoar, dc = com ''(objectclass = *)'

In this case, I try to use ldapadmin.exe to connect to another computer with a Windows operating system installed.

You can see that my ldap is ready for use.

 

Liferay Portal configuration uses Oracle and OpenLDAP

Install OpenLDAP on CentOS 6.5 and configure LDAP for user logon

Install and configure OpenLDAP in RHEL7

Deployment steps of OpenLDAP server in Ubuntu

Axigen + OpenLDAP + BerkeleyDB + ejabberd multi-domain + WeChat chat detailed configuration

Deploy OpenLDAP authentication in CentOS

Install OpenLDAP server in CentOS Linux

OpenLDAP details: click here
OpenLDAP: click here

This article permanently updates the link address:

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.