VMWARE: InvalidLogin: Cannot complete login due to an incorrect user

Hi guys,
We are having for some time this problem and it is not even consistent. We
can work for few days without any issue and all of the sudden,
"InvalidLogin: Cannot complete login due to an incorrect user" when trying
to provision a new host. Logging into vsphere manually works fine.
I have 2 questions:

  1. Did any of you encounter this in foreman?
  2. Does foreman connect to the LDAP or locally for VMWARE?
    Thanks