This is with become:
    "account": {
        "account_name": "svcservicefabric",
        "domain_name": "MY",
        "sid": "S-1-5-21-4077456329-152936645-47294291-6160",
        "type": "User"
    },
    "authentication_package": "Kerberos",
    "changed": false,
    "dns_domain_name": "my.domain",
    "groups": [
        {
            "account_name": "Domain Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "MY",
            "sid": "S-1-5-21-4077456329-152936645-47294291-513",
            "type": "Group"
        },
        {
            "account_name": "Everyone",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "",
            "sid": "S-1-1-0",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Administrators",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled",
                "Owner"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-544",
            "type": "Alias"
        },
        {
            "account_name": "Remote Desktop Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-555",
            "type": "Alias"
        },
        {
            "account_name": "Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-545",
            "type": "Alias"
        },
        {
            "account_name": "INTERACTIVE",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-4",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "CONSOLE LOGON",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "",
            "sid": "S-1-2-1",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Authenticated Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-11",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "This Organization",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-15",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Authentication authority asserted identity",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "",
            "sid": "S-1-18-1",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Server.Owner.User.Group",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled",
                "Resource"
            ],
            "domain_name": "MY",
            "sid": "S-1-5-21-4077456329-152936645-47294291-2109",
            "type": "Alias"
        },
        {
            "account_name": "High Mandatory Level",
            "attributes": [
                "Integrity",
                "Integrity enabled"
            ],
            "domain_name": "Mandatory Label",
            "sid": "S-1-16-12288",
            "type": "Label"
        }
    ],
    "impersonation_level": "SecurityAnonymous",
    "label": {
        "account_name": "High Mandatory Level",
        "domain_name": "Mandatory Label",
        "sid": "S-1-16-12288",
        "type": "Label"
    },
    "login_domain": "MY",
    "login_time": "2018-10-29T09:09:39.3564295-04:00",
    "logon_id": 56130748,
    "logon_server": "MyDomainController",
    "logon_type": "Interactive",
    "privileges": {
        "SeBackupPrivilege": "disabled",
        "SeChangeNotifyPrivilege": "enabled-by-default",
        "SeCreateGlobalPrivilege": "enabled-by-default",
        "SeCreatePagefilePrivilege": "disabled",
        "SeCreateSymbolicLinkPrivilege": "disabled",
        "SeDebugPrivilege": "enabled",
        "SeImpersonatePrivilege": "enabled-by-default",
        "SeIncreaseBasePriorityPrivilege": "disabled",
        "SeIncreaseQuotaPrivilege": "disabled",
        "SeIncreaseWorkingSetPrivilege": "disabled",
        "SeLoadDriverPrivilege": "disabled",
        "SeManageVolumePrivilege": "disabled",
        "SeProfileSingleProcessPrivilege": "disabled",
        "SeRemoteShutdownPrivilege": "disabled",
        "SeRestorePrivilege": "disabled",
        "SeSecurityPrivilege": "disabled",
        "SeShutdownPrivilege": "disabled",
        "SeSystemEnvironmentPrivilege": "disabled",
        "SeSystemProfilePrivilege": "disabled",
        "SeSystemtimePrivilege": "disabled",
        "SeTakeOwnershipPrivilege": "disabled",
        "SeTimeZonePrivilege": "disabled",
        "SeUndockPrivilege": "disabled"
    },
    "rights": [
        "SeNetworkLogonRight",
        "SeInteractiveLogonRight",
        "SeBatchLogonRight",
        "SeRemoteInteractiveLogonRight"
    ],
    "token_type": "TokenPrimary",
    "upn": "[email protected]",
    "user_flags": []
}

