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

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
时间: 2024-12-30 08:05:23

LDAP 在ubuntu14.04下的安装配置install and configure的相关文章

ubuntu14.04下php环境配置过程

ubuntu14.04下php环境配置过程 这几天重装了下系统,需要重新配置PHP的开发环境,这里做下记录. 安装MySQL sudo apt-get install mysql-server mysql-client 安装过程中会要求输入数据库root账户的密码,输入密码即可.安装完成后,测试是否成功 mysql -u root -p 出现如下欢迎信息证明安装成功. 安装Apache服务器 sudo apt-get install apache2 安装完成,在浏览器里输入 http://loc

ubuntu14.04下手动安装eclipse

ubuntu14.04下手动安装eclipse 第一步: 安装jdk 第二步: 下载eclipse,假设下载的文件文件名为eclipse.tar.gz 第三步: 解压 sudo -zxvf ./eclipse.tar.gz 会的到文件夹eclipse 第四步: 移动文件 sudo mv ./eclipse /usr/lib 第五步: 创建启动快捷方式 $ sudo gedit /usr/share/applications/eclipse.desktop 添加如下内容: [Desktop Ent

ubuntu14.04 下手动安装java jdk

ubuntu14.04 下手动安装java jdk 第一步: 下载jdk.tar.gz (这里假设下载的文件名为jdk.tar.gz) 第二步: 解压 sudo tar -zxvf ./jdk.tar.gz 这里会在当前目录下会的到一个新的被解压出来的文件夹(jdk-8×××),这里假设为该文件夹名为jdk 第三步: 移动解压出的文件夹 sudo mkdir /usr/lib/jvm 新建文件夹jvm sudo mv ./jdk /usr/lib/jvm/java 第四步: 修改环境变量 sud

Ubuntu 14.04下NFS安装配置

Ubuntu 14.04下NFS安装配置 参考:http://www.linuxidc.com/Linux/2013-08/89154.htm 1.执行命令:sudo apt-get install nfs-kernel-server ; 2.执行命令:mkdir /home/jacobxu/nfs-jacoxu 建立一个nfs服务的专有的文件夹; 3.建立好文件夹后,接着执行命令:sudo vi /etc/exports 配置nfs; 4.在文章的最后一行添加:/home/jacobxu/nf

Ubuntu 12.04下LAMP安装配置

我是一个Linux新手,想要安装一台Ubuntu 12.04版的Linux服务器,用这台服务器上的LAMP套件来运行我自己的个人网站.LAMP套件就是“Linux+Apache+Mysql+PHP这四款软件组成了一个可以使网站运行的套装工具软件.”通过安装尝试,我获得了一些成功的安装配置经验,通过本文提供给Linux网站服务器系统的入门者学习.本次安装的网站软件环境中将使用Apache2网页服务软件.MySQL5网站后台数据库软件.以及PHP5角本解释语言软件,配置成的系统也可提供FTP服务.

Ubuntu14.04 下 OpenCV3 安装

在ubuntu14.04下安装Opencv3,遇到了许多不明白的问题,第一次安装成功了 并没有什么问题,系统重装后再次安装,却出现了很多问题,特作笔记. 一 按照官网安装Opencv步骤: ?1.需要的包: GCC 4.4.x 或更高 CMake 2.8.7 或更高 Git GTK+2.x 或更高,包括头(libgtk2.0-dev) pkg-config Python 2.6 或以后,Numpy 1.5或以后,和开发包(python-dev,python-numpy) ffmpeg 或者lib

ubuntu14.04 python2.7 安装配置OpenCV3.0

环境:ubuntu14.04  python2.7 内容:安装并配置OpenCV3.0 今天按照OpenCV官网上的步骤装了OpenCV但是,装好之后python提示“No module named cv2” 首先,安装OpenCV的步骤: OpenCV官网的安装步骤:http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation 1.下载OpenCV:ht

docker在ubuntu14.04下的安装笔记

本文主要是参考官网教程进行ubuntu14.04的安装. 下面是我的安装笔记. 笔记原件完整下载: 链接: https://pan.baidu.com/s/1c1CZZCs 密码: qk1x

Ubuntu 12.04下NFS安装配置图解

转载于:http://www.linuxidc.com/Linux/2013-08/89154.htm 用网线将主机与开发板连接起来,主机开启nfs服务后,就可以像tftp一样传文件到开发板了,有的人会问,不如直接用tftp好了,但是nfs还可以挂载根文件系统啊!我等屌丝先这样比较吧(本文主要是记录安装使用步骤)! 相关阅读: Ubuntu 12.04安装NFS server  http://www.linuxidc.com/Linux/2012-09/70728.htm NFS服务器安装配置实