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

Error adding user #821

Closed
Akasurde opened this issue Aug 20, 2017 · 3 comments
Closed

Error adding user #821

Akasurde opened this issue Aug 20, 2017 · 3 comments

Comments

@Akasurde
Copy link
Contributor

Adding new user raises following error

managed object not found: UserDirectory:UserDirectory
@anfernee
Copy link
Contributor

@Akasurde Same thing here. Can you clarify what command did you run, and what version of vcsim did you use?

@Akasurde
Copy link
Contributor Author

@anfernee Thanks for response.

I am facing this issue while using vcsim with Ansible module called vmware_local_user_manager.py

vmware_local_user_manager.py uses an API

content.userDirectory.RetrieveUserGroups(...)

This is where vcsim fails.

You can reproduce this using following Ansible Playbook against latest vcsim code.

---
- name: Add User
  hosts: localhost
  tasks:
    - name: Add user
      vmware_local_user_manager:
        validate_certs: false
        hostname: 0.0.0.0
        username: user
        password: pass
        local_user_name: dev_0001
        local_user_password: dev123
        local_user_description: Sample Development user
        state: present

@dougm
Copy link
Member

dougm commented Oct 5, 2017

Fixed in #855

@dougm dougm closed this as completed Oct 5, 2017
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