RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2163709 - Support integrating with AD Server for authentication
Summary: Support integrating with AD Server for authentication
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ansible-collection-microsoft-sql
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Sergei Petrosian
QA Contact: Daniel Yeisley
Alexandra Nikandrova
URL:
Whiteboard:
Depends On: 2163696
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-24 10:33 UTC by Sergei Petrosian
Modified: 2023-05-14 13:29 UTC (History)
2 users (show)

Fixed In Version: ansible-collection-microsoft-sql-1.3.0-3.el9
Doc Type: Enhancement
Doc Text:
.Microsoft SQL Server Ansible role supports configuration of the Active Directory authentication With this update, the Microsoft SQL Ansible role supports configuration of the Active Directory authentication for an SQL Server. Now, you can configure the Active Directory authentication by setting variables with the `mssql_ad_` prefix.
Clone Of: 2163696
Environment:
Last Closed: 2023-05-09 07:53:38 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github linux-system-roles mssql pull 159 0 None open Integrate with AD Server for authentication 2023-01-24 10:33:44 UTC
Red Hat Issue Tracker RHELPLAN-146098 0 None None None 2023-02-13 14:41:48 UTC
Red Hat Product Errata RHEA-2023:2411 0 None None None 2023-05-09 07:53:45 UTC

Description Sergei Petrosian 2023-01-24 10:33:45 UTC
+++ This bug was initially created as a clone of Bug #2163696 +++

Description of problem:
SQL Server on linux supports configuring Windows Active Directory authentication for SQL Server on Linux. The automation of this functionality must be added to the role

Version-Release number of selected component (if applicable):
8.8

Steps to Reproduce:
1. Configure Windows AD Server and ensure AD Server and linux server meet all the prerequisites in https://learn.microsoft.com/en-us/sql/linux/sql-server-linux-active-directory-join-domain?view=sql-server-ver15#prerequisites 
2. Run the role against linux node with a playbook as such:

```
- name: Configure with AD server authentication
  hosts: all
  vars:
    mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula: true
    mssql_accept_microsoft_cli_utilities_for_sql_server_eula: true
    mssql_accept_microsoft_sql_server_standard_eula: true
    mssql_version: 2022
    mssql_password: "p@55w0rD"
    mssql_edition: Evaluation
    mssql_manage_firewall: true
    mssql_ad_configure: true
    mssql_ad_sql_username: sqluser
    mssql_ad_sql_password: "p@55w0rD1"
    ad_integration_realm: domain.com
    ad_integration_password: Secret123
    ad_integration_user: Administrator
```

Expected results:
Integration with Active directory is configured and authentication with the following steps works:

1. SSH into the sqluser account:
# sshpass -e ssh -l sqluser clinet.domain.com
2. Kinit as Administrator user:
# kinit Administrator
3. Verify that authentication works:
# /opt/mssql-tools/bin/sqlcmd -S. -Q 'SELECT SYSTEM_USER'"

Additional info:
Upstream PR: https://github.com/linux-system-roles/mssql/pull/159

Comment 10 errata-xmlrpc 2023-05-09 07:53:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (ansible-collection-microsoft-sql bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2023:2411


Note You need to log in before you can comment on or make changes to this bug.