After creating a new auth profile with SAML authentication, containing incorrect metadata information, the user may get a error message when trying to login to UI
search cancel

After creating a new auth profile with SAML authentication, containing incorrect metadata information, the user may get a error message when trying to login to UI

book

Article ID: 412231

calendar_today

Updated On:

Products

VMware Avi Load Balancer

Issue/Introduction

The user may modify the system setting to add new remote auth config with the remote auth config containing a auth mapping profile using a SAML auth profile. If the SAML auth profile has incorrect metadata information, e.x URL may be incorrect, the user will then not be able to login to UI. The user gets an error as follows when he/she tries to login to UI.

{"error": "Failed to parse metadata file: /var/lib/avi/etc/<metadata-file-name.xml>"}

Also, the URL in the UI will be redirected to <Controller-IP>/sso/login.

Environment

This is applicable to all environments.

Resolution

If local login is allowed you can add this to the url and try admin login:
https://<controller-ip>/#!/login?local=1

After logging in, the newly added remote auth config causing the issue can be removed. The metadata information can be debugged for possible errors and then re-added after correcting it.

Additional Information

This information is mentioned in doc page also.