Skip to content

winrm with digital password does not work #44

Open
@salmira

Description

WinRM connection fails for any Windows user having numeric password consisting only from digits. like '12345' (or any other numeric sequence).

Taking the numeric password into quotes does not help.
inverntory.ini - all options fails:

win10-vm1 ansible_password=12345
win10-vm2 ansible_password='12345'
win10-vm3 ansible_password="12345"

Error reported:

 "msg": "Invalid type for configuration option plugin_type: connection plugin: winrm setting: remote_password : Invalid type provided for \"string\": 12345"

Using templates also fails but with another error:

win10-vm4 ansible_password="{{ '12345' | string }}"

Error reported:

"basic: the specified credentials were rejected by the server",

Environment:
ansible 2.10.8
ansible python module location = /Users/xxxxxx/Library/Python/3.8/lib/python/site-packages/ansible
executable location = /Users/xxxxxx/Library/Python/3.8/bin/ansible
python version = 3.8.2 (default, Dec 21 2020, 15:06:04) [Clang 12.0.0 (clang-1200.0.32.29)]
OS: MacOS 10.15.7 (19H15)

Also reproduced on Python 2.7.18

Could be related to the issue #13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ec2Amazon EC2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions