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:55] stefano |
debian:joinad [2023/04/17 14:25] (versione attuale) |
||
|---|---|---|---|
| Linea 66: | Linea 66: | ||
| login-formats: | login-formats: | ||
| login-policy: | login-policy: | ||
| + | |||
| + | altri installati\\ | ||
| + | apt-get install acl attr | ||
| ==== con net ads ==== | ==== con net ads ==== | ||
| - | comunque una vola avviato eseguire subito:\\ | + | inst con ins dominio\\ |
| - | pcs property set stonith-enabled=false | + | abilitare ssh root\\ |
| - | pcs property set no-quorum-policy=ignore | + | ip statico\\ |
| + | hosts senza search\\ | ||
| + | resolv.conf \\ | ||
| + | interface ip statico + dns-nameserver\\ | ||
| + | reboot\\ | ||
| - | con debian bisogna usare crmsh \\ | + | |
| - | | + | |
| - | + | ||
| - | poi entrare nella configurazione con\\ | + | |
| - | crm configure | + | |
| - | eseguire i seguenti passi\\ | + | stop samba e winbind\\ |
| - | primitive p_drbd_0 ocf: | + | |
| - | ms ms_drbd_0 p_drbd_0 meta master-max=" | + | |
| - | rendere esecutivi i comandi\\ | + | smbd -b |egrep " |
| - | commit | + | |
| - | creare l'IP\\ | + | pulire file tdb ldb\\ |
| - | pcs resource create clstIP IPaddr2 ip=" | + | |
| - | | + | |
| - | https:// | + | editare nsswitch\\ |
| + | passwd: | ||
| + | group: | ||
| + | shadow: | ||
| - | per la gestione del cluster su può usare pcs via web:\\ | + | krb5.conf viene automaticamente editato durante l' |
| - | https:// | + | |
| + | editare smb.conf \\ | ||
| - | ==== info ==== | + | [global] |
| - | To domain-join an debian / ubuntu – server you first need to install realmd and its dependencies\\ | + | |
| - | + | ||
| - | 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\\ | + | |
| - | + | ||
| - | sudo realm join yourdomain.tld --user administrator | + | |
| - | + | ||
| - | If you need to, replace “administrator” with another authorized user.\\ | + | |
| - | + | ||
| - | If the above command fails:\\ | + | |
| - | check if your user has the required permissions\\ | + | |
| - | check the password\\ | + | |
| - | try the following: | + | |
| - | + | ||
| - | sudo realm join yourdomain.tld --user administrator --install=/ | + | |
| - | + | ||
| - | poi per la condivisione\\ | + | |
| - | + | ||
| - | chown " | + | |
| - | + | ||
| - | + | ||
| - | ===== attuale ===== | + | |
| - | + | ||
| - | sito prova:\\ | + | |
| - | https:// | + | |
| - | https:// | + | |
| - | + | ||
| - | + | ||
| - | 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 145: | 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 150: | 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 \\ |
| - | | + | |
| - | + | | |
| - | poi usare crm per aggiungere le risorse\\ | + | |
| - | primitive p_drbd_0 ocf: | + | oppure \\ |
| - | ms ms_drbd_0 p_drbd_0 meta master-max=" | + | |
| | | ||
| + | setfacl -R -m g:" | ||
| + | |||
| + | ==== ATTENZIONE ==== | ||
| + | |||
| + | in alcuni casi è necessario disabilitare o disinstallare resolvconf\\ | ||
| + | perchè non permette di mantenere l' | ||
| + | |||