• 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~


     





  • 相关阅读:
    JAVA-throw new IOException报错unhandled exception:java.lang.Exception 2021年6月7日
    GIt保持远程 源仓库与Fork仓库同步--2017年6月13日
    Python的getattr()-2017年6月7日
    JavaScript学习-2017年5月18日
    Writing your first Django app--2017年5月9日
    M4-AC6 Oh,Trojan Again--2017年5月9日
    吴军硅谷来信
    【1】Prologue--A Game of Thrones--2017年4月8日
    M4-PC9 Read 10,000 Books,Travel 10,000 Miles--2017年5月8日
    资源分配图RAG的化简
  • 原文地址:https://www.cnblogs.com/jins-note/p/9513280.html
Copyright © 2020-2023  润新知