I am struggling with my migration tests of my Samba 3 domain controller in NT4 mode to Samba 4.19. I own a domain name that I use for my website and emails; it is currently managed by OVH, and I have no intention of regaining control of it.
External domain name: masociete.fr
Local NT4 domain name: marue205
Local DNS zone: marue205
On the future AD server, the Kerberos part is configured as follows:
Code: Select all
[libdefaults]
default_realm = marue205.masociete.fr
dns_lookup_kdc = true
dns_lookup_realm = falseCode: Select all
netbios name = svad01
server string = Gestionnaire de domaine
workgroup = marue205Code: Select all
samba-tool domain classicupgrade --dbdir=/root/backup/samba/var --realm=MARUE205.MASOCIETE.FR /root/backup/samba/etc/smb.confCode: Select all
[global]
netbios name = SVAD01
realm = MARUE205.MASOCIETE.FR
server role = active directory domain controller
workgroup = MARUE205
idmap_ldb:use rfc2307 = yes
[sysvol]
path = /var/lib/samba/sysvol
read only = No
[netlogon]
path = /var/lib/samba/sysvol/marue205.masociete.fr/scripts
read only = NoCode: Select all
[profiles]
path = /media/ds_cifs_profiles
read only = No
csc policy = disable
vfs objects = acl_xattr
force create mode = 0600
force directory mode = 0700
store dos attributes = yesI rebooted everything and launched a VM that connected without issue to the old NT4 domain controller (I stopped the smbd and nmbd processes on the old server). The session opened, but I got a notification saying it was on a temporary profile. Even with the log level set to 3, the Samba log didn't show any messages... in fact, I didn't even get any notification that a user had logged in. It's as if the VM can't find the Active Directory server, even though both are the only devices on the network.
Once the temporary Windows session was open, I tried accessing my Active Directory directly in the file explorer address bar via \\svad01, and magically, I could see all the shares. I could access the profiles share and create a directory within it. This eliminated the permissions problem.
In the Windows event console of the VM (it's Windows 7, I know it's old, but I'm migrating to Samba 4 so I can upgrade to Windows 10), I get the following message:
Code: Select all
Windows ne peut pas trouver de copie serveur de votre profil itinérant et tente de vous ouvrir une session avec votre profil local. Les modifications apportées au profil ne seront pas copiées sur le serveur lorsque vous fermerez votre session. Ce problème peut être causé par des problèmes réseau ou des droits de sécurité insuffisants.
DÉTAIL - Nom de réseau introuvable.
Id : 1521
Utilisateur : MARUE205\userDeTest
Ordinateur : pc01.marue205.masociete.frOn the network side, DHCP manages the configuration, and on the test machine it looks like this:
Code: Select all
Configuration IP de Windows
Nom de l'hôte . . . . . . . . . . : pc01
Suffixe DNS principal . . . . . . : marue205.masociete.fr
Type de noeud. . . . . . . . . . : Hybride
Routage IP activé . . . . . . . . : Non
Proxy WINS activé . . . . . . . . : Non
Liste de recherche du suffixe DNS.: marue205.masociete.fr
Carte Ethernet Connexion au réseau local 4 :
Suffixe DNS propre à la connexion. . . : marue205.masociete.fr
Description. . . . . . . . . . . . . . : Carte Intel(R) PRO/1000 MT pour stat
ion de travail
Adresse physique . . . . . . . . . . . : 08-00-27-8A-4A-F7
DHCP activé. . . . . . . . . . . . . . : Oui
Configuration automatique activée. . . : Oui
Adresse IPv4. . . . . . . . . . . . . .: 192.168.XXX.125(préféré)
Masque de sous-réseau. . . . . . . . . : 255.255.255.0
Bail obtenu. . . . . . . . . . . . . . : lundi 22 avril 2024 16:29:56
Bail expirant. . . . . . . . . . . . . : lundi 22 avril 2024 17:29:55
Passerelle par défaut. . . . . . . . . : 192.168.XXX.254
Serveur DHCP . . . . . . . . . . . . . : 192.168.XXX.41
Serveurs DNS. . . . . . . . . . . . . : 192.168.XXX.41
192.168.XXX.38
Serveur WINS principal . . . . . . . . : 192.168.XXX.41
NetBIOS sur Tcpip. . . . . . . . . . . : ActivéCode: Select all
C:\Users\TEMP>ipconfig /flushdns
Configuration IP de Windows
Cache de résolution DNS vidé.
C:\Users\TEMP>ipconfig /flushdns
Configuration IP de Windows
Cache de résolution DNS vidé.
C:\Users\TEMP>ipconfig /flushdns
Configuration IP de Windows
Cache de résolution DNS vidé.
C:\Users\TEMP>ping svad01
Envoi d'une requête 'ping' sur svad01.marue205.masociete.fr [192.168.XXX.41] avec
32 octets de données :
Réponse de 192.168.XXX.41 : octets=32 temps<1ms TTL=64
Réponse de 192.168.XXX.41 : octets=32 temps<1ms TTL=64
Réponse de 192.168.XXX.41 : octets=32 temps<1ms TTL=64
Réponse de 192.168.XXX.41 : octets=32 temps<1ms TTL=64
Statistiques Ping pour 192.168.XXX.41:
Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 0ms, Maximum = 0ms, Moyenne = 0msThanks in advance.
Philippe.
