InvalidGuestLogin on rhel 7 with the good ldap account
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
When it uses pyvmomi for execute a command on a vm rhel 7.8 with ldap account and pam sssd module, the pyvmomi module return vim.fault.InvalidGuestLogin
Whereas it can to connect on the vm console with the same account.
For information, this performs with a sles 12 sp5 vm and with the system configuration.
./VirtualMachine.py --hostname rappdepotrh07lab1
Traceback (most recent call last):
File "./VirtualMachine.py", line 490, in
vm.updateOs()
File "./VirtualMachine.py", line 274, in updateOs
self.executeCommand(username, password, "/usr/bin/sudo" , "yum -y update --setopt tsflags=test", True)
File "./VirtualMachine.py", line 425, in executeCommand
res = pm.StartProgramInGuest(self.vcvm, creds, ps)
File "/home/vincent.cieslak/Documents/pro/projets/updateos/virtualenv/vcenter/lib/python3.7/site-packages/pyVmomi/VmomiSupport.py", line 706, in
self.f(*(self.args + (obj,) + args), **kwargs)
File "/home/vincent.cieslak/Documentalors ques/pro/projets/updateos/virtualenv/vcenter/lib/python3.7/site-packages/pyVmomi/VmomiSupport.py", line 512, in _InvokeMethod
return self._stub.InvokeMethod(self, info, args)
File "/home/vincent.cieslak/Documents/pro/projets/updateos/virtualenv/vcenter/lib/python3.7/site-packages/pyVmomi/SoapAdapter.py", line 1397, in InvokeMethod
raise obj # pylint: disable-msg=E0702
pyVmomi.VmomiSupport.InvalidGuestLogin: (vim.fault.InvalidGuestLogin) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
msg = 'Failed to authenticate with the guest operating system using the supplied credentials.',
faultCause = ,
faultMessage = (vmodl.LocalizableMessage) []
}
Regards
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with VirtualMachine.py lines 274 and 425, where executeCommand calls StartProgramInGuest, then compare the RHEL 7.8 LDAP/PAM SSSD setup with the working SLES 12 setup. Reproduce the InvalidGuestLogin path and determine the configuration or code change needed for the supplied account to authenticate successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- authentication, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100