Вот такая проблема решил настроить Proftpd сервер с аутентификацией OpenLDAP (разумеется связка samba+ldap+dhcp+dns уже отлично работает), вроде бы всё собралось правильно но вот запускаться не хочет показывает следущее:
Код: Выделить всё
[23:45:13] main@root [etc]#/usr/local/etc/rc.d/proftpd start
Starting proftpd.
main.fox.lab proftpd[39149]: Fatal: unknown configuration directive 'LDAPServer' on line 9 of '/usr/local/etc/proftpd.conf'
/usr/local/etc/rc.d/proftpd: WARNING: failed to start proftpd
Код: Выделить всё
proftpd-1.3.4a_1 Highly configurable FTP daemon
Код: Выделить всё
[23:52:00] main@root [proftpd]#make showconfig
===> The following configuration options are available for proftpd-1.3.4a_1:
BAN=off "Include mod_ban (requires CTRLS)"
COPY=off "Include mod_copy"
CLAMAV=off "Include mod_clamav"
CTRLS=on "Enable controls via ftpdctl"
CTRLS_ADMIN=on "Include mod_ctrls_admin (requires CTRLS)"
DEFLATE=off "Include mod_deflate"
DYNMASQ=off "Include mod_dynmasq"
EXEC=off "Include mod_exec"
HTMLDOCS=off "Include HTML documentation"
IFSESSION=off "Include mod_ifsession"
IFVERSION=off "Include mod_ifversion"
IPV6=off "Support IPv6"
LDAP=on "Include mod_ldap"
LDAP_TLS=off "TLS for mod_ldap (requires LDAP, TLS)"
MEMCACHE=off "Include mod_memcache"
NLS=on "Use nls (builds mod_lang)"
ODBC=off "Include mod_sql_odbc (requires SQL)"
PCRE=on "Use pcre for regular expressions"
QOS=off "Include mod_qos"
QUOTATAB=off "Include mod_quotatab"
QUOTATAB_FILE=off "Include mod_quotatab_file"
QUOTATAB_LDAP=off "Include mod_quotatab_ldap (requires LDAP)"
QUOTATAB_SQL=off "Include mod_quotatab_sql (requires SQL)"
QUOTATAB_RADIUS=off "Include mod_quotatab_radius"
SFTP=off "Include mod_sftp"
SFTP_SQL=off "Include mod_sftp_sql (requires SFTP, SQL)"
SFTP_PAM=off "Include mod_sftp_pam (requires SFTP)"
SITE_MISC=off "Include mod_site_misc"
SHAPER=off "Include mod_shaper (requires CTRLS)"
SQL=off "Include mod_sql"
SQL_PASSWD=off "Include mod_sql_passwd (requires SQL)"
SQLITE=off "Include mod_sql_sqlite (requires SQL)"
RADIUS=off "Include mod_radius"
RATIO=off "Include mod_ratio"
README=off "Include mod_readme"
REWRITE=off "Include mod_rewrite"
TLS=off "Include mod_tls"
TLS_MEMCACHE=off "mod_tls_memcache (requires MEMCACHE)"
TLS_SHMCACHE=off "TLS SHM session cache (requires TLS)"
TDS=off "Include mod_sql_tds (requires SQL)"
UNIQUE=off "Include mod_unique_id"
WRAP=off "Include mod_wrap2"
WRAP_FILE=off "Include mod_wrap2_file (requires WRAP)"
WRAP_SQL=off "Include mod_wrap2_sql (requires SQL, WRAP)"
===> Use 'make config' to modify these settings
Код: Выделить всё
[23:49:45] main@root [etc]#cat proftpd.conf
ServerName "MY FTP Server"
ServerType standalone
DefaultServer on
ScoreboardFile /var/run/proftpd.scoreboard
Port 21
MasqueradeAddress 192.168.224.224
LDAPServer "dap://127.0.0.1/:389??sub"
LDAPDNInfo "cn=root,dc=fox,dc=lab" "password"
LDAPDoAuth on "ou=users,dc=fox,dc=lab" "(&(uid=%v)(objectclass=posixAccount))"
LDAPAuthBinds on
LDAPDefaultAuthScheme "crypt"
LDAPDoUIDLookups off
LDAPDoGIDLookups off
PersistentPasswd off
LDAPGenerateHomedir on 0755
LDAPGenerateHomedirPrefix /home/samba/homes
CreateHome on 0755
Umask 022
MaxInstances 30
User nobody
Group nogroup
DefaultRoot ~
AllowOverwrite on
<Limit SITE_CHMOD>
DenyAll
</Limit>
Лдап версия:
Код: Выделить всё
[23:52:05] main@root [proftpd]#pkg_info |grep openldap
openldap-client-2.4.26 Open source LDAP client implementation
openldap-server-2.4.26 Open source LDAP server implementation
Спасибо за внимание.