Navigation
- Startseite
- Alle Kategorien
- Univention Corporate Server (UCS)
- Installation
- Services for Windows
- Kolab2 für UCS
- Scalix für UCS
- Nagios
- Backup
- Virtualisierung
- Softwarepflege und Paketverwaltung
- Bootloader und Bootsplash
- LDAP-Server und Listener/Notifier-Replikation
- SSL-Zertifikate
- Univention Directory Manager (UDM)
- Maildienste, Viren- und Spamerkennung
- Univention Management Console (UMC)
- AD Connector
- DNS und DHCP
- Basis-Systemdienste
- Univention Configuration Registry (UCR)
- Freigaben
- Weitere Serverdienste
- 3rd Party Produkte
- Univention Corporate Desktop (UCD)
- UCS Thin Client Services (UCS TCS)
- UCS@school
- UCS Desktop Virtualization Services (DVS)
- Sitemap
0 users online :: 0 Gäste und 0 Registrierte
FAQs in dieser Kategorie
Tags
Univention Corporate Server (UCS) » Weitere Serverdienste
ID #1100
Wie kann ProFTPd mit LDAP-Authentifikation konfiguriert werden
Problem:
Alle Benutzer eines UCS-Systems sollen sich über den ProFTPd FTP-Server am System anmelden können.
Lösung:
Um die Anmeldung aller Benutzer eines UCS-Systems am ProFTPd FTP-Server zu ermöglichen, kann wie folgt vorgegangen werden:
Installation des Pakets "univention-ftp":
Durch die Installation des Pakets "univention-ftp" wird auch der ProFTPd FTP-Server installiert.
apt-get install univention-ftp
Laden des LDAP-Moduls (in /etc/proftpd/modules.conf):
LoadModule mod_ldap.c
Konfiguration des LDAP-Moduls (in /etc/proftpd/proftpd.conf):
In der folgenden Beispielkonfiguration ist "$ldap_base" durch die entsprechende LDAP-Basis-DN zu ersetzen (diese kann mit dem Befehl "ucr get ldap/base" ermittelt werden).
# Only use LDAP Auth
AuthOrder mod_ldap.c
<IfModule mod_ldap.c>
LDAPServer localhost
LDAPUseTLS on
# Try to bind with given user/passwd
LDAPAuthBinds on
# Get user info (dn, uid, gid) with anonymous bind
LDAPDoAuth on "cn=users,$ldap_base" "(&(uid=%v)(objectclass=posixAccount))"
# GID to name in dir listing
LDAPDoGIDLookups on "cn=groups,$ldap_base" "(&(cn=%v)(objectclass=posixGroup))" "(&(gidNumber=%v)(objectclass=posixGroup))" "(&(memberUid=%v)(objectclass=posixGroup))"
# UID to name in dir listing
LDAPDoUIDLookups on "cn=users,$ldap_base" "(&(uidNumber=%v)(objectclass=posixAccount))"
# Create homedir if not exists
LDAPGenerateHomedir on
</IfModule>
AuthOrder mod_ldap.c
<IfModule mod_ldap.c>
LDAPServer localhost
LDAPUseTLS on
# Try to bind with given user/passwd
LDAPAuthBinds on
# Get user info (dn, uid, gid) with anonymous bind
LDAPDoAuth on "cn=users,$ldap_base" "(&(uid=%v)(objectclass=posixAccount))"
# GID to name in dir listing
LDAPDoGIDLookups on "cn=groups,$ldap_base" "(&(cn=%v)(objectclass=posixGroup))" "(&(gidNumber=%v)(objectclass=posixGroup))" "(&(memberUid=%v)(objectclass=posixGroup))"
# UID to name in dir listing
LDAPDoUIDLookups on "cn=users,$ldap_base" "(&(uidNumber=%v)(objectclass=posixAccount))"
# Create homedir if not exists
LDAPGenerateHomedir on
</IfModule>
In der ProFTPd-Dokumentation können weitere Informationen zur Konfiguration des LDAP-Moduls sowie eine detailierte Beschreibung der verwendeten Optionen eingesehen werden.
Tags: authentifikation, ftp, ldap, proftpd, univention-ftp
Verwandte Artikel:
- Erneuern der SSL-Zertifikate
- Einführung in Bacula
- Relay-Auth mit UGS konfigurieren
- Wichtige Funktionen im UDM nicht verfügbar
- UDM CLI meldet: superordinate object not present
Letzte Änderung der FAQ: 2011-01-27 15:26
Autor: Janis Meybohm
Revision: 1.4
Kommentieren nicht möglich