documentazione_3di_riservata:manuali_sysadmin:config_pureftp_attribute
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
documentazione_3di_riservata:manuali_sysadmin:config_pureftp_attribute [2019/01/30 12:01] – [Config Pure FTP] epapakroni | documentazione_3di_riservata:manuali_sysadmin:config_pureftp_attribute [Data sconosciuta] (versione attuale) – eliminata - modifica esterna (Data sconosciuta) 127.0.0.1 | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ====== Importare schema LDAP ====== | ||
- | |||
- | In questo esempio si userà l' | ||
- | |||
- | a) Creare il file pureftpd.schema con il seguente contenuto: | ||
- | |||
- | <code xml># | ||
- | # pureftpd.schema | ||
- | # | ||
- | # Pure-FTPd User LDAP Schema | ||
- | # See README.LDAP in the Pure-FTPd documentation for more information. | ||
- | # | ||
- | # Written by Ben Gertzfield <che =AT= debian -DOT- org> | ||
- | # | ||
- | |||
- | ## Pure-FTPd-related LDAP attributes | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.1 NAME ' | ||
- | DESC 'Quota (in number of files) for an FTP user' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.2 NAME ' | ||
- | DESC 'Quota (in megabytes) for an FTP user' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.3 NAME ' | ||
- | DESC 'Ratio (compared with FTPRatioDown) for uploaded files' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.4 NAME ' | ||
- | DESC 'Ratio (compared with FTPRatioUp) for downloaded files' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.5 NAME ' | ||
- | DESC ' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.6 NAME ' | ||
- | DESC ' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.7 NAME ' | ||
- | DESC ' | ||
- | EQUALITY caseIgnoreIA5Match | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.8 NAME ' | ||
- | DESC ' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.9 NAME ' | ||
- | DESC ' | ||
- | EQUALITY integerMatch | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE ) | ||
- | |||
- | attributetype ( 1.3.6.1.4.1.6981.11.3.10 NAME ' | ||
- | DESC 'FTP directory' | ||
- | EQUALITY caseIgnoreIA5Match | ||
- | SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE ) | ||
- | |||
- | ## New Pure-FTPd object type | ||
- | |||
- | objectclass ( 1.3.6.1.4.1.6981.11.2.3 NAME ' | ||
- | DESC ' | ||
- | SUP top AUXILIARY | ||
- | MAY ( FTPStatus $ FTPQuotaFiles $ FTPQuotaMBytes $ FTPUploadRatio $ | ||
- | FTPDownloadRatio $ FTPUploadBandwidth $ FTPDownloadBandwidth $ | ||
- | FTPuid $ FTPgid $ FTPHomeDir ) )</ | ||
- | |||
- | b) Copiare il file nelle seguenti cartelle: | ||
- | |||
- | * / | ||
- | * / | ||
- | * / | ||
- | |||
- | c) Aggiungere in / | ||
- | |||
- | <code xml># Indexes for Pure-FTPd LDAP attributes. | ||
- | index FTPQuotaFiles, | ||
- | index FTPUploadRatio, | ||
- | index FTPUploadBandwidth, | ||
- | index FTPStatus, | ||
- | |||
- | d) Eseguire i seguenti cli: | ||
- | |||
- | * ''/ | ||
- | * ''/ | ||
- | |||
- | ====== Creare gli attributi ====== | ||
- | |||
- | Creare gli attributi secondo lo schema. Cioè. objectClass è PureFTPdUser e gli attributi con le loro caratteristiche sono: | ||
- | * FTPHomeDir | ||
- | * FTPgid con valore integer 1000 | ||
- | * FTPuid con valore integer 1000 | ||
- | * FTPStatus con valore string enabled/ | ||
- | |||
- | Usare il web per creare gli attributi. Andare su LDAP directory. Scegliere dal albero univention-custom attributes. Clicare su **add**. Andate su **Setting: Extended Attribute**. Compilare con il nome del attributo le seguenti: | ||
- | * Unique name * | ||
- | * UDM CLI name | ||
- | * Short description * | ||
- | |||
- | a) In Module scegliete User. | ||
- | |||
- | b) In LDAP Mapping 'LDAP object class *' è PureFTPdUser e gli attributi secondo lista FTPHomeDir o FTPgid o FTPStatus oppure FTPuid. Clicare ' | ||
- | Per ogni attributo si fa lo stesso procedimento. | ||
- | |||
- | c) In UMC inserisci 'Tab name' come il nome del attributo se si desidera. | ||
- | |||
- | d) In 'Data Type' scegli 'Edit after Creation' | ||
- | |||
- | Il valore FTPStatus si puo cambiare nel utente. Se si mette il valore ' | ||
- | |||
- | ====== Config Pure FTP ====== | ||
- | |||
- | Questa è la config giusta per l' | ||
- | |||
- | <code xml> | ||
- | ############################################# | ||
- | # # | ||
- | # Sample Pure-FTPd LDAP configuration file. # | ||
- | # See README.LDAP for explanations. | ||
- | # # | ||
- | ############################################# | ||
- | |||
- | |||
- | # Optional: scheme to connect with to LDAP server. Default: ldap | ||
- | # Other possible values: ldaps, ldapi, etc. | ||
- | # Remember to set LDAPPort accordingly. | ||
- | |||
- | LDAPScheme ldap | ||
- | #VerboseLog yes | ||
- | |||
- | # Optional: name of the LDAP server. Default: localhost | ||
- | |||
- | LDAPServer 10.17.61.254 | ||
- | |||
- | |||
- | # Optional: server port. Default: 389 | ||
- | |||
- | LDAPPort 7389 | ||
- | |||
- | |||
- | # Mandatory: the base DN to search accounts from. No default. | ||
- | |||
- | LDAPBaseDN dc=3di, | ||
- | |||
- | |||
- | # Optional: who we should bind the server as. | ||
- | # Default: binds anonymously or binds as ' | ||
- | |||
- | LDAPBindDN uid=Manager, | ||
- | |||
- | |||
- | # Password if we don't bind anonymously | ||
- | # This configuration file should be only readable by root | ||
- | |||
- | LDAPBindPW XcQ91YT3Tk5ToR2i | ||
- | |||
- | # Optional: default UID, when there' | ||
- | |||
- | LDAPDefaultUID 1000 | ||
- | |||
- | |||
- | # Optional: default GID, when there' | ||
- | |||
- | LDAPDefaultGID 1000 | ||
- | |||
- | |||
- | # Filter to use to find the object that contains user info | ||
- | # \L is replaced by the login the user is trying to log in as | ||
- | # The default filter is (& | ||
- | |||
- | |||
- | LDAPFilter (& | ||
- | |||
- | |||
- | # Attribute to get the home directory | ||
- | # Default is homeDirectory (the standard attribute from posixAccount) | ||
- | |||
- | LDAPHomeDir FTPHomeDir | ||
- | |||
- | |||
- | # LDAP protocol version to use | ||
- | # Version 3 (default) is mandatory with recent releases of OpenLDAP. | ||
- | |||
- | # LDAPVersion 3 | ||
- | |||
- | |||
- | # Optional: use TLS to connect to the LDAP server | ||
- | # Note: if ldaps scheme is used, this property has no effect | ||
- | # LDAPUseTLS | ||
- | |||
- | |||
- | # Can be PASSWORD or BIND. | ||
- | # PASSWORD retrieves objects and checks against the userPassword attribute | ||
- | # BIND tries to bind | ||
- | |||
- | LDAPAuthMethod PASSWORD | ||
- | |||
- | |||
- | # Optional: default home directory if there' | ||
- | |||
- | # LDAPDefaultHomeDirectory /var/shared | ||
- | </ | ||
- | |||
/data/attic/documentazione_3di_riservata/manuali_sysadmin/config_pureftp_attribute.1548846062.txt.gz · Ultima modifica: 2019/01/30 12:01 da epapakroni