PureFtpd 1.0.21 + OpenLDAP 2.3.20 Installation notes

Source: Internet
Author: User
Tags openldap

This article describes how to install the two software:PureftpdAndOpenLDAP

The versions required for integration are as follows:

PureFTPd 1.0.21

OpenLDAP 2.3.20

I deploy an LDAP server in my company as an authentication server for each application of the company to achieve single-point logon. The FTP server user and authentication must also be integrated with the LDAP server.

There are already many examples and documents on the OpenLDAP Installation Network. It is important to note the compilation and installation of PureFTPd. The installation of PureFTPd is also very careful on the Internet and the README documentation in this software package, but there is a problem with OpenLDAP2.3.10 integration.

There are two major issues related to FTPState:

(1) Change the attribute of the Issue and FTPState in the pureftp. schema to the boolean type. The schema syntax has an error.

(2) log_ldap.c does not compare the values of boolean Type by schema, and "enabled" and "disabled" are used as FTPState values.

Fix these two problems and the integration will be okay.

Compile PureFTPd as follows:

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

Then you don't have to configure the pureftpd-ldap.conf to start PureFtpd.

The related files are as follows:

 
 
  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  

You can configure to disable anonymous access.

Start PureFTPd

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

Log on.

Based on the description in the article, I believe everyone has their own experiences in the installation process of Pureftpd and OpenLDAP. I hope this article will be useful to everyone.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.