This is without:
    "account": {
        "account_name": "svcservicefabric",
        "domain_name": "MY",
        "sid": "S-1-5-21-4077456329-152936645-47294291-6160",
        "type": "User"
    },
    "authentication_package": "Kerberos",
    "changed": false,
    "dns_domain_name": "MY.Domain",
    "groups": [
        {
            "account_name": "Domain Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "MY",
            "sid": "S-1-5-21-4077456329-152936645-47294291-513",
            "type": "Group"
        },
        {
            "account_name": "Everyone",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "",
            "sid": "S-1-1-0",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Administrators",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled",
                "Owner"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-544",
            "type": "Alias"
        },
        {
            "account_name": "Remote Desktop Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-555",
            "type": "Alias"
        },
        {
            "account_name": "Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "BUILTIN",
            "sid": "S-1-5-32-545",
            "type": "Alias"
        },
        {
            "account_name": "NETWORK",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-2",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Authenticated Users",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-11",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "This Organization",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "NT AUTHORITY",
            "sid": "S-1-5-15",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Authentication authority asserted identity",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled"
            ],
            "domain_name": "",
            "sid": "S-1-18-1",
            "type": "WellKnownGroup"
        },
        {
            "account_name": "Server.Owners.User.Group",
            "attributes": [
                "Mandatory",
                "Enabled by default",
                "Enabled",
                "Resource"
            ],
            "domain_name": "MY",
            "sid": "S-1-5-21-4077456329-152936645-47294291-2109",
            "type": "Alias"
        },
        {
            "account_name": "High Mandatory Level",
            "attributes": [
                "Integrity",
                "Integrity enabled"
            ],
            "domain_name": "Mandatory Label",
            "sid": "S-1-16-12288",
            "type": "Label"
        }
    ],
    "impersonation_level": "SecurityAnonymous",
    "label": {
        "account_name": "High Mandatory Level",
        "domain_name": "Mandatory Label",
        "sid": "S-1-16-12288",
        "type": "Label"
    },
    "login_domain": "MY",
    "login_time": "2018-10-29T09:13:12.9615843-04:00",
    "logon_id": 56160748,
    "logon_server": "",
    "logon_type": "Network",
    "privileges": {
        "SeBackupPrivilege": "enabled-by-default",
        "SeChangeNotifyPrivilege": "enabled-by-default",
        "SeCreateGlobalPrivilege": "enabled-by-default",
        "SeCreatePagefilePrivilege": "enabled-by-default",
        "SeCreateSymbolicLinkPrivilege": "enabled-by-default",
        "SeDebugPrivilege": "enabled-by-default",
        "SeImpersonatePrivilege": "enabled-by-default",
        "SeIncreaseBasePriorityPrivilege": "enabled-by-default",
        "SeIncreaseQuotaPrivilege": "enabled-by-default",
        "SeIncreaseWorkingSetPrivilege": "enabled-by-default",
        "SeLoadDriverPrivilege": "enabled-by-default",
        "SeManageVolumePrivilege": "enabled-by-default",
        "SeProfileSingleProcessPrivilege": "enabled-by-default",
        "SeRemoteShutdownPrivilege": "enabled-by-default",
        "SeRestorePrivilege": "enabled-by-default",
        "SeSecurityPrivilege": "enabled-by-default",
        "SeShutdownPrivilege": "enabled-by-default",
        "SeSystemEnvironmentPrivilege": "enabled-by-default",
        "SeSystemProfilePrivilege": "enabled-by-default",
        "SeSystemtimePrivilege": "enabled-by-default",
        "SeTakeOwnershipPrivilege": "enabled-by-default",
        "SeTimeZonePrivilege": "enabled-by-default",
        "SeUndockPrivilege": "enabled-by-default"
    },
    "rights": [
        "SeNetworkLogonRight",
        "SeInteractiveLogonRight",
        "SeBatchLogonRight",
        "SeRemoteInteractiveLogonRight"
    ],
    "token_type": "TokenPrimary",
    "upn": "",
    "user_flags": []
}


I've tried the same module with a different action and get the same thing:

"Failed to become user [email protected]: Exception calling 
\"FromBase64String\" with \"1\" argument(s): \"The input is not a valid Base-64 
string as it contains a non-base 64 character, more than two padding 
characters, or an illegal character among the padding characters. \""


I've tried using domain\\user format and user@domain
I'm not doing anything with base64strings but the become module is.


On Monday, 29 October 2018 12:56:34 UTC, Jordan Borean wrote:
>
> Can you share the output of win_whoami with both become on and off?

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/329127e0-a653-48a4-862f-b44afdbd0188%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to