J’ai plusieurs PC sous Windows 10 Pro et je souhaiterais pouvoir gérer les utilisateurs via un serveur AD.
J'ai pu voir que installer un serveur Samba AD sur Raspberry était possible.
J'ai pu suivre plusieurs tuto, mais sans succès : Je souhaiterais savoir si il y a des personnes qui peuvent m'aider (je vais détailler mes manips
J’ai principalement suivi le tuto offi de Samba.
Sachant que quand je test d'installer Samba je pars d'une version Buster lite.
Je commence par un traditionnel :
Code: Select all
sudo apt-get update && sudo apt-get upgradePuis j’ai ajouté au fichier /etc/hosts la ligne suivante :
Code: Select all
192.168.1.150 DC1.dohakor.localCode: Select all
DC1.dohakor.localCode: Select all
interface eth0
static ip_address=192.168.1.150/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
static domain_serch=dohakor.localCode: Select all
pi@DC1:~ $Code: Select all
sudo apt-get install acl attr samba samba-dsdb-modules samba-vfs-modules winbind libpam-winbind libnss-winbind libpam-krb5 krb5-config krb5-user dnsutils smbclient -yDefault Kerberos realm: DOHAKOR.LOCAL
Kerberos servers: dohakor.local
Administrative server: DC1.dohakor.local
Pour provisionner je procède à un
Code: Select all
smbd -b | grep "CONFIGFILE"Code: Select all
samba-tool domain provision --use-rfc2307 --interactiveRealm [DOHAKOR.LOCAL]:
Domain [DOHAKOR]:
Server Role (dc, member, standalone) [dc]:
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.1.1]:
En revanche, pendant la provision, j’ai remarqué la ligne suivante :
Code: Select all
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs.Ensuite je modifie le fichier /etc/resolv.conf pour y ajouter les lignes suivantes :
Code: Select all
search dohakor.local
nameserver 192.168.1.150Code: Select all
sudo samba-tool dns zonecreate DC1.dohakor.local 1.168.192.in-addr.arpaCode: Select all
Failed to connect host 192.168.1.150 on port 135 - NT_STATUS_CONNECTION_REFUSED
Failed to connect host 192.168.1.150 (DC1.dohakor.local) on port 135 - NT_STATUS_CONNECTION_REFUSED.
ERROR: Connecting to DNS RPC server DC1.dohakor.local failed with (3221226038L, 'The transport-connection attempt was refused by the remote system.')Après la commande
Code: Select all
sudo cp /var/lib/samba/private/krb5.conf /etc/krb5.conf J’ai eu le droit à cela :
Code: Select all
2020/05/11 08:43:07.557844, 0] ../lib/util/debug.c:1063(reopen_logs_internal) Unable to open new log file '/var/log/samba/log.samba': Permission denied [2020/05/11 08:43:07.558176, 0] ../source4/smbd/server.c:587(binary_smbd_main) samba version 4.9.5-Debian started. Copyright Andrew Tridgell and the Samba Team 1992-2018Cependant, après la commande
Code: Select all
smbclient -L localhost -U%Je ne vois pas ce que je fais de malUnable to initialize messaging context do_connect: Connection to localhost failed (Error NT_STATUS_CONNECTION_REFUSED)
Merci par avance.