doc:appunti:linux:sa:sldap
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:linux:sa:sldap [2011/10/28 16:42] – [Inizializzazione o restore di un database] niccolo | doc:appunti:linux:sa:sldap [2014/12/25 16:26] (current) – [Configurazione TLS] niccolo | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| ===== Inizializzazione o restore di un database ===== | ===== Inizializzazione o restore di un database ===== | ||
| - | Nell' | + | Nell' |
| Per recuperare o inizializzare il contenuto del database (ad esempio facendo il restore di un precedente **'' | Per recuperare o inizializzare il contenuto del database (ad esempio facendo il restore di un precedente **'' | ||
| Line 36: | Line 36: | ||
| slapadd -b ' | slapadd -b ' | ||
| / | / | ||
| + | </ | ||
| + | |||
| + | Dopo l' | ||
| + | |||
| + | < | ||
| + | ldap_add: Other (e.g., implementation specific) error (80) | ||
| + | additional info: index generation failed | ||
| </ | </ | ||
| Notare che **non è in genere possibile usare '' | Notare che **non è in genere possibile usare '' | ||
| + | |||
| + | In modo analogo con '' | ||
| ===== Creazione di un indice ===== | ===== Creazione di un indice ===== | ||
| Line 146: | Line 155: | ||
| Per utilizzare i protocolli cifrati **ldaps** (su porta 636 TCP) oppure **ldap con '' | Per utilizzare i protocolli cifrati **ldaps** (su porta 636 TCP) oppure **ldap con '' | ||
| - | Creare un file di configurazione, | + | Creare un file di configurazione, |
| < | < | ||
| Line 153: | Line 162: | ||
| # following command: | # following command: | ||
| # | # | ||
| - | # openssl req -config /etc/ldap/tls/ldap.my.rigacci.org.cnf \ | + | # openssl req -config /etc/ldap/ssl/ |
| # -new -x509 -days 1461 -nodes \ | # -new -x509 -days 1461 -nodes \ | ||
| - | # | + | # |
| - | # -out /etc/ldap/tls/ldap.my.rigacci.org.pem | + | # -out /etc/ldap/ssl/ |
| # | # | ||
| # The resulting file (unencrypted otherwise Slapd can't start | # The resulting file (unencrypted otherwise Slapd can't start | ||
| Line 167: | Line 176: | ||
| distinguished_name | distinguished_name | ||
| - | [ ldap.my.rigacci.org_distinguished_name ] | + | [ ldap.rigacci.org_distinguished_name ] |
| countryName | countryName | ||
| stateOrProvinceName | stateOrProvinceName | ||
| Line 173: | Line 182: | ||
| organizationName | organizationName | ||
| organizationalUnitName | organizationalUnitName | ||
| - | commonName | + | commonName |
| emailAddress | emailAddress | ||
| </ | </ | ||
| Line 182: | Line 191: | ||
| < | < | ||
| - | olcTLSCertificateFile: | + | olcTLSCertificateFile: |
| - | olcTLSCertificateKeyFile: | + | olcTLSCertificateKeyFile: |
| </ | </ | ||
| Line 217: | Line 226: | ||
| Catturando i pacchetti con **'' | Catturando i pacchetti con **'' | ||
| + | |||
| + | ===== Cambio password ===== | ||
| + | |||
| + | Per modificare la password di un record LDAP esiste l' | ||
| + | |||
| + | < | ||
| + | ldappasswd -x -D " | ||
| + | </ | ||
| + | |||
doc/appunti/linux/sa/sldap.1319812948.txt.gz · Last modified: by niccolo
