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. 生成allure测试报告之后,服务器端口无法访问查看生成的report,可能是这样引起的。

    1. 检查防火墙 2. 如果机器有安装ADsafe,请关闭adsafe后重试

  2. tp5.0 根据经纬度 获取附近信息

    自己备注一下 /* *参数说明: *$lng 经度 *$lat 纬度 *$distance 周边半径 默认是500米(0.5Km) */ public function returnSquarePoi ...

  3. js数字格式化为千分位

    方法1: 浏览器自带的一个方法 const num=12345.6789 num.toLocaleString();=>"12,345.679" 方法2: 正则匹配 func ...

  4. MySQL Migration Tool报“initialized java loader”错误的问题

    MySQL Migration Tool报“initialized java loader”错误的问题   运行MySQL Migration Tool时经常会提示“An error occured ...

  5. github里如何删除一个repository仓库

    高手请绕行,新手往下走. 作为一个刚接触github(https://github.com/)的新手,除了感叹开源的丰富和强大之外,自己肯定也想试用一下,因此申请帐号神马的.今天自己创建一个Repos ...

  6. JavaScript设计模式-21.命令模式

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  7. ruby gems列表

    https://github.com/shageman/cobradeps

  8. Oracle 创建表空间和用户

    创建用户: 建立表空间和用户的步骤: 用户 建立:create user 用户名 identified by "密码"; 授权:grant create session to 用户 ...

  9. centOS 7下无法启动网络(service network start)错误解决办法(应该是最全的了。。。)

    今天在centOS 7下更改完静态ip后发现network服务重启不了,翻遍了网络,尝试了各种方法,终于解决了. 现把各种解决方法归纳整理,希望能让后面的同学少走点歪路... 首先看问题:执行serv ...

  10. 开始使用 Vuejs 2.0 ---简单总结1

    Vue.js(读音 /vjuː/, 类似于 view) 是一套构建用户界面的 渐进式框架.与其他重量级框架不同的是,Vuejs 采用自底向上增量开发的设计.Vuejs 的核心库只关注视图层,并且非常容 ...