Skip to content

Credentials from rundeck keystore incorrect when password begins with character "*" for Windows #407

@pts-aut

Description

@pts-aut

When the Password used for windows connections (winrm) is starting with an "*" - the ansible connection is failing. rundeck WinRM connection is working fine.

When the "*" is not the first Character - everything is fine.

Error-Output:

  • With Kerberos-Auth:
    "msg": "Kerberos auth failure for principal [email protected] with subprocess: [email protected]'s Password: \nkinit: Password incorrect",
  • With NTLM-Auth:
    'unreachable': True, 'msg': 'ntlm: the specified credentials were rejected by the server',

Looks like there is a problem reading the password here.

Node Defintion:
Node-Details in rundeck:
with Kerberos:

    "node_name@default": {
        "ansible-credentials-storage-path": "keys/winrm/ad_user/password",
        "file-copier": "overthere-winrm",
        "node-executor": "overthere-winrm",
        "osFamily": "windows",
        "osName": "Windows",
        "username": "[email protected]",
        "winrm-auth-type": "kerberos",
        "winrm-cert-trust": "all",
        "winrm-cmd": "PowerShell",
        "winrm-hostname-trust": "all",
        "winrm-kerberos-debug": false,
        "winrm-password-storage-path": "keys/winrm/ad_user/password",
        "winrm-port": "5986",
        "winrm-protocol": "https",
        "winrm-spn-use-http": false

and for NTLM:

    "node_name@default": {
        "ansible-credentials-storage-path": "keys/winrm/default/password",
        "file-copier": "overthere-winrm",
        "file-copy-destination-dir": "c:/temp",
        "node-executor": "overthere-winrm",
        "osFamily": "windows",
        "osName": "Windows",
        "username": "my_user",
        "winrm-auth-type": "ntlm",
        "winrm-cert-trust": "all",
        "winrm-cmd": "PowerShell",
        "winrm-hostname-trust": "all",
        "winrm-kerberos-debug": false,
        "winrm-password-storage-path": "keys/winrm/default/password",
        "winrm-port": "5985",
        "winrm-protocol": "http"
    },

Versions:
rundeck: v5.8.0-20241205
Ansible Module: 4.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions