Skip to content

Adcs smartcard setup v2#255

Open
spoore1 wants to merge 4 commits into
SSSD:masterfrom
spoore1:adcs_smartcard_setup_v2
Open

Adcs smartcard setup v2#255
spoore1 wants to merge 4 commits into
SSSD:masterfrom
spoore1:adcs_smartcard_setup_v2

Conversation

@spoore1

@spoore1 spoore1 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
  • AD role: change Enrollment Agent name

Changing the default Certificate Template name for the Enrollment Agent template from EnrollmentAgent4 to EnrollmentAgent_IDMTEST.

  • topology_controller: update join_domain for ad

Updates for better AD support including with smart card tests that require a pkinit_anchor for the krb5 config.

Also backing up krb5.conf and krb5.keytab to make setup/teardown a little cleaner.

Skipping krb5.conf removal for AD tests so there is a functional version for use.

  • Re-Enable AD CA along with containers update

Re-enabling AD CA role support for smart card testing to align with sssd-ci-containers change to enable this funtionality.

Depends-on: SSSD/sssd-ci-containers#174

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request re-enables AD Certificate Authority functionality and updates the certificate template name in sssd_test_framework/roles/ad.py. It also modifies sssd_test_framework/topology_controllers.py to back up Kerberos configuration files, skip removing krb5.conf for AD providers, and write a custom ad_pkinit configuration. Feedback was provided regarding the indentation of the closing triple quotes in the textwrap.dedent block, which prevents proper dedenting of the generated configuration, along with a suggestion to simplify the isinstance check.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread sssd_test_framework/topology_controllers.py Outdated
Changing the default Certificate Template name for the Enrollment Agent
template from EnrollmentAgent4 to EnrollmentAgent_IDMTEST.
@spoore1
spoore1 force-pushed the adcs_smartcard_setup_v2 branch 2 times, most recently from 862f217 to 36ad3a5 Compare July 20, 2026 16:38
spoore1 added 3 commits July 20, 2026 18:39
Updates for better AD support including with smart card tests that
require a pkinit_anchor for the krb5 config.

Also backing up krb5.conf and krb5.keytab to make setup/teardown a
little cleaner.

Skipping krb5.conf removal for AD tests so there is a functional version
for use.
Re-enabling AD CA role support for smart card testing to align with
sssd-ci-containers change to enable this funtionality.

Depends-on: SSSD/sssd-ci-containers#174
In some environments, the stdin password pipe for an openssl command in
the ad.ca.request() method fails with invalid password.  Removing the
pipe and setting it directly from the command line.

The AD CA is not always configured with the name forced to ad-RootCA.
Changing to use _get_ca_config() to determine the CA name to use.
@spoore1
spoore1 force-pushed the adcs_smartcard_setup_v2 branch from 36ad3a5 to abecbd1 Compare July 20, 2026 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants