Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisione Revisione precedente Prossima revisione | Revisione precedente | ||
|
debian:joinad [2020/12/02 16:50] stefano |
debian:joinad [2023/04/17 14:25] (versione attuale) |
||
|---|---|---|---|
| Linea 8: | Linea 8: | ||
| # | # | ||
| - | impostare su resolv.conf solo i nameserver | + | impostare su resolv.conf solo i nameserver\\ |
| nameserver xx.xx.xx.xx | nameserver xx.xx.xx.xx | ||
| | | ||
| - | fermare e disabilitare systemd-resolved | + | fermare e disabilitare systemd-resolved\\ |
| #systemctl disable systemd-resolved | #systemctl disable systemd-resolved | ||
| #systemctl stop systemd-resolved | #systemctl stop systemd-resolved | ||
| - | + | installare\\ | |
| - | + | | |
| - | ==== con net ads ==== | + | |
| - | + | ||
| - | comunque una vola avviato eseguire subito:\\ | + | |
| - | pcs property set stonith-enabled=false | + | |
| - | pcs property set no-quorum-policy=ignore | + | |
| - | + | ||
| - | con debian bisogna usare crmsh \\ | + | |
| - | apt-get install | + | |
| - | + | ||
| - | poi entrare nella configurazione con\\ | + | |
| - | crm configure | + | |
| - | + | ||
| - | eseguire i seguenti passi\\ | + | |
| - | primitive p_drbd_0 ocf: | + | |
| - | ms ms_drbd_0 p_drbd_0 meta master-max=" | + | |
| - | + | ||
| - | rendere esecutivi i comandi\\ | + | |
| - | commit | + | |
| - | + | ||
| - | creare l' | + | |
| - | pcs resource create clstIP IPaddr2 ip=" | + | |
| | | ||
| + | verificare prima del join\\ | ||
| + | #realm discover casa.int | ||
| - | https://github.com/ | + | casa.int |
| + | type: kerberos | ||
| + | realm-name: CASA.INT | ||
| + | domain-name: casa.int | ||
| + | configured: no | ||
| + | server-software: active-directory | ||
| + | client-software: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | creare / | ||
| + | [libdefaults] | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | rdns = false | ||
| + | | ||
| + | | ||
| - | per la gestione del cluster su può usare pcs via web:\\ | + | join\\ |
| - | https:// | + | realm join -U administrator dominio.it |
| + | verificare dopo il join\\ | ||
| + | #realm discover casa.int | ||
| - | ==== info ==== | + | casa.int |
| + | type: kerberos | ||
| + | realm-name: CASA.INT | ||
| + | domain-name: | ||
| + | configured: kerberos-member | ||
| + | server-software: | ||
| + | client-software: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | required-package: | ||
| + | login-formats: | ||
| + | login-policy: | ||
| - | To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies\\ | + | altri installati\\ |
| + | apt-get install acl attr | ||
| - | sudo apt install -y realmd | ||
| - | sudo apt install -y sssd-tools sssd libnss-sss libpam-sss adcli | ||
| - | sudo apt install -y realmd packagekit | ||
| - | Join the server to your Active Directory-Domain\\ | + | ==== con net ads ==== |
| - | sudo realm join yourdomain.tld --user administrator | + | inst con ins dominio\\ |
| + | abilitare ssh root\\ | ||
| + | ip statico\\ | ||
| + | hosts senza search\\ | ||
| + | resolv.conf \\ | ||
| + | interface ip statico + dns-nameserver\\ | ||
| + | reboot\\ | ||
| - | If you need to, replace “administrator” with another authorized | + | apt-get install samba winbind libnss-winbind libpam-winbind acl realmd sssd-tools adcli packagekit samba-common samba-common-bin samba-libs resolvconf krb5-config smbclient krb5-user |
| - | If the above command fails:\\ | + | stop samba e winbind\\ |
| - | check if your user has the required permissions\\ | + | |
| - | check the password\\ | + | |
| - | try the following:\\ | + | |
| - | | + | |
| - | poi per la condivisione\\ | + | pulire file tdb ldb\\ |
| - | chown "CASA\\ginopino:CASA\\domain users" /direct/ | + | editare nsswitch\\ |
| + | passwd: files winbind systemd sss | ||
| + | group: | ||
| + | shadow: | ||
| - | ===== attuale ===== | + | krb5.conf viene automaticamente editato durante l' |
| - | sito prova:\\ | + | editare smb.conf \\ |
| - | https:// | + | |
| - | https:// | + | |
| + | [global] | ||
| - | per il join al dominio\\ | + | |
| - | + | ||
| - | il file smb.conf\\ | + | |
| - | + | ||
| - | [global] | + | |
| - | + | ||
| - | | + | |
| security = ADS | security = ADS | ||
| - | realm = CASA.INT | + | realm = DOMINIO.INT |
| vfs objects = acl_xattr | vfs objects = acl_xattr | ||
| map acl inherit = Yes | map acl inherit = Yes | ||
| Linea 94: | Linea 109: | ||
| idmap config * : backend = tdb | idmap config * : backend = tdb | ||
| idmap config * : range = 3000-7999 | idmap config * : range = 3000-7999 | ||
| + | idmap config DOMINIO : backend = rid | ||
| + | idmap config DOMINIO : schema_mode = rfc2307 | ||
| + | idmap config DOMINIO : range = 10000-999999 | ||
| winbind use default domain = true | winbind use default domain = true | ||
| winbind nss info = rfc2307 | winbind nss info = rfc2307 | ||
| Linea 99: | Linea 117: | ||
| winbind enum groups = yes | winbind enum groups = yes | ||
| - | verificare krb5.conf\\ | ||
| - | e nsswitch.conf\\ | ||
| - | | + | |
| - | group: | + | |
| + | net ads testjoin | ||
| + | avviare prima winbind poi smbd\\ | ||
| + | systemctl enable smbd winbind | ||
| + | | ||
| + | verifica con\\ | ||
| + | wbinfo --ping-dc | ||
| + | | ||
| + | altro\\ | ||
| + | getent group " | ||
| - | cambiare password hacluster\\ | ||
| - | eseguire corosync-keygen \\ | ||
| - | copiare sull' | ||
| - | per il cluster c'è poco da fare, aggiungere solo i nodi al nodelist { } \\ | + | creare condivisione\\ |
| - | cambiare il nome del cluster\\ | + | |
| - | aggiungere two_node:1 alla sezione del quorum { } \\ | + | |
| - | avviare corosync e pacemaker\\ | + | riavviare\\ |
| - | pcs property set stonith-enabled=false | + | attribuire |
| - | pcs property set no-quorum-policy=ignore | + | |
| - | + | ||
| - | poi usare crm per aggiungere le risorse\\ | + | |
| - | | + | |
| - | ms ms_drbd_0 p_drbd_0 meta master-max=" | + | |
| + | oppure \\ | ||
| | | ||
| + | setfacl -R -m g:" | ||
| + | |||
| + | ==== ATTENZIONE ==== | ||
| + | |||
| + | in alcuni casi è necessario disabilitare o disinstallare resolvconf\\ | ||
| + | perchè non permette di mantenere l' | ||
| + | |||