ansible-community / ansible-community/molecule-plugins
winrm with digital password does not work
- Dominant language
- Python
- Stars
- 164
- Forks
- 113
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 1
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](https://github.com/ansible-community/molecule-ec2/issues/13)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the WinRM connection failure with the numeric-password inventory examples on the reported Ansible and Python environments. Trace how the WinRM connection plugin receives and authenticates ansible_password values; done means quoted and unquoted digit-only passwords connect successfully without type or credential-rejection errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100