LDAP安裝於Ubuntu

就我所知有三個需要注意的地方:
  1. 安裝LDAP主程式
  2. 安裝LDAP圖形化介面
  3. 安裝LDAP網頁服務相關應用套件
以Ubuntu主機為例LDAP為OpenLDAP,圖形化介面為phpldapadmin

步驟

安裝OpenLDAP
sudo apt-get install slapd ldap-utils
設定admin的密碼

sudo dpkg-reconfigure slapd
做詳細設定
Omit OpenLDAP server configuration? No
DNS domain name: localhost
Organization name: localhost
Administrator password: *******
Confirm password: *******
Database backend to use: MDB
Do you want the database to be removed when slapd is purged? No
Move old database? Yes
Allow LDAPv2 protocol? No

設定LDAP的ldap.conf
把BASE跟URI改一改

安裝phpldapadmin
sudo apt-get install phpldapadmin

修改phpldapadmin config裡的資訊(紅色部分)
sudo nano /etc/phpldapadmin/config.php

$servers->setValue('server','host','server_domain_name_or_IP');
$servers->setValue('server','base',array('dc=test,dc=com'));
$servers->setValue('login','bind_id','cn=admin,dc=test,dc=com');
$config->custom->appearance['hide_template_warning'] = true;

參考資料:連結1連結2連結3連結4連結5

留言

這個網誌中的熱門文章

LDAP與AD之對應欄位

用openLDAP來做Moodle帳號管理