Unable to create Samba data with `adcli update --add-samba-data`

Solution Verified - Updated -

Issue

  • An error occurs when Samba data (secrets.tdb) is initialized with adcli update --add-samba-data:
[root]# adcli update -vvv --computer-password-lifetime=0 --add-samba-data -C
...output omitted...
secrets_prepare_password_change: secrets_fetch_or_upgrade_domain_info(NETBIOS) failed
Unable to write the machine account password in the secrets database ! net command failed with 1.
...

Environment

  • Red Hat Enterprise Linux 8
  • Active Directory
  • Samba
  • adcli

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content