Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

Active Directory Utility for SQL Server (ADUTIL) now officially supported with RHEL 9

July 16, 2024
Vivien Wang Arne Arnold Amit Khandelwal (Microsoft)
Related topics:
ContainersDatabasesLinux
Related products:
Microsoft SQL Server on Red Hat Enterprise LinuxRed Hat Enterprise Linux

    As of June 2024, Active Directory Utility for SQL Server (ADUTIL) is now officially supported with RHEL 9. SQL Server 2022 has as of July 2024 been officially certified with RHEL 9, and is now Generally Available on Red Hat Ecosystem Catalog.

    The adutil tool is a command-line interface (CLI) utility for configuring and managing Windows Active Directory domains for SQL Server on Linux and containers, without switching between Windows and Linux machines to manage Active Directory. This tool was developed to ensure that users get the most out of authentication, user management, and keytab configuration in a more integrated setting.

    Does this all sound good to you? Let's dive in and find out how exactly we can set up adutil on Red Hat Enterprise Linux (RHEL) 9. 

    Prepping and installing

    You will need to join your host machine to the domain as a prerequisite—see Join SQL Server on Linux to Active Directory on how to get this all set up.

    Then, to install adutil on RHEL 9, you’ll need to execute the following commands to add the RHEL 9 Prod repository:

    sudo curl -o /etc/yum.repos.d/msprod.repo https://packages.microsoft.com/config/rhel/9/prod.repo 
    ## Now you are ready to install adutil using the command: 
    sudo ACCEPT_EULA=Y yum install -y adutil 
    ## you can check the adutil version using the command and ensure the version is 1.1.138 
    adutil --version

    Use cases for adutil

    Here are some of the typical activities that adutil is used for when configuring or administering Active Directory authentication for SQL Server on Linux and containers.

    Creating an account in Active Directory:

    adutil user create --name sqluser --distname CN=sqluser,CN=Users,DC=CONTOSO,DC=COM

    Creating SPNs associated with an account or service:

    adutil spn addauto -n sqluser -s MSSQLSvc -H mymachine.contoso.com -p 1433

    Creating keytabs using adutil:

    adutil keytab createauto -k /var/opt/mssql/secrets/mssql.keytab -p 1433 -H mymachine.contoso.com --password 'P@ssw0rd' -s MSSQLSvc

    To navigate to the reference manual page, you can do so using the command man adutil.

    To learn more about adutils check out Microsoft’s official documentation: Introduction to adutil - Active Directory Utility - SQL Server

    Using adutil to manage Windows Active Directory

    Let's go over some of the actions that you can perform using adutil. To see a list of top-level commands, type adutil --help. This command shows you the top-level commands that you can use to manage and interact with Active Directory:

    $ adutil --help
    adutil - A general AD utility
      Usage:
        adutil [account]
      Subcommands:
        account      Functions for generic account operations
        delegation   Functions for configuring delegation permissions
        group        Functions for group management
        keytab       Functions for keytab management
        machine      Functions for managing machine accounts
        ou           Functions for managing organizational units
        spn          Functions for service principal name (SPN) management
        user         Functions for user account management
        config       Functions for modifying adutil configuration
      Flags:
           --version       Displays the program version string.
        -h --help          Displays help with available flag, subcommand, and positional value parameters.
        -d --debug         Display additional debugging information when making LDAP/Kerberos calls.
           --accept-eula   Accepts the current EULA for adutil. This has no effect if the EULA has already been accepted.

    You can run the following help options to seek help with the next level of commands:

    $ adutil spn --help
    spn - Functions for service principal name (SPN) management
      Usage:
        spn [add]
      Subcommands:
        add       Adds the provided SPNs to an account
        addauto   Automatically generate SPNs based on SPN component inputs and add them to an account
        delete    Deletes the provided SPNs from an account
        search    Search for an SPN by name or list all SPNs in the directory
        show      Get the list of SPNs assigned to an account
      Flags:
        --version       Displays the program version string.
        -h --help          Displays help with available flag, subcommand, and positional value parameters.
        -d --debug         Display additional debugging information when making LDAP/Kerberos calls.
           --accept-eula   Accepts the current EULA for adutil. This has no effect if the EULA has already been accepted.
    $ adutil spn search --help
    search - Search for an SPN by name or list all SPNs in the directory
      Usage:
         search [name]
      Positional Variables:
        name   OPTIONAL: Name of the SPN to search for in the directory. * can be used as a wildcard
      Flags:
        --version       Displays the program version string.
        -h --help          Displays help with available flag, subcommand, and positional value parameters.
        -n --name          OPTIONAL: Name of the SPN to search for in the directory. * can be used as a wildcard
        -f --filter        OPTIONAL: Filter for the search (User,Machine,Group)
        -o --ouname        OPTIONAL: Distinguished name of OU in which SPNs should be searched. If omitted, the entire directory will be searched.
        -d --debug         Display additional debugging information when making LDAP/Kerberos calls.
           --accept-eula   Accepts the current EULA for adutil. This has no effect if the EULA has already been accepted.

    Running Ansible with adutil

    Did you know that Ansible can automate your SQL Server deployment? The Ansible-based SQL Server collection uses adutil as a tool to enable AD authentication for SQL Server on Linux. Learn more about this in Automation Hub - microsoft.sql | Ansible Automation Platform (redhat.com) and Microsoft’s official documentation: Quickstart: Deploy SQL Server on Linux using an Ansible playbook - SQL Server

    Further reading

    • Announcing the Availability of adutil for RHEL 9

    • Introducing adutil - A tool to ease configuration of AD authentication for SQL on Linux/Containers

    • Quickstart: Deploy SQL Server on Linux using an Ansible playbook  

    Related Posts

    • MySQL for developers in Red Hat OpenShift

    • Deploying a Spring Boot App with MySQL on OpenShift

    • MySQL data replication between virtual machines via SDN

    • Red Hat open source databases in beta: Adds PostgreSQL 10, MongoDB 3.6; updates MySQL 5.7

    • Using a MySQL database in your Red Hat OpenShift application

    Recent Posts

    • Trusted software factory: Building trust in the agentic AI era

    • Build a zero trust AI pipeline with OpenShift and RHEL CVMs

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    What’s up next?

    This Intermediate Linux Commands cheat sheet presents a collection of Linux commands and executables for developers and system administrators who want to move beyond the basic. Get tips on managing processes, users, and groups on Linux, as well as monitoring disk and network usage. 

    Get the cheat sheet
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.