Sample Header Ad - 728x90

how to join the domain the using winbind and samba with password in automation

0 votes
1 answer
732 views
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
Asked by Uma (1 rep)
Sep 28, 2022, 01:21 PM
Last activity: Sep 29, 2022, 06:38 PM