So like many others I deployed vCloud Suite 5.1 into my home lab…all things were perfect until I decided to play with vCD and SSO. SSO has had quite a stream of people complaining about it and also those saying how great it is. As of right now, my personal take on it is that I am indifferent. Anyway, that is not the point of this quick post…the point is:
“ I BROKE MY VCD LOGINS!!!
So I was receiving a crazy 500 error after attempting login through the vSphere Web Client to vCD. For those of you not in the know about how to do this, check out the vCloud Director Admin Guide on page 127, “Configure vCloud Director to use vCenter Single Sign On“. Anywho, after attempting the configuration, which mind you is relatively simple, I somehow managed to bork the configuration. This resulted in a 500 Internal Server Error exclaiming: Incoming SAML message is invalid. One would think, “No worries, I will just disable SAML/SSO in the administration portal.”
“ OMG WTF!!!! I can’t get into the portal to make the change!
After a cry for help on Twitter late at night with nobody to respond, I decided this morning to dig into the Oracle database. While looking through I see a table called IDENTITY_PROVIDER…looks like I may have found a place to disable the SAML/SSO authentication method. VIOLA! I did find it! Now to change it…to do you will want to:
- Make sure you have a backup of your database. (I did this in my lab! Use at your own risk on ANY environment!)
- Connect to the Oracle DB.
- Run the following SQL: UPDATE VCLOUD.IDENTITY_PROVIDER SET IS_ENABLED = 0 WHERE PROVIDER_TYPE = ‘SAML’;
- Attempt to log back into vCD.
If all goes well, you should be back into vCD! If you go to Administration->Federation you should see that Use vSphere Single Sign-On is no longer checked! I am not sure that this is the proper method but it worked for me and I have not had any weird issues since making the change. Hope this helps!
UPDATE: Thanks to Luke (@ThepHuck) for doing this on Microsoft SQL. Here is the script:
SET [is_enabled] = '0'
WHERE provider_type = 'SAML'
UPDATE: Thanks to Mathew Lodge (@mathewlodge) you can just add login.jsp to the URL to gain local login access like so: http://vcloud.vsential.lab/cloud/login.jsp
Latest posts by James Bowling (see all)
- vCNS Manager Users and vCenter Group Authentication - November 25, 2013
- SSO High-Availability Single Site and vCenter Linked-Mode - November 18, 2013
- SSO Issue when using Windows Server 2012 AD Identity Source - November 18, 2013