The problem here is that it's using Basic auth for the authentication which 
only works for local accounts. You either need to setup Kerberos auth or 
use ntlm. Both can be specified with ansible_winrm_transport (ntlm or 
kerberos).

On Wednesday, December 7, 2022 at 2:31:20 AM UTC+10 [email protected] wrote:

> Can someone let me know if I can using Windows AD domain user account for 
> the ansilbe_user on the inventory file. I have no problem using the windows 
> local user account , but could not establish connection using AD account
>
> I have used :
> [email protected]
> adusername%MYDOMAIN.COM
>
> None of them worked.
>
> error message:
> msg": "ssl: the specified credentials were rejected by the server",
>
> Here is my host vars config
>
> ansible_user=adusername@MYDOMAIN
> ansible_password='myadpassword'
> ansible_port=5986
> ansible_connection=winrm
> ansible_winrm_scheme=https
> ansible_winrm_server_cert_validation=ignore
> ansible_winrm_kerberos_delegation=true
>
> Thanks for any input.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/785e4c98-ea12-4c27-a2e2-a2d018bf68dfn%40googlegroups.com.

Reply via email to