VMware UAG Failed to set adapter configuration RSA SecurID

I was deploying a new Horizon 7 environment where we had to enable RSA for 2-factor auth on the VMware UAG. Normally this is an out of the box option but I was running into some weird issue.

I could deploy the UAG fine on either 3.6, 3.7.2 and 3.8. Configuring the horizon edge would go as expected and worked fine. Then I would set up the SecurID adapter.
This also went fine and RSA worked… However, after a reboot of the UAG, the RSA functionality would stop working.

Let the troubleshooting begin

So I thought, let’s apply the config again… Wrong:(

Could not even disable the adapter or change the config. Looking in the authbroker.log which can be found in  /opt/vmware/gateway/logs I came across the following error.

So I gave up, destroyed the UAG and redeployed. This is the way the UAG’s lifecycle is. Better redeploy then put a lot of time in it. Redeployed UAG 3.6, configured it and it worked again. Then that voice in the back of the head started telling me, Reboot it! So I did… and behold, RSA died again:(

Now I redeployed it again and again and the same thing happened on UAG 3.6. Alright, let’s deploy UAG 3.8. Sounded like a foolproof plan… Again configured the whole thing but now I was running into another issue… I Could not select SecurID in the Horizon Edge… Must be a new version thing right? So destroyed the UAG 3.8 and deployed 3.7.2. This must be the version for success.

With 3.7.2, configured and all, seemed to work. RSA worked, desktops showed. Until I rebooted the UAG again! RSA stopped working… So now I kinda got bonkers and wanted a workaround to fix this without redeploying it. There is no documentation on this so we had to go old skool.

Found out that the RSA config is saved in /opt/vmware/gateway/data/authbroker/states/AP/1.
Now you can delete the following files.

  • config-state.json
  • sdconf.rec
  • sdopts.rec

After deleting these files you can apply the RSA configuration again from the GUI and it will work.
Tailing the authbroker.log shows that the RSA config is loaded again and indeed it’s working.

However… when I reboot the UAG it’s broken again. At this point, it was time to call in a favor from VMware GSS. We shot in a ticket and are waiting on a permanent fix for this. For now, we just do not reboot or fix it via CLI. I will update this post when we know more!

The fix

The problem is documentation… where the UAG info box says: “Fill in the external address of the UAG” and the PowerShell template states: “Fill in UAG IP” When using the IP in both fields the config works and survives a reboot.

This is where the documentation is different.

UAG Gui:
Online documentation:

Powershell way:

Blog Stats

  • 15,488 hits

2 thoughts on “VMware UAG Failed to set adapter configuration RSA SecurID

  1. Gerg

    Awesome post, thanks for saving my bacon!

    I had a different issue on UAG version 3.9.1, using Chrome, where I was trying to remove the RSA SecurID Config. In the Edge Service Settings when I changed the auth method to passthrough it was getting stuck on “select”. On the Authentication Settings when I tried to disable the RSA SecurID I was getting an error about “please enable the authentication method”.

    Stuck in a loop of UAG doom I followed the steps to delete the config-state.json, sdconf.rec and sdopts.rec. After a reboot I was unable to connect on https://IP:9443/admin/index.html.

    Eventually I renamed the config-state.json.backup_v1 to config-state.json and rebooted.
    mv /opt/vmware/gateway/data/authbroker/states/AP/1/config-state.json.backup_v1 /opt/vmware/gateway/data/authbroker/states/AP/1/config-state.json

    Hey presto the UAG is responding again and the RSA SecurID config is properly gone!

    Cheers,
    Gerg

    Reply
  2. Shaw

    Similar issue faced with UAG 20.09 and still waiting on fixing it. Opened a case with Vmware and waiting on GSS to provide a solution.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.