自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

PureFtpd 1.0.21 + OpenLDAP 2.3.20 安裝筆記

系統(tǒng) Linux
Pureftpd是一款在多種類Unix上使用并符合GPL協(xié)議的原代碼開放的軟件,顧名思義,它就是一款純粹的Ftp程序。OpenLDAP是輕型目錄訪問協(xié)議(Lightweight Directory Access Protocol,LDAP)的自由和開源的實(shí)現(xiàn),在其OpenLDAP許可證下發(fā)行,并已經(jīng)被包含在眾多流行的Linux發(fā)行版中。

本文我給大家介紹兩款軟件的安裝過程:PureftpdOpenLDAP

  集成所需要的版本 如題:

  PureFTPd 1.0.21

  OpenLDAP 2.3.20

  先說一下這種集成的需求根據(jù),我在公司里部署了LDAP服務(wù)器,作為公司各個應(yīng)用的認(rèn)證服務(wù)器,以實(shí)現(xiàn)單點(diǎn)登錄。FTP服務(wù)器的用戶和認(rèn)證也需要與LDAP服務(wù)器集成。

  OpenLDAP的安裝網(wǎng)上已經(jīng)有很多例子和文檔了,這里就不多說了。重點(diǎn)需要注意的是 PureFTPd的編譯安裝,PureFTPd的安裝網(wǎng)上和該軟件包里的README文檔也說得很仔細(xì)了,但與OpenLDAP2.3.10集成有問題。

  主要有2個問題,都與FTPState有關(guān):

  (1)pureftp.schema里的Issue,F(xiàn)TPState 的屬性改為了boolean型,schema的語法有個錯誤。

  (2)log_ldap.c里沒有按schema的boolean型比較,而且用"enabled" 和 "disabled" 來作為FTPState的值來比較。

  修正這兩個問題,集成就沒問題了。

  編譯PureFTPd 如下:

 

  1.   # ./configure --with-ldap=/usr/local/openldap --with-quotas --with-throttling --with-ratios  
  2.  
  3.   # make; make check; make install;  

 

  然后沒配置好 pureftpd-ldap.conf 啟動PureFtpd就可以了。

  相關(guān)文件如下:

 

  1.   pureftpd.schema  
  2.  
  3.  
  4.   attributetype ( 1.3.6.1.4.1.6981.11.3.7 NAME 'FTPStatus  
  5.  
  6.  
  7.   DESC 'Account status: enabled or disabled' 
  8.  
  9.  
  10.   EQUALITY booleanMatch  
  11.  
  12.  
  13.   SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )  
  14.  
  15.   pure-ftpd.conf  
  16.  
  17.  
  18.   # LDAP configuration file (see README.LDAP)  
  19.  
  20.  
  21.   LDAPConfigFile /usr/local/etc/pureftpd-ldap.conf  
  22.  
  23.   pureftpd-ldap.conf  
  24.  
  25.  
  26.   # Optional : name of the LDAP server. Default : localhos  
  27.  
  28.  
  29.   LDAPServer your_ldap_hostname  
  30.  
  31.  
  32.   # Optional : server port. Default : 389  
  33.  
  34.  
  35.   LDAPPort 389  
  36.  
  37.  
  38.   # Mandatory : the base DN to search accounts from. No default.  
  39.  
  40.  
  41.   LDAPBaseDN ou=ftp,dc=your_company  
  42.  
  43.  
  44.   # Optional : who we should bind the server as.  
  45.  
  46.  
  47.   # Default : binds anonymously  
  48.  
  49.  
  50.   LDAPBindDN cn=admin,dc=your_company  
  51.  
  52.  
  53.   # Password if we don't bind anonymously  
  54.  
  55.  
  56.   # This configuration file should be only readable by root  
  57.  
  58.  
  59.   LDAPBindPW password  

 

 

  可以配置為關(guān)閉匿名訪問。

  啟動PureFTPd

 

  1.   # pure-config.pl pure-ftpd.conf  

 

  登錄即可

通過文章的描述,相信大家都對Pureftpd 和  OpenLDAP 的安裝過程有了自己的心得,希望本文對大家有用。

【編輯推薦】

  1. Debian下pureftpd的安裝心得
  2. Linux環(huán)境PureFTPd安裝配置(上篇)
  3. Linux環(huán)境PureFTPd安裝配置(下篇)
  4. Pureftpd和PostgreSQL聯(lián)合使用
  5. Pureftpd 命令語法
  6. 在Windows和Unix系統(tǒng)中使用OpenLDAP的利弊
  7. Fedora openldap環(huán)境說明配置目的實(shí)現(xiàn)原理
  8. 14.2.1 安裝OpenLDAP服務(wù)器程序

 

責(zé)任編輯:趙鵬 來源: 網(wǎng)絡(luò)轉(zhuǎn)載
相關(guān)推薦

2011-02-25 16:22:34

2011-03-03 16:17:14

PureFTPd

2011-02-25 17:48:52

2011-02-24 14:45:37

pureftpd安裝文檔

2011-02-24 14:45:37

pureftpd安裝文檔

2011-02-25 17:19:09

Pureftpd安裝

2011-03-02 09:07:59

pureftpdDebian

2011-03-02 08:57:51

2011-02-24 15:51:23

Pureftpd安裝

2011-02-25 18:11:48

LinuxPureFTPd

2011-03-02 13:02:37

2011-03-02 13:16:33

Pureftpd

2011-03-02 16:36:41

pureftpdLNMPDebian5

2011-03-03 15:09:30

PureFTPdFAQ

2011-02-25 17:49:21

2011-03-03 14:42:12

PureFTPd

2011-02-23 14:05:57

2011-03-03 14:16:48

PureFTPd

2011-03-03 09:34:34

PureFTPd

2011-03-03 11:13:11

Pureftpd
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號