I have installed samba and winbind in rhel8.
I was trying to automate the domain join process as well. But when try it manually it is working as expected when we enter the password manually for "service-user-account" for domain join.
But I don't see any command to automate with the password. I have tried with one of the below command, but it is giving an error.
Command: net ads join -U $ad_user%$password
but I am getting below error. I have put the service account user and password in variable.
error: Failed to join domain: failed to lookup DC info for domain 'example.com' over rpc: The attempted logon is invalid. This is either due to a bad username or authentication information.
Kindly help me to automate this step. Appreciate your kind support!.
Thanks Uma
net ads join -U "$ad_user"%"%$password"
. And you followed the Samba-Doc?