I've currently got a Ubuntu 18.04 server running Samba?4.7.6 with an NT4 domain that I'd like to migrate to an AD.? I've found the following link but am struggling to match up the steps with the Ubuntu install.?? https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade) I've also found this post that creates a Samba AD on Ubuntu 18.04 from scratch but doesn't have the upgrade steps.?? https://blog.ricosharp.com/posts/2019/Samba-4-Active-Directory-Domain-Controller-on-Ubuntu-18-04-Server Would someone be able to help with some questions??? In the first link, the "Server information used in this HowTo" section lists a bunch of settings.? I'm not sure how that matches up with Ubuntu.?? I'm not using ldap, my smb.conf file has "passdb backend = tdbsam:/var/lib/samba/passdb.tdb" in it if that's any help.?? Under the "Domain controller name" section it talks about a "netbois name =" line in the smb.conf file.? I don't have that in mine but I do have a "workgroup =" line.? Is this the same thing? Does the classicupgrade just "convert" a bunch of files like the passdb.tdb and smb.conf files?? And unless you actually replace the files and start the AD service nothing actually changes??? I think I should stop there.?? Thanks in advance and hopefully this makes some sense.?? Carl
On 15/07/2020 01:14, Carl Hunter via samba wrote:> I've currently got a Ubuntu 18.04 server running Samba?4.7.6 with an NT4 domain that I'd like to migrate to an AD.? I've found the following link but am struggling to match up the steps with the Ubuntu install. > https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade) > I've also found this post that creates a Samba AD on Ubuntu 18.04 from scratch but doesn't have the upgrade steps. > https://blog.ricosharp.com/posts/2019/Samba-4-Active-Directory-Domain-Controller-on-Ubuntu-18-04-ServerThat howto isn't bad, he just got /etc/hosts wrong ;-)> Would someone be able to help with some questions? > In the first link, the "Server information used in this HowTo" section lists a bunch of settings.? I'm not sure how that matches up with Ubuntu.The paths refer to a self compiled Samba, Ubuntu uses different paths e.g. /var/lib/samba> I'm not using ldap, my smb.conf file has "passdb backend = tdbsam:/var/lib/samba/passdb.tdb" in it if that's any help.Just ignore anything to do with ldap> Under the "Domain controller name" section it talks about a "netbois name =" line in the smb.conf file.? I don't have that in mine but I do have a "workgroup =" line.? Is this the same thing?No and you only really need the line if you are changing the computers hostname during the upgrade.> Does the classicupgrade just "convert" a bunch of files like the passdb.tdb and smb.conf files?? And unless you actually replace the files and start the AD service nothing actually changes?Bit more involved than that, all the users and groups are obtained from the existing database (along with passwords and the domain SID). This information is then used to provision a new AD domain.> I think I should stop there. > Thanks in advance and hopefully this makes some sense.Yes, it did ;-) Rowland
Hai, And, ho stop, first line i see in that manual is wrong. # Add this line to /etc/hosts so that dc1 resolves to 192.168.122.70 192.168.122.70 dc1 dc1.ad.ricosharp.com Should be 192.168.122.70 dc1.ad.ricosharp.com dc1 sudo cp /var/lib/samba/private/krb5.conf /etc Not needed, the default install is suffient. And it started with errors just after he sets up. Sorry, i cant recommend this. For new server setup. Well, i can recommend only this guys guide.. https://github.com/thctlo/samba4/blob/master/full-howto-Ubuntu18.04-samba-AD_DC.txt Best there is in my opinion ;-)> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Carl > Hunter via samba > Verzonden: woensdag 15 juli 2020 2:14 > Aan: samba at lists.samba.org > Onderwerp: [Samba] Ubuntu 18.04 classicupgrade help > > I've currently got a Ubuntu 18.04 server running Samba?4.7.6 > with an NT4 domain that I'd like to migrate to an AD.? I've > found the following link but am struggling to match up the > steps with the Ubuntu install.?? > https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_ > to_Samba_AD_(Classic_Upgrade) > I've also found this post that creates a Samba AD on Ubuntu > 18.04 from scratch but doesn't have the upgrade steps.?? > https://blog.ricosharp.com/posts/2019/Samba-4-Active-Directory > -Domain-Controller-on-Ubuntu-18-04-Server > Would someone be able to help with some questions???> In the first link, the "Server information used in this > HowTo" section lists a bunch of settings.? I'm not sure how > that matches up with Ubuntu.?? > I'm not using ldap, my smb.conf file has "passdb backend = > tdbsam:/var/lib/samba/passdb.tdb" in it if that's any help.?? > Under the "Domain controller name" section it talks about a > "netbois name =" line in the smb.conf file.? I don't have > that in mine but I do have a "workgroup =" line.? Is this the > same thing?Well on this part, i cant recommend much, i didnt upgrade i did setup a new clean server. Bit more work.. So on these steps, Well.. Rowland i the guy that will give the best advice here.> Does the classicupgrade just "convert" a bunch of files like > the passdb.tdb and smb.conf files?? And unless you actually > replace the files and start the AD service nothing actually changes??? > I think I should stop there.??Greetz, Louis
On Wednesday, July 15, 2020, 03:16:00 a.m. EDT, Rowland penny via samba <samba at lists.samba.org> wrote: On 15/07/2020 01:14, Carl Hunter via samba wrote:> I've currently got a Ubuntu 18.04 server running Samba?4.7.6 with an NT4 domain that I'd like to migrate to an AD.? I've found the following link but am struggling to match up the steps with the Ubuntu install. > https://wiki.samba.org/index.php/Migrating_a_Samba_NT4_Domain_to_Samba_AD_(Classic_Upgrade) > I've also found this post that creates a Samba AD on Ubuntu 18.04 from scratch but doesn't have the upgrade steps. > https://blog.ricosharp.com/posts/2019/Samba-4-Active-Directory-Domain-Controller-on-Ubuntu-18-04-ServerThat howto isn't bad, he just got /etc/hosts wrong ;-)> Would someone be able to help with some questions? > In the first link, the "Server information used in this HowTo" section lists a bunch of settings.? I'm not sure how that matches up with Ubuntu.The paths refer to a self compiled Samba, Ubuntu uses different paths e.g. /var/lib/samba> I'm not using ldap, my smb.conf file has "passdb backend = tdbsam:/var/lib/samba/passdb.tdb" in it if that's any help.Just ignore anything to do with ldap> Under the "Domain controller name" section it talks about a "netbois name =" line in the smb.conf file.? I don't have that in mine but I do have a "workgroup =" line.? Is this the same thing?No and you only really need the line if you are changing the computers hostname during the upgrade.> Does the classicupgrade just "convert" a bunch of files like the passdb.tdb and smb.conf files?? And unless you actually replace the files and start the AD service nothing actually changes?Bit more involved than that, all the users and groups are obtained from the existing database (along with passwords and the domain SID). This information is then used to provision a new AD domain.> I think I should stop there. > Thanks in advance and hopefully this makes some sense.Yes, it did ;-) Rowland Thanks for the help.? I've got some more questions though about the following list.?? AD DC Installation Directory:? ? ? ?/usr/local/samba/AD DC Hostname:? ? ? ? ? ? ? ? ? ? ?DC1AD DNS Name:? ? ? ? ? ? ? ? ? ? ? ? samdom.example.comRealm:? ? ? ? ? ? ? ? ? ? ? ? ? ? ? samdom.example.comNT4 Domain Name:? ? ? ? ? ? ? ? ? ? samdomIP Address:? ? ? ? ? ? ? ? ? ? ? ? ?192.168.1.1Databases of the Samba NT4-domain:? /usr/local/samba.PDC/dbdir/smb.conf of the Samba NT4-domain:? ?/usr/local/samba.PDC/etc/smb.PDC.conf So for Ubuntu the first line would be /var/lib/samba right? What would the last two lines in the list be for Ubuntu? My NT4 domain is all uppercase.? Would it stay that way for the first part of the AD DNS Name and Realm lines? The section talking about moving the /usr/local/samba/ directory, does that still apply to the /var/lib/samba directory?? And is the /etc/samba/smb.conf file the one that needs to be moved like the /usr/local/samba.PDC/etc/smb.conf file? I'm assuming I need to install Kerberos since it's not currently installed on the system to get the classicupgrade to work??? I think that's it for now.? Thanks again for the help.?? Carl