How can I add an Ubuntu 16.04 desktop to a Windows active directory which is XXXX.local?

I am trying to add my Ubuntu 16.04 machine to a Windows 2012 R2 active domain. I keep getting the message that it cannot join. I had the same problem trying to do the same thing with an Apple Mac and it seems to have something to do with the domain name which is XXX.local. Some research seems to show that a program likewise-open-gui can help in this situation but this is now no longer available for 16.04. I have installed Kerberos, Samba and Realmd but no luck so far following the instructions. Is there anyone out there who has done this successfully for a XXX.local domain? I have a whole classroom full of Ubuntu PCs to join to the school domain! I wish they hadn’t just come in and set up a .local domain on my day off!