[SRU] New feature: Active Directory support

Bug #1921374 reported by Jean-Baptiste Lallement
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
High
Unassigned
ubiquity (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
High
Unassigned

Bug Description

[Impact]

This feature allows to join a machine to an Active Directory domain at installation time.

It adds a check box in the user info stage, which once selected displays a page to enter the credentials to join the domain.

It installs the required packages on the target filesystem and configures SSSD and Kerberos so it works on first boot.

This feature also required:
1. A change to the seed to include additional packages for AD connectivity.
https://git.launchpad.net/~ubuntu-core-dev/ubuntu-seeds/+git/ubuntu/commit/?id=a83c543f5fb98d4a539815b89b43cf9076c00283

2. A change to livecd-rootfs to add the required dependencies via a chroot hook for the project ubuntu to workaround bug 1921862 in Focal.

[Test Plan Ubiquity]
Prerequisites:
A network with an up and running AD controller, DHCP and DNS.

1. Start the installer either from a live session or ubiquity-dm
2. Proceed to the step "Who are you?"
3. Enter the user and computer information. For the computer name, you must use the FQDN.
4. Check box "Use Active Directory" and press continue.
5. Enter the address of the Active Directory controller and credentials of the user allowed to add machines to the domain.
6. Verify that the server is reachable by pressing "Test Connection".
7. Once all the information has been entered and is valid, press "Continue" to proceed with the remaining usual steps of the installation.
8. At the end of the installation you can reboot the machine and you are ready to log in as a user of the domain on first boot

More information about initial installation on the ADSys' Wiki:
https://github.com/ubuntu/adsys/wiki/2.-Prerequisites

*Verification*
  - Log in as a user of the domain must succeed.
  - The home directory of the user must be created dynamically.

[Test Plan livecd-rootfs]
1. Build an image with the patched version of livecd-rootfs
2. Compare the manifest to an image without the patch

*Verification*
 - No package should be removed with the patched version
 - The following packages and their dependencies should be added: sssd, realmd, adcli, krb5-config

[Where problems could occur]

If the python code and debconf templates, Ubiquity won't start at all or the user info page will not be displayed. So it will highly visible and easy to diagnose.

Otherwise, SSSD and Kerberos may not be configured correctly and will prevent login as an AD user. In this case, we still keep the local user and it is possible to log in and diagnose and fix the issue.

[Other Info]
Built and tested on latest focal daily image.

description: updated
description: updated
Changed in ubiquity (Ubuntu Focal):
importance: Undecided → High
Changed in ubiquity (Ubuntu):
importance: Undecided → High
status: New → Fix Released
Changed in ubiquity (Ubuntu Focal):
assignee: nobody → Jean-Baptiste Lallement (jibel)
milestone: none → ubuntu-20.04.3
status: New → In Progress
description: updated
Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
importance: Undecided → High
Changed in livecd-rootfs (Ubuntu Focal):
importance: Undecided → High
status: New → In Progress
description: updated
description: updated
Changed in livecd-rootfs (Ubuntu Focal):
assignee: nobody → Jean-Baptiste Lallement (jibel)
description: updated
Changed in ubiquity (Ubuntu Focal):
status: In Progress → New
Changed in livecd-rootfs (Ubuntu Focal):
status: In Progress → New
assignee: Jean-Baptiste Lallement (jibel) → nobody
Changed in ubiquity (Ubuntu Focal):
assignee: Jean-Baptiste Lallement (jibel) → nobody
Changed in livecd-rootfs (Ubuntu Focal):
milestone: none → ubuntu-20.04.3
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Jean-Baptiste, or anyone else affected,

Accepted ubiquity into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubiquity/20.04.15.12 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubiquity (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hello Jean-Baptiste, or anyone else affected,

Accepted livecd-rootfs into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.664.23 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in livecd-rootfs (Ubuntu Focal):
status: New → Fix Committed
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

So seeing the discussion on LP: #1921862 I just wanted to make sure: is the livecd-rootfs workaround sufficient to keep the selected AD packages around?

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Yes, adding the packages in a hook of livecd-rootfs does the job.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Verification of livecd-rootfs

I checked the daily build of focal https://launchpad.net/~ubuntu-cdimage/+livefs/ubuntu/focal/ubuntu/+build/279154

the packages realmd and adcli in universe in focal and main in focal-updates are correctly seeded in the image.

Marking as verification done.

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Verification of Ubiquity

In ubiquity I enabled Active Directory and filled the corresponding fields.
After installation:
- The machine joined the domain
- On first boot, I can login as a user of the domain and its home directory is created.

Marking as verification done.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.664.23

---------------
livecd-rootfs (2.664.23) focal; urgency=medium

  * Adding dependencies for Active Directory support (LP: #1921374)

livecd-rootfs (2.664.22) focal; urgency=medium

  * Add grub config to produce console output and install lxd-agent loader
    to allow buildd vm images to work in lxd without requirement for manual
    installation (LP: #1915571)

 -- Jean-Baptiste Lallement <email address hidden> Thu, 20 May 2021 17:52:20 +0200

Changed in livecd-rootfs (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for livecd-rootfs has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 20.04.15.12

---------------
ubiquity (20.04.15.12) focal; urgency=medium

  [ Didier Roche ]
  [ Jean-Baptiste Lallement ]
  * AD integration for GTK UI (LP: #1921374)
  * Configure krb5 client so access to AD with GPO enabled works out of the
    box after installation.
  * Keep packages required for AD installed. When AD installation is selected
    we want to keep all the packages used to make it work and remove them
    otherwise.

 -- Jean-Baptiste Lallement <email address hidden> Wed, 24 Mar 2021 17:05:48 +0100

Changed in ubiquity (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.