zoukankan      html  css  js  c++  java
  • Install guide for OpenLDAP and GOsa 2 on Ubuntu & Debian

    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~


     





  • 相关阅读:
    docker 的基本使用
    yum 工具安装的程序默认目录与位置
    Tampermonkey 脚本记录
    Windows 安装配置sublime-text3与破解
    heidisql 轻量级工具
    ubuntu 系统配置静态IP地址
    linux 日志分析
    Windows 桌面整理工具
    高效实用Linux命令行
    物联网实验4 alljoyn物联网实验之手机局域网控制设备
  • 原文地址:https://www.cnblogs.com/jins-note/p/9513280.html
Copyright © 2011-2022 走看看