Download Ubuntu Server Guide - Official Ubuntu Documentation

Transcript
Network Authentication
5. SSSD and Active Directory
This section describes the use of sssd to authenticate user logins against an Active Directory via using
sssd's "ad" provider. In previous versions of sssd, it was possible to authenticate using the "ldap"
provider. However, when authenticating against a Microsoft Windows AD Domain Controller, it was
generally necessary to install the POSIX AD extensions on the Domain Controller. The "ad" provider
simplifies the configuration and requires no modifications to the AD structure.
5.1. Prerequisites, Assumptions, and Requirements
• This guide does not explain Active Directory, how it works, how to set one up, or how to maintain
it. It may not provide “best practices” for your environment.
• This guide assumes that a working Active Directory domain is already configured.
• The domain controller is acting as an authoritative DNS server for the domain.
• The domain controller is the primary DNS resolver as specified in /etc/resolv.conf.
• The appropriate _kerberos, _ldap, _kpasswd, etc. entries are configured in the DNS zone (see
Resources section for external links).
• System time is synchronized on the domain controller (necessary for Kerberos).
• The domain used in this example is myubuntu.example.com .
5.2. Software Installation
The following packages are needed: krb5-user, samba, sssd, and ntp. Samba needs to be installed,
even if the system is not exporting shares. The Kerberos realm and FQDN or IP of the domain
controllers are needed for this step.
Install these packages now.
sudo apt-get install krb5-user samba sssd ntp
See the next section for the answers to the questions asked by the krb5-user postinstall script.
5.3. Kerberos Configuration
The installation of krb5-user will prompt for the realm name (in ALL UPPERCASE), the kdc server
(i.e. domain controller) and admin server (also the domain controller in this example.) This will write
the [realm] and [domain_realm] sections in /etc/krb5.conf. These sections may not be necessary if
domain autodiscovery is working. If not, then both are needed.
If the domain is myubuntu.example.com, enter the realm as MYUBUNTU.EXAMPLE.COM
Optionally, edit /etc/krb5.conf with a few additional settings to specify Kerberos ticket lifetime (these
values are safe to use as defaults):
138