How to Join Ubuntu 15.10 Desktop to Active directory using Realmd

Sponsored Link
This tutorial will explain How to Join Ubuntu 15.10 to Active directory using Realmd.Active Directory (AD) is a directory service that Microsoft developed for Windows domain networks and is included in most Windows Server operating systems as a set of processes and services.An AD domain controller authenticates and authorizes all users and computers in a Windows domain type network—assigning and enforcing security policies for all computers and installing or updating software.

Preparing your system

Need to install all the required packages using the following command

sudo apt-get install realmd sssd sssd-tools samba-common krb5-user packagekit samba-common-bin samba-libs adcli ntp

During installation of krb5-user, it will prompt you for the default Kerberos realm. This should be your domain in all caps. Example: LOCALDOMAIN.XX

Now, go ahead and get a valid kerberos ticket for your AD admin: kinit [email protected]

Configuring realmd

You need to edit /etc/realmd.conf

sudo vi /etc/realmd.conf

Change the following option

[service]

automatic-install = no

Save and exit the file

Configuring sssd.conf file

First you need to change the sssd.confile using the following command

sudo chmod 0600 /etc/sssd/sssd.conf

Now edit the file using the following command

sudo /etc/sssd/sssd.conf

add the following lines

[nss]
filter_groups = root
filter_users = root
reconnection_retries = 3

[pam]
reconnection_retries = 3

Comment out the following line

use_fully_qualified_names = True

to

#use_fully_qualified_names = True

Save and exit the file

Join in unattended mode with new user principal using the following command

realm –-verbose join localdomain.xx –-user-principal=myubuntuserver/[email protected] –-unattended

Reboot your server. You should now be able to id a domain user as follows: id LOCALDOMAIN\\myuser

You can now su to a domain user: su myuser@localdomain

You can add the NTP servers to sync with your domain controller in /etc/ntp.conf

Sponsored Link

You may also like...

2 Responses

  1. Kevin Morton says:

    Mate I just had the bigest brain fart following this guide, I tend to use nano rather than vi and couldn’t for the life of me work out why is wasnt saving.

    Well it is 2:00 so i tink its time for bed.

  2. kr says:

    I got
    ~
    ~
    ~
    ~
    trying to configure
    sudo vi /etc/realmd.conf

Leave a Reply

Your email address will not be published. Required fields are marked *