📄 1486.html
字号:
MaxClients 10<br>
<br>
# We want 'welcome.msg' displayed at login, and '.message' displayed<br>
# in each newly chdired directory.<br>
DisplayLogin welcome.msg<br>
DisplayFirstChdir .message<br>
<br>
# Limit WRITE everywhere in the anonymous chroot<br>
<Limit WRITE><br>
DenyAll<br>
</Limit><br>
<br>
</Anonymous><br>
<br>
OpenLDAP认证配置实例<br>
[root@linux root]# cat /usr/local/proftpd/etc/proftpd.conf<br>
<br>
# This is a basic ProFTPD configuration file (rename it to<br>
# 'proftpd.conf' for actual use. It establishes a single server<br>
# and a single anonymous login. It assumes that you have a user/group<br>
# "nobody" and "ftp" for normal operation and anon.<br>
<br>
ServerName "ProFTPD Default Installation"<br>
ServerType standalone<br>
DefaultServer on<br>
<br>
# Port 21 is the standard FTP port.<br>
Port 21<br>
<br>
# Umask 022 is a good standard umask to prevent new dirs and files<br>
# from being group and world writable.<br>
Umask 022<br>
<br>
<Global><br>
<br>
LDAPDoAuth on dc=xuser,dc=net<br>
LDAPServer localhost<br>
LDAPDNInfo cn=manager,dc=xuser,dc=net secret<br>
<br>
</Global><br>
<br>
# To prevent DoS attacks, set the maximum number of child processes<br>
# to 30. If you need to allow more than 30 concurrent connections<br>
# at once, simply increase this value. Note that this ONLY works<br>
# in standalone mode, in inetd mode you should use an inetd server<br>
# that allows you to limit maximum number of processes per service<br>
# (such as xinetd).<br>
MaxInstances 30<br>
<br>
# Set the user and group under which the server will run.<br>
User nobody<br>
Group nogroup<br>
<br>
<br>
<br>
# Normally, we want files to be overwriteable.<br>
<Directory /><br>
AllowOverwrite on<br>
</Directory><br>
<br>
# A basic anonymous configuration, no upload directories.<br>
<Anonymous ~ftp><br>
User ftp<br>
Group ftp<br>
<br>
# We want clients to be able to login with "anonymous" as well as "ftp"<br>
UserAlias anonymous ftp<br>
<br>
# Limit the maximum number of anonymous logins<br>
MaxClients 10<br>
<br>
# We want 'welcome.msg' displayed at login, and '.message' displayed<br>
# in each newly chdired directory.<br>
DisplayLogin welcome.msg<br>
DisplayFirstChdir .message<br>
<br>
# Limit WRITE everywhere in the anonymous chroot<br>
<Limit WRITE><br>
DenyAll<br>
</Limit><br>
<br>
</Anonymous><br>
# Include /usr/local/etc/mod_ldap.conf<br>
<br>
OpenLDAP 配置文件<br>
[root@linux root]# cat /etc/openldap/slapd.conf<br>
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.6 2001/04/20 23:32:43 kurt Exp $<br>
#<br>
# See slapd.conf(5) for details on configuration options.<br>
# This file should NOT be world readable.<br>
#<br>
include /etc/openldap/schema/core.schema<br>
include /etc/openldap/schema/cosine.schema<br>
include /etc/openldap/schema/inetorgperson.schema<br>
include /etc/openldap/schema/nis.schema<br>
include /etc/openldap/schema/redhat/rfc822-MailMember.schema<br>
include /etc/openldap/schema/redhat/autofs.schema<br>
include /etc/openldap/schema/redhat/kerberosobject.schema<br>
include /etc/openldap/schema/chen<br>
include /etc/openldap/schema/posixAccount-objectclass<br>
include /etc/openldap/schema/posixGroup-objectclass<br>
#include /etc/openldap/schema/qmail_schema<br>
#include /etc/openldap/slapd.info.oc.conf<br>
#include /etc/openldap/slapd.account.oc.conf<br>
<br>
# Define global ACLs to disable default read access.<br>
<br>
# Do not enable referrals until AFTER you have a working directory<br>
# service AND an understanding of referrals.<br>
#referral ldap://root.openldap.org<br>
<br>
#pidfile //var/run/slapd.pid<br>
#argsfile //var/run/slapd.args<br>
<br>
# Create a replication log in /var/lib/ldap for use by slurpd.<br>
#replogfile /var/lib/ldap/master-slapd.replog<br>
<br>
# Load dynamic backend modules:<br>
# modulepath /usr/sbin/openldap<br>
# moduleload back_ldap.la<br>
# moduleload back_ldbm.la<br>
# moduleload back_passwd.la<br>
# moduleload back_shell.la<br>
<br>
# The next two lines allow use of TLS for connections using a dummy test<br>
# certificate, but you should generate a proper certificate by changing to<br>
# /usr/share/ssl/certs, running "make slapd.pem", and fixing permissions on<br>
# slapd.pem so that the ldap user or group can read it.<br>
#TLSCertificateFile /usr/share/ssl/certs/slapd.pem<br>
#TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem<br>
<br>
#######################################################################<br>
# ldbm database definitions<br>
#######################################################################<br>
<br>
database ldbm<br>
suffix "dc=xuser,dc=net"<br>
rootdn "cn=Manager,dc=xuser,dc=net"<br>
#rootdn "cn=Manager,dc=my-domain,dc=com"<br>
#rootdn "cn=Manager,o=My Organization Name,c=US"<br>
# Cleartext passwords, especially for the rootdn, should<br>
# be avoided. See slappasswd(8) and slapd.conf(5) for details.<br>
# Use of strong authentication encouraged.<br>
rootpw secret<br>
# rootpw secret<br>
# rootpw {crypt}ijFYNcSNctBYg<br>
# The database directory MUST exist prior to running slapd AND<br>
# should only be accessible by the slapd/tools. Mode 700 recommended.<br>
directory /var/lib/ldap<br>
# Indices to maintain<br>
index objectClass,uid,uidNumber,gidNumber,memberUid eq<br>
index cn,mail,surname,givenname eq,subinitial<br>
# Replicas to which we should propagate changes<br>
#replica ldap-1.example.com:389 tls=yes<br>
# bindmethod=sasl saslmech=GSSAPI<br>
# authcId=host/ldap-master.example.com@EXAMPLE.COM<br>
<br>
五、FAQ<br>
Q:在本地ftp localhost输入用户名、密码回车后。等很久才进入FTP Server<br>
A:ftp 127.0.0.1<br>
<br>
Q:在远程服务器上ftp ip输入用户名、密码回车后。等很久才进入FTP Server<br>
A:LDAPServer localhost 改为 LDAPServer 127.0.0.1<br>
<br>
Q:[root@linux mod_ldap-2.8.10]# ftp 127.0.0.1<br>
Connected to 127.0.0.1 (127.0.0.1).<br>
500 FTP server shut down (going down at Tue Dec 17 19:00:00 2002) -- please try again later.<br>
ftp><br>
A:rm –rf /etc/shutmsg<br>
Q:登录Ftp Server 提示<br>
530 Login incorrect.<br>
Login failed.<br>
我确认输入的用户、密码决对正确<br>
A:在登录ProFTPD时加参数proftpd –d5 –n会输出调试信息。你可以在其中<br>
找到答案。如果在调试信息中找到这一行no such user 'xxxx'<br>
可能是与MySQL/OpenLDAP连接有问题。<br>
Q:我在网上看见很多介绍如何安装ProFTPD文章,阅读大量的How to,按How to一步一步做,从来没有安装成功过。<br>
A:网上很多文章,比较老,很多定义现以不在使用如:<br>
SQLConnectInfo laftp@localhost 用户名 口令<br>
SQLAuthTypes Plaintext Backend<br>
SQLAuthoritative ON<br>
SQLDefaultGID 1001<br>
SQLDefaultUID 1001<br>
SQLDoAuth ON<br>
SQLDoGroupAuth ON<br>
SQLGidField gid<br>
SQLGroupGIDField gid<br>
SQLGroupMembersField members<br>
SQLGroupTable ftpgroup<br>
SQLGroupnameField groupname<br>
SQLHomedirField homedir<br>
SQLMinUserUID 400<br>
SQLMinUserGID 400<br>
SQLPasswordField passwd<br>
SQLUidField uid<br>
SQLUserTable ftpuser<br>
SQLUsernameField userid<br>
SQLLoginCountField count<br>
########################################################<br>
LDAPServer "localhost"<br>
LDAPPrefix "dc=horde,dc=net"<br>
LDAPDN "cn=thedn,dc=horde,dc=net"<br>
LDAPDNPass "ldap_dnpass"<br>
LDAPNegativeCache on<br>
<br>
主页地址:<br>
http://www.9812.net<br>
http://www.kdeopen.com<br>
http://www.xaid.net<br>
http://www.xuser.net<br>
<br>
OICQ:13721218<br>
ICQ:101888222<br>
<br>
作者:Netkiller(陈景峰)<br>
2002年12月17日星期二 第一版《ProFTPD + MySQL / OpenLDAP 用户认证》<br>
如有问题E-Mail: netkiller@9812.net<br>
<br>
声明:转载请保持此文档完整
</FONT><br>
</TD>
</TR>
<TR>
<TD colSpan=2><FONT
class=middlefont></FONT><BR>
<FONT
class=normalfont>全文结束</FONT> </TD>
</TR>
<TR>
<TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2
height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
<TD vAlign=top width="20%"
background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2>
<DIV align=center>
<table class=tableoutline cellspacing=1 cellpadding=4
width="100%" align=center border=0>
<tr class=firstalt>
<td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
<font class=normalfont><b>所有分类</b></font></td>
</tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td> </tr> </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td> </tr> </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%> <table width=100% border=0> <tr> <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td> </tr> </table></td></tr> </table>
</DIV></TD></TR>
<TR vAlign=top>
<TD width="80%">
<DIV align=center><BR>
</DIV>
</TD></TR></TBODY></TABLE></TD></TR>
</TABLE></TD></TR>
</TABLE>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee
border=0><TBODY>
<TR>
<TD width="50%">
<P><FONT class=middlefont>版权所有 © 2004 <A
href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
违者必究. </FONT></P>
</TD>
<TD width="50%">
<DIV align=right><FONT class=middlefont>Powered by: <A
href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
</TD></TR></TBODY></TABLE>
<CENTER></CENTER></TD></TR>
</TABLE></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -