博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Install guide for OpenLDAP and GOsa 2 on Ubuntu & Debian
阅读量:4697 次
发布时间:2019-06-09

本文共 3273 字,大约阅读时间需要 10 分钟。

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.
  • Connection URL The ldap connection url e.g. 
  • 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

  • Use rfc2307bis compliant groups
    来源: <>
     

 just following the step and you will get it~

来源: <>
 

转载于:https://www.cnblogs.com/jins-note/p/9513280.html

你可能感兴趣的文章
关于oracle样例数据库emp、dept、salgrade的mysql脚本复杂查询分析
查看>>
一些有趣的代码
查看>>
Major Performance Impacts
查看>>
读《图解HTTP》有感-(返回结果的HTTP状态码)
查看>>
操作数栈
查看>>
转:文本分类问题
查看>>
tensorflow_python中文手册
查看>>
Vs2012在Linux应用程序开发(3):加入新平台hi3516
查看>>
adb shell am 的用法
查看>>
实现自动点击
查看>>
MVP开发模式的理解
查看>>
Unity多开的方法
查看>>
File类中的list()和listFiles()方法
查看>>
我的VS CODE插件配置 主要针对.NET和前端插件配置
查看>>
关于js中的事件
查看>>
一致性哈希算法运用到分布式
查看>>
决策树和随机森林->信息熵和条件熵
查看>>
iOS10 UI教程视图和子视图的可见性
查看>>
Maven学习笔记
查看>>
FindChildControl与FindComponent
查看>>