Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcsim: unable to create local user using -esx mode #947

Closed
Akasurde opened this issue Dec 5, 2017 · 0 comments
Closed

vcsim: unable to create local user using -esx mode #947

Akasurde opened this issue Dec 5, 2017 · 0 comments

Comments

@Akasurde
Copy link
Contributor

Akasurde commented Dec 5, 2017

I am unable to create a local user using vcsim with -esx mode

I am getting following

Request: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body><RetrieveUserGroups xmlns="urn:vim25"><_this type="UserDirectory">ha-user-directory</_this><searchStr>foo</searchStr><exactMatch>true</exactMatch><findUsers>true</findUsers><findGroups>false</findGroups></RetrieveUserGroups></soapenv:Body>
</soapenv:Envelope>
Response: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><RetrieveUserGroupsResponse xmlns="urn:vim25"></RetrieveUserGroupsResponse></soapenv:Body></soapenv:Envelope>
Request: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body><CreateUser xmlns="urn:vim25"><_this type="HostLocalAccountManager">ha-localacctmgr</_this><user><id>foo</id><password>password</password></user></CreateUser></soapenv:Body>
</soapenv:Envelope>
2017/12/05 14:34:28 managed object not found: HostLocalAccountManager:ha-localacctmgr
Response: <?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>managed object not found: HostLocalAccountManager:ha-localacctmgr</faultstring><detail><Fault xmlns:XMLSchema-instance="http://www.w3.org/2001/XMLSchema-instance" XMLSchema-instance:type="ManagedObjectNotFound"><obj type="HostLocalAccountManager">ha-localacctmgr</obj></Fault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
@anfernee anfernee self-assigned this Dec 12, 2017
anfernee pushed a commit to anfernee/govmomi that referenced this issue Dec 13, 2017
Support CUD operations on users. Groups operations are not supported
because they are deprecated in 5.1

Fix vmware#947
anfernee pushed a commit to anfernee/govmomi that referenced this issue Dec 13, 2017
Support CUD operations on users. Groups operations are not supported
because they are deprecated in 5.1

Fix vmware#947
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants