[Samba] Can't find machine account
Rowland penny
rpenny at samba.org
Fri Jul 19 07:12:57 UTC 2019
On 18/07/2019 22:15, timbeale at catalyst.net.nz wrote:
> On 2019-07-19 04:53, Rowland penny via samba wrote:
>> On 18/07/2019 17:38, Robert A Wooldridge via samba wrote:
>>> On 07/18/2019 11:32 AM, Rowland penny via samba wrote:
>>>
>>> Is anyone working on getting that patch into the Debian python package?
>>
>> Well, it's Tim's patch, so perhaps he is, but I would think it will
>> need to be more involved than just commenting out three lines. It will
>> also have to get into Samba's git before it gets anywhere near Debian
>> ;-)
>>
>> Rowland
>
> Yeah, we were thinking about just adding something like a
> '--skip-dns-records' option to the samba-tool domain join command,
> just so users can work around this problem without having to hack the
> code. Will look into raising a bug and getting something backported.
Problem with that method is, the user would have to get a failure first
and then find out how to fix it, how about something along these lines:
Replace:
if ctx.dns_backend != "NONE":
ctx.join_add_dns_records()
ctx.join_replicate_new_dns_records()
With something like this:
if ctx.dns_backend != "NONE":
try:
ctx.join_add_dns_records()
ctx.join_replicate_new_dns_records()
except:
print("Cannot add Computers dns records, you will have"
" to do this manually.")
pass
Rowland
More information about the samba
mailing list