Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to Pureftpd and OpenLDAP

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to Pureftpd and OpenLDAP, I hope you will learn something after reading this article, let's discuss it together!

The version required for integration is as follows:

PureFTPd 1.0.21

OpenLDAP 2.3.20

First of all, to talk about the requirements of this integration, I deployed a LDAP server in the company as an authentication server for various applications in the company to achieve single sign-on. The user and authentication of the FTP server also need to be integrated with the LDAP server.

There are already many examples and documentation on the installation of OpenLDAP, so I won't say much about it here. The important thing to pay attention to is the compilation and installation of PureFTPd. The installation of PureFTPd and the README documentation in the package are also very detailed, but there is a problem with the integration with OpenLDAP2.3.10.

There are two main problems, both of which are related to FTPState:

(1) the attribute of Issue,FTPState in pureftp.schema has been changed to Boolean, and there is an error in the syntax of schema.

(2) there is no comparison according to the Boolean type of schema in log_ldap.c, and "enabled" and "disabled" are used as the values of FTPState.

Fix these two problems and the integration will be fine.

Compile the PureFTPd as follows:

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

Then do not configure pureftpd-ldap.conf to start PureFtpd on it.

The relevant documents are as follows:

Pureftpd.schema attributetype (1.3.6.1.4.1.6981.11.3.7 NAME 'FTPStatus DESC' Account status: enabled or disabled' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE) pure-ftpd.conf # LDAP configuration file (see README.LDAP) LDAPConfigFile / usr/local/etc/pureftpd-ldap.conf pureftpd-ldap.conf # Optional: name of the LDAP server. Default: localhos LDAPServer your_ldap_hostname # Optional: server port. Default: 389 LDAPPort 389 # Mandatory: the base DN to search accounts from. No default. LDAPBaseDN ou=ftp,dc=your_company # Optional: who we should bind the server as. # Default: binds anonymously LDAPBindDN cn=admin,dc=your_company # Password if we don't bind anonymously # This configuration file should be only readable by root LDAPBindPW password

Can be configured to turn off anonymous access.

Start PureFTPd

# pure-config.pl pure-ftpd.conf

Just log in.

After reading this article, I believe you have a certain understanding of "how to Pureftpd and OpenLDAP". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report