documentazione_3di_riservata:manuali_sysadmin:ldap_replica
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
documentazione_3di_riservata:manuali_sysadmin:ldap_replica [2018/10/09 09:43] – creata epapakroni | documentazione_3di_riservata:manuali_sysadmin:ldap_replica [Data sconosciuta] (versione attuale) – eliminata - modifica esterna (Data sconosciuta) 127.0.0.1 | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
- | ==== Replica LDAP ==== | ||
- | - Installato openldap su una vm nuova. | ||
- | * apt-get install slapd ldap-utils ldapscripts | ||
- | * apt-get install gnutls-bin ssl-cert | ||
- | - Presi i file da /etc/ldap in cloud hosting | ||
- | - Modificati secondo necessità e disattivata la modalità mirroring | ||
- | - Copiato il certificato ldap e la chiave (ldap.pem ldap.key) | ||
- | - Dati i permessi ad ldap usermod -aG ssl-cert openldap | ||
- | - Vedere anche il file / | ||
- | - Su centos eseguire i seguenti commandi dopo avaer modificato il file / | ||
- | <code xml> | ||
- | rm -rf / | ||
- | chown -R ldap. / | ||
- | slaptest -u | ||
- | slaptest -f / | ||
- | chown -R ldap. / | ||
- | |||
- | ==== Esempio di slapd.conf su eretteo.bo.priv ==== | ||
- | <code xml> | ||
- | # Node 3 # | ||
- | |||
- | # | ||
- | # See slapd.conf(5) for details on configuration options. | ||
- | # This file should NOT be world readable. | ||
- | # | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | |||
- | # Aggiunti per samba | ||
- | include | ||
- | |||
- | # Define global ACLs to disable default read access. | ||
- | |||
- | # Do not enable referrals until AFTER you have a working directory | ||
- | # service AND an understanding of referrals. | ||
- | # | ||
- | |||
- | pidfile | ||
- | argsfile | ||
- | |||
- | # Load dynamic backend modules: | ||
- | # modulepath | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | # moduleload | ||
- | modulepath / | ||
- | moduleload back_hdb.la | ||
- | moduleload syncprov.la | ||
- | |||
- | logfile / | ||
- | loglevel sync | ||
- | |||
- | |||
- | # Sample security restrictions | ||
- | # | ||
- | # | ||
- | # | ||
- | # security ssf=1 update_ssf=112 simple_bind=64 | ||
- | |||
- | # Sample access control policy: | ||
- | # Root DSE: allow anyone to read it | ||
- | # | ||
- | # Other DSEs: | ||
- | # Allow self write access | ||
- | # Allow authenticated users read access | ||
- | # Allow anonymous users to authenticate | ||
- | # | ||
- | #access to dn.base=" | ||
- | #access to dn.base=" | ||
- | # | ||
- | |||
- | #access to * | ||
- | # by dn.base=" | ||
- | |||
- | access to dn.base="" | ||
- | access to dn.base=" | ||
- | access to * | ||
- | by self write | ||
- | by * read | ||
- | # by dn.base=" | ||
- | | ||
- | access | ||
- | by self write | ||
- | by anonymous auth | ||
- | by dn.base=" | ||
- | by * none | ||
- | |||
- | database monitor | ||
- | access to * | ||
- | by dn.exact=" | ||
- | by dn.exact=" | ||
- | by * none | ||
- | |||
- | |||
- | #access to dn.sub=" | ||
- | # by * read | ||
- | # by * search | ||
- | # | ||
- | # | ||
- | ########################### | ||
- | #access to dn.sub=" | ||
- | # by anonymous auth | ||
- | # by self write | ||
- | # by * search | ||
- | |||
- | #access to dn.sub=" | ||
- | # by * read | ||
- | |||
- | #access to * | ||
- | # by * search | ||
- | ############################### | ||
- | # | ||
- | # | ||
- | #access to dn.sub=" | ||
- | # by * read | ||
- | # by anonymous read | ||
- | # | ||
- | #access to * | ||
- | # by self write | ||
- | # by users read | ||
- | # by anonymous auth | ||
- | # | ||
- | # if no access controls are present, the default policy | ||
- | # allows anyone and everyone to read anything but restricts | ||
- | # updates to rootdn. | ||
- | # | ||
- | # rootdn can always read and write EVERYTHING! | ||
- | |||
- | ####################################################################### | ||
- | # BDB database definitions | ||
- | ####################################################################### | ||
- | |||
- | database | ||
- | suffix | ||
- | # < | ||
- | checkpoint | ||
- | rootdn | ||
- | # Cleartext passwords, especially for the rootdn, should | ||
- | # be avoid. | ||
- | # Use of strong authentication encouraged. | ||
- | rootpw | ||
- | # The database directory MUST exist prior to running slapd AND | ||
- | # should only be accessible by the slapd and slap tools. | ||
- | # Mode 700 recommended. | ||
- | directory | ||
- | # Indices to maintain | ||
- | # | ||
- | index | ||
- | index | ||
- | # | ||
- | |||
- | |||
- | # Unix password encryption (CRYPT, MD5, SMD5, SSHA, SHA, CLEARTEXT) | ||
- | # | ||
- | # | ||
- | # # if hash_encrypt is set to CRYPT, you may set a salt format. | ||
- | # # default is " | ||
- | # # passwords if you use " | ||
- | # crypt_salt_format=" | ||
- | # | ||
- | # | ||
- | |||
- | # | ||
- | # Aggiunti per samba | ||
- | index sambaSID | ||
- | index sambaPrimaryGroupSID | ||
- | index sambaDomainName | ||
- | index uniqueMember, | ||
- | index cn, | ||
- | # | ||
- | # | ||
- | # Global section | ||
- | serverID 4 | ||
- | |||
- | # Server 1 | ||
- | syncrepl | ||
- | provider=ldaps:// | ||
- | bindmethod=simple | ||
- | binddn=" | ||
- | credentials=XcQ91YT3Tk5ToR2i | ||
- | searchbase=" | ||
- | tls_reqcert=allow | ||
- | schemachecking=on | ||
- | sizelimit=" | ||
- | timelimit=" | ||
- | type=refreshAndPersist | ||
- | retry=" | ||
- | |||
- | # Server 2 | ||
- | syncrepl | ||
- | provider=ldaps:// | ||
- | bindmethod=simple | ||
- | binddn=" | ||
- | credentials=XcQ91YT3Tk5ToR2i | ||
- | searchbase=" | ||
- | tls_reqcert=allow | ||
- | schemachecking=on | ||
- | sizelimit=" | ||
- | timelimit=" | ||
- | type=refreshAndPersist | ||
- | retry=" | ||
- | |||
- | # Server 3 | ||
- | syncrepl | ||
- | provider=ldaps:// | ||
- | bindmethod=simple | ||
- | binddn=" | ||
- | credentials=XcQ91YT3Tk5ToR2i | ||
- | searchbase=" | ||
- | tls_reqcert=allow | ||
- | schemachecking=on | ||
- | sizelimit=" | ||
- | timelimit=" | ||
- | type=refreshAndPersist | ||
- | retry=" | ||
- | |||
- | ## Server 4 | ||
- | # | ||
- | # provider=ldaps:// | ||
- | # bindmethod=simple | ||
- | # binddn=" | ||
- | # credentials=XcQ91YT3Tk5ToR2i | ||
- | # searchbase=" | ||
- | # schemachecking=on | ||
- | # tls_reqcert=allow | ||
- | # sizelimit=" | ||
- | # timelimit=" | ||
- | # type=refreshAndPersist | ||
- | # retry=" | ||
- | |||
- | mirrormode on | ||
- | overlay syncprov | ||
- | syncprov-checkpoint 100 10 | ||
- | syncprov-sessionlog 100 | ||
- | |||
- | TLSCertificateFile / | ||
- | TLSCertificateKeyFile / | ||
- | TLSCACertificateFile / | ||
- | |||
- | </ | ||
- | |||
- | |||
- | <WRAP center round info 80%> | ||
- | Per un uso interno si possono commentare le righe relative ai certificati ed evitare la parte inerente. | ||
- | </ |
/data/attic/documentazione_3di_riservata/manuali_sysadmin/ldap_replica.1539071022.txt.gz · Ultima modifica: 2018/10/09 09:43 da epapakroni