Ubuntu安裝OpenLDAP之配置LDAP

來源:互聯網
上載者:User

Ubuntu安裝OpenLDAP之配置LDAP

Ubuntu配置OpenLDAP 

上一篇博文中,我們成功的安裝了OpenLDAP-2.4.4到系統中,這篇文章介紹如何基於上一篇文章配置一個自己的ldap伺服器來使用。(上篇見 ) 

1 配置ldap的dc和cn

vim /usr/local/etc/openldap/slapd.conf

修改其中的下面兩行:

suffix      "dc=example,dc=com"

rootdn      "cn=Manager,dc=example,dc=com"

我修改後的效果

2 啟動slapd

# su root -c /usr/local/libexec/slapd

驗證一下能不能使用:

# ldapsearch -x -b '' -s base'(objectclass=*)'

說明ldap伺服器已經可以使用了。
3 建立管理帳號

建立一個cloudsoar.ldif 檔案

# vim cloudsoar.ldif

dn: dc=cloudsoar,dc=com

objectclass: dcObject

objectclass: organization

o: cloudsoar company

dc: cloudsoar

 

dn:cn=Manager,dc=cloudsoar,dc=com

objectclass:organizationalRole

cn: Manager

將帳號匯入插入資料庫

# ldapadd -x -D "cn=Manager,dc=cloudsoar,dc=com"-W -f cloudsoar.ldif 

如果要求輸入密碼,我們的預設密碼是:secret(位於/usr/local/etc/openldap/slapd.conf)

這裡可以看到節點已經插入到ldap了。這裡的cloudsoar是我起的網域名稱,您也可以根據需要設定一個自己喜歡的網域名稱。

查詢一下:

# ldapsearch -x -b 'dc=cloudsoar,dc=com''(objectclass=*)'

這裡我還是不放心,從另外一台安裝了windows作業系統的電腦上,使用LDAPAdmin.exe 來串連試試。

可以看到我的ldap已經可以使用了。

 

Liferay Portal 配置使用Oracle和OpenLDAP

在CentOS 6.5上安裝OpenLDAP並配置LDAP方式使用者登入 

RHEL7中OpenLDAP的安裝與配置 

Ubuntu下OpenLDAP伺服器的部署步驟   

Axigen+OpenLDAP+BerkeleyDB+ejabberd多域+JWchat詳細配置

CentOS部署OpenLDAP認證

CentOS Linux安裝OpenLDAP伺服器 

OpenLDAP 的詳細介紹:請點這裡
OpenLDAP 的:請點這裡

本文永久更新連結地址:

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.