On 09/29/2015 01:23 PM, Rowland Penny wrote:> On 29/09/15 18:09, Steve Ankeny wrote: >> On 09/27/2015 05:48 AM, Marc Muehlfeld wrote: >>> Hello, >>> >>> during the last week I finished two documentation: >>> >>> * https://wiki.samba.org/index.php/Build_Samba_from_source >>> This page wasn't more than just a "configure/make/make install" >>> before. I hope it's now a good guide with some background >>> information. >>> >>> * >>> https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory >>> >>> Major rewrite with more information, etc. >>> Thanks to Rowland for proofreading. >>> >>> >>> + some minor edits here and there. :-) >>> >>> >>> Regards, >>> MarcThe join was successful but resolving the A record failed -- https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2 -Uadministrator ERROR(runtime): uncaught exception - (-1073741628, 'NT_STATUS_UNEXPECTED_NETWORK_ERROR') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1059, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds) adam at eagle:~$ 'sogo.smbdomain.com' is DC1 and the command is being run on DC1 I've seen the same error on DC1 It looks like a missing package to me or a missing link. Is it 'netcmd' or 'dns.py'?
On 02/10/15 19:02, Steve Ankeny wrote:> On 09/29/2015 01:23 PM, Rowland Penny wrote: >> On 29/09/15 18:09, Steve Ankeny wrote: >>> On 09/27/2015 05:48 AM, Marc Muehlfeld wrote: >>>> Hello, >>>> >>>> during the last week I finished two documentation: >>>> >>>> * https://wiki.samba.org/index.php/Build_Samba_from_source >>>> This page wasn't more than just a "configure/make/make install" >>>> before. I hope it's now a good guide with some background >>>> information. >>>> >>>> * >>>> https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory >>>> >>>> Major rewrite with more information, etc. >>>> Thanks to Rowland for proofreading. >>>> >>>> >>>> + some minor edits here and there. :-) >>>> >>>> >>>> Regards, >>>> Marc > > The join was successful but resolving the A record failed -- > > https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins > > adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2 > -Uadministrator > ERROR(runtime): uncaught exception - (-1073741628, > 'NT_STATUS_UNEXPECTED_NETWORK_ERROR') > File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", > line 175, in _run > return self.run(*args, **kwargs) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line > 1059, in run > dns_conn = dns_connect(server, self.lp, self.creds) > File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line > 40, in dns_connect > dns_conn = dnsserver.dnsserver(binding_str, lp, creds) > adam at eagle:~$ > > 'sogo.smbdomain.com' is DC1 and the command is being run on DC1 > > I've seen the same error on DC1 > > It looks like a missing package to me or a missing link. Is it > 'netcmd' or 'dns.py'? > > > >I don't think you have anything missing, I think you are possibly formatting the command incorrectly, it should be: samba-tool dns add <server> <zone> <name> A <data> If you run the command on DC1, you can replace <server> with 127.0.0.1, <zone> needs to be your dns domain name (is your domain name 'sogo.smbdomain.com'), <name> is the short hostname of the new DC (is DC the correct hostname), <data> with the ip of the new DC. if everything is ok, it should work, provided that Samba is running on the DC that you are running the command on. What does resolving the new DC actually show? Rowland
On 10/02/2015 02:37 PM, Rowland Penny wrote:> On 02/10/15 19:02, Steve Ankeny wrote: >> On 09/29/2015 01:23 PM, Rowland Penny wrote: >>> On 29/09/15 18:09, Steve Ankeny wrote: >>>> On 09/27/2015 05:48 AM, Marc Muehlfeld wrote: >>>>> Hello, >>>>> >>>>> during the last week I finished two documentation: >>>>> >>>>> * https://wiki.samba.org/index.php/Build_Samba_from_source >>>>> This page wasn't more than just a "configure/make/make install" >>>>> before. I hope it's now a good guide with some background >>>>> information. >>>>> >>>>> * >>>>> https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory >>>>> >>>>> Major rewrite with more information, etc. >>>>> Thanks to Rowland for proofreading. >>>>> >>>>> >>>>> + some minor edits here and there. :-) >>>>> >>>>> >>>>> Regards, >>>>> Marc >> >> The join was successful but resolving the A record failed -- >> >> https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins >> >> adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2 >> -Uadministrator >> ERROR(runtime): uncaught exception - (-1073741628, >> 'NT_STATUS_UNEXPECTED_NETWORK_ERROR') >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", >> line 175, in _run >> return self.run(*args, **kwargs) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 1059, in run >> dns_conn = dns_connect(server, self.lp, self.creds) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 40, in dns_connect >> dns_conn = dnsserver.dnsserver(binding_str, lp, creds) >> adam at eagle:~$ >> >> 'sogo.smbdomain.com' is DC1 and the command is being run on DC1 >> >> I've seen the same error on DC1 >> >> It looks like a missing package to me or a missing link. Is it >> 'netcmd' or 'dns.py'? >> >> >> >> > > I don't think you have anything missing, I think you are possibly > formatting the command incorrectly, it should be: > > samba-tool dns add <server> <zone> <name> A <data> > > If you run the command on DC1, you can replace <server> with > 127.0.0.1, <zone> needs to be your dns domain name (is your domain > name 'sogo.smbdomain.com'), <name> is the short hostname of the new DC > (is DC the correct hostname), <data> with the ip of the new DC. if > everything is ok, it should work, provided that Samba is running on > the DC that you are running the command on. > > What does resolving the new DC actually show? > > Rowland > >Still an issue (if I'm understanding it correctly) -- run as user 'adam' without 'sudo' adam at sogo:~$ samba-tool dns add 127.0.0.1 sogo.smbdomain.com eagle A 192.168.121.141 Password for [SMBDOMAIN\adam]: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for 50abc2a4-574d-40b3-9d66-ee4fd5fba076 at ncacn_ip_tcp:127.0.0.1[1024,sign] NT_STATUS_NET_WRITE_FAULT ERROR(runtime): uncaught exception - (-1073741614, 'NT_STATUS_NET_WRITE_FAULT') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1059, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds) adam at sogo:~$ run as user 'adam' with 'sudo' adam at sogo:~$ sudo samba-tool dns add 127.0.0.1 sogo.smbdomain.com eagle A 192.168.121.141 Password for [SMBDOMAIN\root]: Password for [SMBDOMAIN\root]: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for 50abc2a4-574d-40b3-9d66-ee4fd5fba076 at ncacn_ip_tcp:127.0.0.1[1024,sign] NT_STATUS_LOGON_FAILURE ERROR(runtime): uncaught exception - (-1073741715, 'Logon failure') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1059, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds) adam at sogo:~$ run as user 'root' root at sogo:~# samba-tool dns add 127.0.0.1 sogo.smbdomain.com eagle A 192.168.121.141 Password for [SMBDOMAIN\root]: Password for [SMBDOMAIN\root]: Failed to bind to uuid 50abc2a4-574d-40b3-9d66-ee4fd5fba076 for 50abc2a4-574d-40b3-9d66-ee4fd5fba076 at ncacn_ip_tcp:127.0.0.1[1024,sign] NT_STATUS_LOGON_FAILURE ERROR(runtime): uncaught exception - (-1073741715, 'Logon failure') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1059, in run dns_conn = dns_connect(server, self.lp, self.creds) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 40, in dns_connect dns_conn = dnsserver.dnsserver(binding_str, lp, creds) root at sogo:~# It occurs to me that I am "binding" to Samba-AD-DC as 'administrator' Where would I insert the option '-Uadministrator'?
On 10/02/2015 02:37 PM, Rowland Penny wrote:> On 02/10/15 19:02, Steve Ankeny wrote: >> On 09/29/2015 01:23 PM, Rowland Penny wrote: >>> On 29/09/15 18:09, Steve Ankeny wrote: >>>> On 09/27/2015 05:48 AM, Marc Muehlfeld wrote: >>>>> Hello, >>>>> >>>>> during the last week I finished two documentation: >>>>> >>>>> * https://wiki.samba.org/index.php/Build_Samba_from_source >>>>> This page wasn't more than just a "configure/make/make install" >>>>> before. I hope it's now a good guide with some background >>>>> information. >>>>> >>>>> * >>>>> https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory >>>>> >>>>> Major rewrite with more information, etc. >>>>> Thanks to Rowland for proofreading. >>>>> >>>>> >>>>> + some minor edits here and there. :-) >>>>> >>>>> >>>>> Regards, >>>>> Marc >> >> The join was successful but resolving the A record failed -- >> >> https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins >> >> adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2 >> -Uadministrator >> ERROR(runtime): uncaught exception - (-1073741628, >> 'NT_STATUS_UNEXPECTED_NETWORK_ERROR') >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", >> line 175, in _run >> return self.run(*args, **kwargs) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 1059, in run >> dns_conn = dns_connect(server, self.lp, self.creds) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 40, in dns_connect >> dns_conn = dnsserver.dnsserver(binding_str, lp, creds) >> adam at eagle:~$ >> >> 'sogo.smbdomain.com' is DC1 and the command is being run on DC1 >> >> I've seen the same error on DC1 >> >> It looks like a missing package to me or a missing link. Is it >> 'netcmd' or 'dns.py'? >> >> >> >> > > I don't think you have anything missing, I think you are possibly > formatting the command incorrectly, it should be: > > samba-tool dns add <server> <zone> <name> A <data> > > If you run the command on DC1, you can replace <server> with > 127.0.0.1, <zone> needs to be your dns domain name (is your domain > name 'sogo.smbdomain.com'), <name> is the short hostname of the new DC > (is DC the correct hostname), <data> with the ip of the new DC. if > everything is ok, it should work, provided that Samba is running on > the DC that you are running the command on. > > What does resolving the new DC actually show? > > Rowland > >sorry, I see it appended to the end of the command still doesn't work -- root at sogo:~# sudo samba-tool dns add 127.0.0.1 sogo.smbdomain.com eagle A 192.168.121.141 -Uadministrator Password for [SMBDOMAIN\administrator]: ERROR(runtime): uncaught exception - (9714, 'WERR_DNS_ERROR_NAME_DOES_NOT_EXIST') File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line 1070, in run 0, server, zone, name, add_rec_buf, None) root at sogo:~#
On 10/02/2015 02:37 PM, Rowland Penny wrote:> On 02/10/15 19:02, Steve Ankeny wrote: >> On 09/29/2015 01:23 PM, Rowland Penny wrote: >>> On 29/09/15 18:09, Steve Ankeny wrote: >>>> On 09/27/2015 05:48 AM, Marc Muehlfeld wrote: >>>>> Hello, >>>>> >>>>> during the last week I finished two documentation: >>>>> >>>>> * https://wiki.samba.org/index.php/Build_Samba_from_source >>>>> This page wasn't more than just a "configure/make/make install" >>>>> before. I hope it's now a good guide with some background >>>>> information. >>>>> >>>>> * >>>>> https://wiki.samba.org/index.php/Join_an_additional_Samba_DC_to_an_existing_Active_Directory >>>>> >>>>> Major rewrite with more information, etc. >>>>> Thanks to Rowland for proofreading. >>>>> >>>>> >>>>> + some minor edits here and there. :-) >>>>> >>>>> >>>>> Regards, >>>>> Marc >> >> The join was successful but resolving the A record failed -- >> >> https://wiki.samba.org/index.php/Check_and_fix_DNS_entries_on_DC_joins >> >> adam at eagle:~$ samba-tool dns add DC sogo.smbdomain.com DC A 10.99.0.2 >> -Uadministrator >> ERROR(runtime): uncaught exception - (-1073741628, >> 'NT_STATUS_UNEXPECTED_NETWORK_ERROR') >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", >> line 175, in _run >> return self.run(*args, **kwargs) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 1059, in run >> dns_conn = dns_connect(server, self.lp, self.creds) >> File "/usr/lib/python2.7/dist-packages/samba/netcmd/dns.py", line >> 40, in dns_connect >> dns_conn = dnsserver.dnsserver(binding_str, lp, creds) >> adam at eagle:~$ >> >> 'sogo.smbdomain.com' is DC1 and the command is being run on DC1 >> >> I've seen the same error on DC1 >> >> It looks like a missing package to me or a missing link. Is it >> 'netcmd' or 'dns.py'? >> >> >> >> > > I don't think you have anything missing, I think you are possibly > formatting the command incorrectly, it should be: > > samba-tool dns add <server> <zone> <name> A <data> > > If you run the command on DC1, you can replace <server> with > 127.0.0.1, <zone> needs to be your dns domain name (is your domain > name 'sogo.smbdomain.com'), <name> is the short hostname of the new DC > (is DC the correct hostname), <data> with the ip of the new DC. if > everything is ok, it should work, provided that Samba is running on > the DC that you are running the command on. > > What does resolving the new DC actually show? > > Rowland > >GOT IT! root at sogo:~# sudo samba-tool dns add 127.0.0.1 smbdomain.com eagle A 192.168.121.141 -Uadministrator Password for [SMBDOMAIN\administrator]: Record added successfully root at sogo:~# Now, do I need to add it to DC2?