LDAP 在ubuntu14.04下的安装配置install and configure

摘要:
没有DNS域名?这将创建您的目录路径的基本结构。阅读该消息以了解其工作原理。如何配置该路径没有任何问题。如果您在服务器上有一个实际域名,则可以使用该域名。否则,请使用每个人都喜欢的名称。在本文中,我们将进行测试。comOrganizationname?同样,这是给你的,我们将在本指南中使用示例。管理员密码?使用您在安装时配置的密码,或选择其他数据库后端密码?HDB何时删除数据库?没有移动旧数据库?
https://help.ubuntu.com/lts/serverguide/openldap-server.html
if error occurs in reinstall, try this:
"1)sudo apt-get purge slapd
2)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 series 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 you
    • We 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 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-utils
do 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 tools
and then, configure 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 will 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 在ubuntu14.04下的安装配置install and configure》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇饿了么技术往事Mac下的Mysql无法登陆的问题下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

2020系统综合实践 第7次实践作业 11组

目录 1.在树莓派中安装opencv库 1.1 安装依赖 1.2 下载OpenCV源码 1.3 安装pip 1.4 安装Python虚拟机 1.5 编译OpenCV 1.6 安装OpenCV 2.使用opencv和python控制树莓派的摄像头 3.利用树莓派的摄像头实现人脸识别 facerec_on_raspberry_pi.py face...

Ubuntu安装SSH和SFTP Windows与Ubuntu Linux互传文件

Ubuntu安装SFTP和安装SSH可以一部完成,即:安装好了SSH就可以用SFTP连接了。 安装SSH sudo apt-get install openssh-server 查看SSH是否启动 sudo ps -e | grep ssh 设置ssh开机启动(这一步可选,一般安装好之后默认就是开机启动) # 开机自动启动ssh命令 sudo system...

在 Ubuntu 上安装 Webmin

安装 在 Ubuntu 机器上安装 Webmin 的最简单和推荐的方法是启用 Webmin 存储库并通过命令行安装 Webmin 软件包。 执行以下步骤在 Ubuntu 上安装 Webmin: 01、首先更新包列表并安装依赖项: sudo apt update sudo apt install software-properties-common apt...

ubuntu一键安装LAMP 及一键卸载

ubuntu一键安装LAMP 及一键卸载 一键安装LAMP服务:sudotaskselinstalllamp-server 一键卸载LAMP: sudotaskselremovelamp-server 注意: LAMP=Linux+Apache+mySQL+Php 通过上面的命令卸载Lamp时不免把Linux系统本身的东西卸载掉了,因此, 在卸载LAMP后...

Snort-IPS-入侵防御系统安装及部署小记

安装环境为Ubuntu,使用源码编译方式安装并导入社区Snort规则;通过Splunk做GUI展示,联合防火墙做防御,依据Snort官网文档操作。 Ubuntu 18和20上的Snort 3.0.1用Splunk当SIEM 诺亚·迪特里希 内容介绍 安装Snort 配置网卡 安装OpenApplD 安装Snort规则集 启用内置规则 将PCAP文件传...

更改Ubuntu gcc、g++默认编译器版本

转一篇文章: 升级Ubuntu到11.10,但在编译Android的时候出错了。这个Android在升级系统之前编译是没有错误的,对比发现升级到Ubuntu 11.10后gcc、g++的版本都是4.6.1。而升级之前的版本是4.4.6。我想多半原因就在这里了。要想解决问题需要更改Ubuntu gcc、g++默认编译器版本。google一把发现有两种方法可以...