P
P
pred8or2015-03-20 11:42:59
Active Directory
pred8or, 2015-03-20 11:42:59

Why won't Ubuntu 14.04 Desktop join an AD domain?

There is a freshly installed Ubuntu 14.04 Desktop, there is a 2012R2 domain network. I want to join a computer to a domain using PowerBroker Identity Services, Open Edition .
Below is the full log of what happened. I want to note that once I included a server in the domain in the same way and there were no problems at all.

%[email protected]%computer:~$ ls
Desktop           Music                                     Pictures
Documents         pbis-join.txt                             Public
Downloads         pbis-open-8.2.2.2993.linux.x86_64.deb     Templates
examples.desktop  pbis-open-8.2.2.2993.linux.x86_64.deb.sh  Videos
%[email protected]%computer:~$ sudo bash
[sudo] password for %user: 
[email protected]%computer:~# /opt/pbis/bin/domainjoin-cli --loglevel verbose --logfile . join --disable ssh %domain %[email protected]%domain %password
20150320111625:INFO:Domainjoin invoked with the join command (remaining arguments will be printed later):
20150320111625:INFO:    [/opt/pbis/bin/domainjoin-cli]
20150320111625:INFO:    [--loglevel]
20150320111625:INFO:    [verbose]
20150320111625:INFO:    [--logfile]
20150320111625:INFO:    [.]
20150320111625:INFO:    [join]
20150320111625:INFO:Domainjoin invoked with 3 arg(s) to the join command:
20150320111625:INFO:    [%domain]
20150320111625:INFO:    [%[email protected]%domain]
20150320111625:INFO:    [<password>]
20150320111625:INFO:Adding computer (fqdn %computer.%domain) to /etc/hosts ip 127.0.1.1, removing %computer, %computer.%domain, %computer, %computer
20150320111625:INFO:Creating blank krb5.conf
20150320111625:INFO:Reading krb5 file /tmp/likewisetmp7flcfi/etc/krb5.conf
20150320111625:INFO:Reading nsswitch file /etc/nsswitch.conf
20150320111625:INFO:Creating blank krb5.conf
20150320111625:INFO:Reading krb5 file /tmp/likewisetmphzQaGI/etc/krb5.conf
20150320111625:INFO:Distro Version 14.04
Joining to AD Domain:   %domain
With Computer DNS Name: %computer.%domain

20150320111625:INFO:Running module hostname
20150320111625:INFO:Adding %computer (fqdn %computer.%domain) to /etc/hosts ip 127.0.1.1, removing %computer, %computer.%domain, %computer, %computer
20150320111625:INFO:Writing out updated /etc/hosts file
20150320111625:VERBOSE:FixNetworkInterfaces LEAVE -> 0x00000000 (EE = 0)
20150320111625:INFO:Reading nsswitch file /etc/nsswitch.conf
20150320111625:INFO:nsswitch not modified
20150320111625:INFO:Adding %computer (fqdn %computer.%domain) to /etc/hosts ip 127.0.1.1, removing %computer, %computer.%domain, %computer, %computer.%domain
20150320111625:INFO:Running module join
20150320111630:VERBOSE:eventlog:LwEvtOpenEventlog():/builder/src-buildserver/Platform-8.2/src/linux/eventlog/client/eventlog.c:174: client::eventlog.c OpenEventlog server=<null>)


Error: ERROR_GEN_FAILURE [code 0x0000001f]


20150320111630:ERROR:ERROR_GEN_FAILURE [ERROR_GEN_FAILURE]



Stack Trace:
/builder/src-buildserver/Platform-8.2/src/linux/domainjoin/domainjoin-cli/src/main.c:1160
/builder/src-buildserver/Platform-8.2/src/linux/domainjoin/domainjoin-cli/src/main.c:554
/builder/src-buildserver/Platform-8.2/src/linux/domainjoin/libdomainjoin/src/djmodule.c:345
/builder/src-buildserver/Platform-8.2/src/linux/domainjoin/libdomainjoin/src/djauthinfo.c:857
/builder/src-buildserver/Platform-8.2/src/linux/domainjoin/libdomainjoin/src/djauthinfo.c:1255
[email protected]%computer:~#

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pred8or, 2015-03-23
@pred8or

For a while, I was on the wrong track looking for a solution, trying to figure out what was wrong with Cerberus. I manipulated the configs, but it was all to no avail, nothing helped until I compared the composition of the installed packages and the configs on the newly installed server and desktop. Everything plus/minus was identical. The last resort left is to read the documentation . Previously, I was stopped from reading the documentation by the fact that it is only for the pbis edition of the Enterprise. But then I overcame myself and discovered several interesting things.
1. Installation Guide p. 32. The content of the file /etc/nsswitch.confwas just such that potentially prevented the discovery of the .local domain (just my case). Edited and continued reading.
2.Installation Guide page 33. Contents of the /etc/resolv.conf. On the desktop, it contained 127.0.0.1 as the nameserver address. This file cannot be edited by hand, I had to look, firstly, for the cause, and secondly, for a way to fix it.
The reason was found in the NetworkManager component, which on the desktop, in fact, contains a local dns server, so from this point of view, the address 127.0.0.1 is quite correct. To return the dns server address received from dhcp, you need to:
edit /etc/NetworkManager/NetworkManager.conf:
comment out the following line:
After that, it remained to restart NetworkManager:
After restarting, the contents of the file /etc/resolv.conftook on the appropriate form, pbis was installed correctly, and after rebooting the computer joined the domain perfectly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question