LDAP installation configuration under ubuntu14.04 Install and configure

Source: Internet
Author: User
Tags ldap openldap

https://help.ubuntu.com/lts/serverguide/openldap-server.html If error occurs in reinstall, try this: "1) sudo apt-get purge slapd2) sudo apt-get install SLAPD ldap-utils "  You can configure LDAP after install:

When the installation are complete, we actually need to reconfigure the LDAP package. Type the following to bring the package Configuration tool:

sudo dpkg-reconfigure slapd

You'll be asked a series of questions about what you ' d like to configure the software.

  • omit OpenLDAP server configuration?  no

  • dns domain name?

    • this would create the base structure of your directory path. Read the message to understand how it works.
    • there is no set rules for what to configure this. If you have a actual domain name on the this server, you can use the that. Otherwise, use whatever you ' d like.
    • in This article, we'll call It TEST.COM 
  • organizationname?

    • again, this is up to you
    • we would use example in thisguide. 
  • AdministratorPassword?

    • Use the password configured during installation, or Chooseanother one
  • Database backend touse? HDB

  • Remove the Databasewhen slapd is purged? No

  • Move olddatabase? Yes

  • Allow Ldapv2protocol? No

https://www.digitalocean.com/community/tutorials/ How-to-install-and-configure-a-basic-ldap-server-on-an-ubuntu-12-04-vps

the ldap-utils packagecomes with enough utilities to manage the directory and the longstring of options needed can make them a burden to use. The ldapscripts packagecontains wrapper scripts to these utilities the some people findeasier to use.

Install the package:

sudo apt-get install ldapscripts
#################################################
Then add both nodes ou=groups and ou=users to the LDAP, before add a group to LDAP
A stupid BUG:
Error adding group to LDAP
So,give it a simple ' secret ' passwd, like ' dog ', ' monkey ',,,,
############################################################################################## Step by step:
First
1) sudo apt-get purge slapd 2) sudo apt-get install SLAPD ldap-utilsDo like the above each some stupid error occurs this you can ' t solve.
Second
sudo dpkg-reconfigure LAPD #configure according to the link2 above, you ' d better don ' t configure it by hand.
Third:
sudo apt-get install ldapscripts #install a convenient tools
Ldapscripts ' s Configure file/etc/ldapscripts/ldapscripts.conf, add sentences, like:
Server=localhost
Binddn= ' cn=admin,dc=example,dc=com '
Bindpwdfile= '/etc/ldapscripts/ldapscripts.passwd '
suffix= ' dc=example,dc=com '
gsuffix= ' ou=groups '
usuffix= ' Ou=users '
Fourth:
Add passwd to ldapscripts.passwd file:
sudo sh-c "Echo-n ' monkey ' >/etc/ldapscripts/ldapscripts.passwd"

Then:you can operate LDAP using ldapscripts commands according to link 1.
Warning:ldapscript would always return ' error adding group QA to LDAP ', if the group already exists
http://www.meso.northwestern.edu/intranet/recipies/useful-computer-files-and-programs/ Configuring-group-linux-servers-and-terminals-with-ldap-kerberos-and-nfs/ldap-user-and-group-management
Start LDAP server:  /ETC/INIT.D/LSAPD

LDAP installation configuration under ubuntu14.04 Install and configure

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.