Install and configure for LDAP in ubuntu14.04

Source: Internet
Author: User
Tags ldap openldap

Install and configure for LDAP in ubuntu14.04
Https://help.ubuntu.com/lts/serverguide/openldap-server.htmlif 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 is complete, we actually need to reconfigure the LDAP package. type the following to bring up the package configuration tool: sudo dpkg-reconfigure slapd You will be asked a s Eries of questions about how you 'd like to configure the software. Omit OpenLDAP server configuration? No DNS domain name? This will create the base structure of your directory path. read the message to understand how it works. there are no set rules for how to configure this. if you have an actual domain name on this server, you can use that. otherwise, use whatever you 'd like. in this article, we will call it test.com Organization name? Again, this is up to youWe will use example in this guide. Administrator password? Use the password you configured during installation, or choose another one Database backend to use? HDB Remove the database when slapd is purged? No Move old database? Yes Allow LDAPv2 protocol? 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 package comes with enough utilities to manage the directory but the long string of options needed can make them a burden to use. the ldapscripts package contains wrapper scripts to these utilities that some people find easier to use. install the package: sudo apt-get install ldapscripts ################################## ############## then add two nodes ou = Groups and ou = Users to the LDAP, before add a group to LDAP a stupid bug: if the passwd contain some special character like "@",",".... anything like that, then you will get error when add group use 'sudo ldapaddgroup test', like: error adding group to ldapso, give it a simple 'secret' passwd, like 'dog ', 'monkey ',,,, ######################################## ######################################## ############# step by step: first: 1) sudo apt-get purge slapd2) sudo apt-get install slapd ldap-utilsdo like above each some stupid error occurs that 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 toolsand then, configure ldapscripts's configure file/etc/ldapscripts. conf, add sentences, like: SERVER = localhostBINDDN = 'cn = admin, dc = example, dc = com 'bindpwdfile = '/etc/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. passwd "then: you can operate LDAP using ldapscripts commands according to link 1. warning: ldapscript will always return 'error adding group qa to LDAP ', if the group already existshttp: // configure LDAP server:/etc/init. d/lsapd

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.