VMware Cloud Community
bhbarbosa
Contributor
Contributor

vCenter keeps locking accounts

Hello everyone!

I need some troubleshooting for this issue I'm having. Environment is vCenter Server Appliance Version 5.5.0 Build 1588022. The problem is vCenter keeps locking out both my vdp and vcops SSO accounts (vdp@vsphere.local and vcops@vsphere.local). I proceeded logging on vSphere Web Client with SSO Admin account (administrator@vsphere.local) and went to Administration > Single Sign On > Users and Groups and noticed vdp account was locked. Then I unlocked it, but in the sudden of a refresh page, it became locked out again. I changed the password for this account, disabled it, then re-enabled it again. Whenever I unlock, vCenter keeps unlocking it. I tailed my vCenter appliance's /var/log/messages, till I found every second vmdird keeps locking those accounts:

2014-05-05T17:07:18+00:00 vcsa01 vmdird: t@140575374509824: LoginBlocked DN (cn=vcops,cn=users,dc=vsphere,dc=local), error (9239)(Account access blocked)

2014-05-05T17:07:22+00:00 vcsa01 vmdird: t@140575349331712: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:23+00:00 vcsa01 vmdird: t@140575374509824: LoginBlocked DN (cn=vcops,cn=users,dc=vsphere,dc=local), error (9239)(Account access blocked)

2014-05-05T17:07:26+00:00 vcsa01 vmdird: t@140575349331712: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:27+00:00 vcsa01 vmdird: t@140575374509824: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:29+00:00 vcsa01 vmdird: t@140575349331712: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:31+00:00 vcsa01 vmdird: t@140575374509824: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:32+00:00 vcsa01 vmdird: t@140575349331712: LoginBlocked DN (cn=vcops,cn=users,dc=vsphere,dc=local), error (9239)(Account access blocked)

2014-05-05T17:07:35+00:00 vcsa01 vmdird: t@140575349331712: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

2014-05-05T17:07:35+00:00 vcsa01 vmdird: t@140575374509824: Lockout policy check - account lockout. (cn=vdp,cn=users,dc=vsphere,dc=local)

Any tips on this?

Thank you!

Tags (3)
5 Replies
vNEX
Expert
Expert

Hi,

check your account lockout policies settings in SSO config, for more info see:

VMware KB: Configuring and troubleshooting vCenter Single Sign On password and lockout policies for ...

also have a look at this KB:

VMware KB: Active Directory account locks out due to repeated failed login attempts from vCenter Ser...

Regards,

P.

_________________________________________________________________________________________ If you found this or any other answer helpful, please consider to award points. (use Correct or Helpful buttons) Regards, P.
bhbarbosa
Contributor
Contributor

Hi,

I checked those policies and didn't see anything different from default, yet I changed it by now, but the problem still persists.

The second KB doesn't apply for me.

Thanks, anyway.

0 Kudos
shawnrhode
Contributor
Contributor

This just hit us and hard.  We are running vCenter 5.1 and the default expiration policy is something like 385 days.  What we had to do was this:

Go to the section where you control the policies.

Set the maximum age to 0.

Set the minimum number of password before re-use to 1.

Save the policy.

Go to the user account that keeps getting locked out in Users and Groups.

Edit the account and set the password to something that will take but is temporary.

Edit the account again and set the password back to the very first one you had that is used by the VDP appliances and other accounts you are using.

Make sure the account is unlocked.

The account is getting locked because the password has expired and if you change it in SSO but don't change it on the source, then after three attempts, the account is locked.  VDP and other applications are trying to login all the time to update their local information, so you will see the account locked pretty quickly if the password doesn't match what VDP thinks it should be.

This should prevent the account from getting locked right away and allow things to proceed.  The alternative is to set those policies, create a new account for each of these services with the correct permissions and switch them to use those new accounts.  But this can be problematic with VDP if things don't go just right (it might think it is a new registration and you will have to re-enter your backup jobs and stuff). 

DanielOprea
Hot Shot
Hot Shot

Hi,

Please look and follows the steps:

VMware KB: Unlocking and resetting the vCenter Single Sign-On administrator password

VMware KB: Configuring and troubleshooting vCenter Single Sign On password and lockout policies for ...

PLEASE CONSIDER AWARDING any HELPFUL or CORRECT answer. Thanks!!
Por favor CONSIDERA PREMIAR cualquier respuesta ÚTIL o CORRECTA. ¡¡Muchas gracias!!
Blogs: https://danieloprea.blogspot.com/
0 Kudos
bhbarbosa
Contributor
Contributor

Hey shawn,

I marked your answer as helpful, because somehow I did it in a hurry, but in a different way. I had to use an LDAP browser in order to fix those parameters for vdp account, and it did work, but I'm pretty sure your procedure could work also.

Thanks.

0 Kudos