[ansible-project] Unable to authenticate through CredSSP

2018-09-22 Thread Shyam
Hi all,

Im unable to connect to windows using the credssp authentication issue. Im 
getting the following error,


x.x.x.x | UNREACHABLE! => {
"changed": false,
"msg": "credssp: HTTPSConnectionPool(host='x.x.x.x', port=5986): Max 
retries exceeded with url: /wsman (Caused by 
NewConnectionError(': Failed to establish a new connection: [Errno 111] 
Connection refused',))",
"unreachable": true


Inventory file settings,

ansible_user: Administrator
ansible_password: xx
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_scheme: https
ansible_winrm_transport: credssp
ansible_winrm_server_cert_validation: ignore


Thanks,
Shyam

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/77d5bf09-527a-4b2e-b8aa-9297223cff06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to authenticate through CredSSP

2018-09-23 Thread Ankit Vashistha
Is your user a part of admin group?

On Sun, Sep 23, 2018, 11:38 AM Shyam  wrote:

> Hi all,
>
> Im unable to connect to windows using the credssp authentication issue. Im
> getting the following error,
>
>
> x.x.x.x | UNREACHABLE! => {
> "changed": false,
> "msg": "credssp: HTTPSConnectionPool(host='x.x.x.x', port=5986): Max
> retries exceeded with url: /wsman (Caused by
> NewConnectionError(' 0x7f77cc40cfd0>: Failed to establish a new connection: [Errno 111]
> Connection refused',))",
> "unreachable": true
>
>
> Inventory file settings,
>
> ansible_user: Administrator
> ansible_password: xx
> ansible_port: 5986
> ansible_connection: winrm
> ansible_winrm_scheme: https
> ansible_winrm_transport: credssp
> ansible_winrm_server_cert_validation: ignore
>
>
> Thanks,
> Shyam
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/77d5bf09-527a-4b2e-b8aa-9297223cff06%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACecUht_e-MkThw0WSXLGDY42n5wa62GDYegL8URL5Q_wCHWNg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to authenticate through CredSSP

2018-09-23 Thread Shyam

>
> Hi Ankit,
>
>

   Thanks for your reply. The user have all the admin rights. Still Im 
unable to connect to the remote host. Same error. 


 

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1a593a39-49ed-4d7b-b339-7b124fc6f127%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to authenticate through CredSSP

2018-09-23 Thread Shyam
Hi,

Im able to ping with Basic AUTH and NTLM, using the port number  5985. But 
when Im trying to connect with CredSSP, Im getting the error.

Settings for Basic and NTLM in inventory
==
ansible_user: Administrator
ansible_password: xx
ansible_port: 5985
ansible_connection: winrm
ansible_winrm_transport: ntlm
ansible_winrm_server_cert_validation: ignore

=
x.x.x.x | SUCCESS => {
"changed": false,
"ping": "pong"
}

credSSP Inventory file settings


ansible_user: Administrator
ansible_password: 
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_transport: credssp
ansible_winrm_server_cert_validation: ignore

===

CredSSP AUTH ERROR:
=
x.x.x.x | UNREACHABLE! => {
"changed": false,
"msg": "credssp: HTTPSConnectionPool(host='x.x.x.x', port=5986): Max 
retries exceeded with url: /wsman (Caused by 
NewConnectionError(': Failed to establish a new connection: [Errno 111] 
Connection refused',))",
"unreachable": true
}


==

Do I need to do any changes at windows host level ? Can any one please help 
on this ?


Thanks,
Shyam

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d655440a-200e-4e00-88e1-7aa3f5bd13e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to authenticate through CredSSP

2018-09-23 Thread Jordan Borean
You have to make sure CredSSP is enabled in the server roles with 
'Enable-WSManCredSSP -Role Server' 
https://docs.microsoft.com/en-us/powershell/module/microsoft.wsman.management/enable-wsmancredssp.
 
This is because CredSSP uses unconstrained delegation and people should be 
aware of the potential security risks that come with unconstrained 
delgation.

You can verify what has been enabled or disabled by running 'winrm get 
winrm/config/service/auth' on your Windows host as well.

Thanks

Jordan

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bfeac3d2-5945-442d-a762-c0f4b3be455a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Unable to authenticate through CredSSP

2018-09-26 Thread Shyam U
Hi Jordan,

Thanks for your replay. Issue got fixed, after enabling 'Enable-WSManCredSSP
-Role Server'


Thanks for your help.
Shyam

On Sun, Sep 23, 2018 at 1:05 PM Jordan Borean  wrote:

> You have to make sure CredSSP is enabled in the server roles with
> 'Enable-WSManCredSSP -Role Server'
> https://docs.microsoft.com/en-us/powershell/module/microsoft.wsman.management/enable-wsmancredssp.
> This is because CredSSP uses unconstrained delegation and people should be
> aware of the potential security risks that come with unconstrained
> delgation.
>
> You can verify what has been enabled or disabled by running 'winrm get
> winrm/config/service/auth' on your Windows host as well.
>
> Thanks
>
> Jordan
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/bfeac3d2-5945-442d-a762-c0f4b3be455a%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 








Thanks & Regards
Syam-9533520036

[image: http://r20.imgfast.net/users/2014/25/58/12/avatars/17-44.gif]

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAN0_vCY-CZw96TTsTARWugR_OAn4ATtUfK5_a6vSYjY7JciUpg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.