First we will install OpenLDAP by running the command as root:

apt-get install slapd ldap-utils ldapscripts

The first command installs the OpenLDAP server (slapd is acronym for Stand-alone LDAP Daemon), and we also install ldap-utils (Some tools for working with the ldap)

Now that OpenLDAP is installed, we want to configure it. The easiest way is to run the command:

dpkg-reconfigure slapd

Now that OpenLDAP is installed and configured, we will install GOsa by running the command under:

apt-get install gosa gosa-schema

The GOsa schema files are for the old way of doing things in OpenLDAP, (Earlier a file called slapd.conf was used for config, but is now depricated) and we need to convert them to the new format.

First create a file /etc/ldap/convert.conf in your favorite text editor (nano/vi/vim to give you some examples)

Paste the content shown under into this file, and save it.


include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/gosa/samba3.schema
include /etc/ldap/schema/gosa/gofon.schema
include /etc/ldap/schema/gosa/gosystem.schema
include /etc/ldap/schema/gosa/goto.schema
include /etc/ldap/schema/gosa/gosa-samba3.schema
include /etc/ldap/schema/gosa/gofax.schema
include /etc/ldap/schema/gosa/goserver.schema
include /etc/ldap/schema/gosa/goto-mime.schema
include /etc/ldap/schema/gosa/trust.schema

Now that you have created that file (We list it as the old format OpenLDAP used), we need to convert it to the new format. Create a temporary directory by typing the command:

mkdir /tmp/ldapconvert

Convert the conf file we created by running the command:

slaptest -f /etc/ldap/convert.conf -F /tmp/ldapconvert

You should get the result: config file testing succeeded

Now there have been created some files in the folder /tmp/ldapconvert. We are interested in the schema files.

Copy the schema files by running the command:

cp -p /tmp/ldapconvert/cn\=config/cn\=schema/* /etc/ldap/slapd.d/cn\=config/cn\=schema/

Now we need to change the ownership on all the files in the ldap folder by running the command under:

chown -R openldap:openldap /etc/ldap/slapd.d/

service slapd restart

Your OpenLDAP installation is now complete!

GOsa was installed in the start of the guide, so all you need to do is to open your webbrowser an go to the pc/server address with /gosa behind it. Example http://localhost/gosa

————————————————————————————————————————————

LDAP connection

  • Location name Specify a name for the location you are configuring here.
  • TLS connection Set this option to 'Yes', if you want to use a secure ldap connection. If this is option is enabled, be sure that your ldap server is configured to support it.
  • Base Specify the base of your ldap server here e.g. dc=company,dc=de

Authentication

  • Admin DN Enter the ldap admin dn here, if you prefer you can use the 'Automatically append LDAP base to admin DN' option to minimize input.  eg. cn=admin,dc=company,dc=de
  • Admin password The ldap admin account password.

Schema based settings

just following the step and you will get it~

Install guide for OpenLDAP and GOsa 2 on Ubuntu & Debian的更多相关文章

  1. How to Install and Configure Bind 9 (DNS Server) on Ubuntu / Debian System

    by Pradeep Kumar · Published November 19, 2017 · Updated November 19, 2017 DNS or Domain Name System ...

  2. Install Nagios (Agent) nrpe client and plugins in Ubuntu/Debian

    安装apt-get install nagios-nrpe-server nagios-plugins 修改nrpe.cfgvi /etc/nagios/nrpe.cfg修改Allow Host,添加 ...

  3. Win10 Theano Install Guide

    basic install guide 1. download miniconda 2. conda install libpython mingw 3. conda install theano n ...

  4. Fedora 25/24/23 nVidia Drivers Install Guide

    https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ search Most Popular Featured Linux ...

  5. How to install / setup /upgrade PHP 5.5.x on Ubuntu 12.04 LTS

    原文:http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/ 最近遇到了要在ubunt ...

  6. freefcw/hustoj Install Guide

    First of all, this version hustoj is a skin and improved for https://code.google.com/p/hustoj/. So t ...

  7. Isilon OneFS Simulator Install Guide

    Isilon build for storage data Use VMware converter to convert node1 to ESX(参考silon_OneFS_Simulator_I ...

  8. csvn install guide

    一. make sure java install $ java -version $ echo $JAVA_HOME 二. untar tgz file $ tar xf CollabNetSubv ...

  9. [原]Chef_Server and Chef_WorkStation and Chef_Client Install Guide[by haibo]

    一.Prerequisite OS  :  CentOS-7.0-1406-x86_64-DVD.iso Time Server :   NTP Server SERVER NAME IP PLAN ...

随机推荐

  1. ubuntu 14.04网卡配置以及关闭防火墙

    一.Ubuntu网卡配置如下: 在文件/etc/network/interfaces中进行以下配置 auto lo iface lo inet lookback auto eth0 iface eth ...

  2. Basic Calculator - Stack(表达式计算器)

    978. Basic Calculator https://www.lintcode.com/problem/basic-calculator/description public class Sol ...

  3. oracle创建表空间个用户四部曲

    /*分为四步 *//*第1步:创建临时表空间  */create temporary tablespace user_temp  tempfile 'D:\oracle\oradata\Oracle9 ...

  4. LeetCode-2. Add Two Numbers(链表实现数字相加)

    1.题目描述 You are given two non-empty linked lists representing two non-negative integers. The digits a ...

  5. 使用 Go 的 struct tag 来解析版本号字符串

    各类软件的版本号定义虽然都不尽相同,但是其基本原理基本上还是相通的:通过特写的字符对字符串进行分割.我们把这一规则稍作整理,放到 struct tag 中,告诉解析器如何解析,下面就以 semver ...

  6. win10+GTX1080+Tensorflow1.6安装

    安装参考网站:http://blog.csdn.net/lp654063449/article/details/79340655 依照安装目录依次安装,所需安装包均已下载,在最后的一步中,打开cuda ...

  7. 学习并发包常用的接口----java.util.concurrent

    1.常用的相关的接口 Callable.(Runnable).Futrue.RunnableFuture.RunnableSheduledFuture.ScheduledFuture.Executor ...

  8. [Mysql]——用户管理

    登录和退出 > mysql  -h 参数后面接hostname或者hostIP -P 参数后面接Mysql服务的端口号,通过指定的端口号来进行连接 -u 参数后面接username用户名 -p ...

  9. PL/SQL:these query result are not updateable,include the ROWID to get updateab -----for update

    these query result are not updateable,include the ROWID to get updateab 原因: 其实,选中一个表后,右键,如果选择“query ...

  10. 用Ajax爬取今日头条图片集

    Ajax原理   在用requests抓取页面时,得到的结果可能和浏览器中看到的不一样:在浏览器中可以正常显示的页面数据,但用requests得到的结果并没有.这是因为requests获取的都是原始 ...