Loading

×Sorry to interrupt
Uncaught ReferenceError: addCTracking is not defined
throws at https://kb.vmware.com/resource/KM_TealiumTrackingJS?v=0.5:100:1

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

My Subscriptions

Loading

Knowledge Base

"SAML authentication failed for this organization.Use integrated authentication" when SAML Users attempt to log into vCloud Director. (76973)

Last Updated: 3/21/2024Categories: TroubleshootingTotal Views: 6845Language:
Chinese (Simplified)JapaneseEnglish

Subscribe to get an email
newsletter with new updates

Please provide article feedback:

Symptoms

"SAML authentication failed for this organization.Use integrated authentication" error is seen when logging into vCloud Director as a new SAML user.

"User login failed'' is seen in the vCloud Director UI when reviewing the System > Manage & Monitor > Organizations > Affected Organization Name > Logs section.

Existing and local Users are able to login without any issues.

The user encounters this issue in all Organizations with their SAML source configured.

In /opt/vmware/vcloud-director/logs/vcloud-container-debug.log, there are errors of the form:

2020-01-01 10:23:07,443 | DEBUG  | pool-jetty-7039254    | SamlAuthenticationSuccessHandler | Login failure details for user name=[email-masked] | requestId=1fcc2a34-ec56-7fd8-90e0-1b234fe567ca8,request=POST https://vcd.example.com/cloud/org/exampleOrg/saml/SSO/alias/vcd,requestTime=1578910987410,remoteAddress=
...
org.hibernate.exception.SQLGrammarException: could not execute query
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:90)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.loader.Loader.doList(Loader.java:2231)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)
at org.hibernate.loader.Loader.list(Loader.java:2120)
...
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near ")"
Position: 136
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2477)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2190)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:300)
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)

In the PostgreSQL database logs for vCloud Director Appliances, found in /var/vmware/vpostgres/current/pgdata/log/postgresql-DayoftheWeek.log, there are errors of the form:

2020-01-01 10:16:24.712 UTC [29273] ERROR: syntax error at or near ")" at character 136
2020-01-01 10:16:24.712 UTC [29273] STATEMENT: /* Method: unknown */ /* criteria query */ select count(*) as y0_ from grp this_ where this_.source_id=$1 and this_.name_in_source in ()

In vCloud Director instances using an external MS SQL server, the logs show errors of the form:

Caused by: java.sql.SQLException: Incorrect syntax near ')'.

Cause

During the SAML login flow, vCloud Director attempts to determine whether the authenticated user has been imported directly or at least one group to which the user belongs has been imported into the target Organization.

The above error condition occurs when the Organization Administrator has neither imported the SAML user directly with a role nor have they imported at least one SAML group to which the user belongs into the target Organization, which is a requirement.

Resolution

Follow steps from the Enable Your Organization to Use a SAML Identity Provider section of the vCloud Director documentation to configure SAML authentication.
Import the desired users and groups using the steps outlined in the Managing Users, Groups and Roles section of the vCloud Director documentation.

Note: If the same user has different usernames, for example username or [email-masked], the username with which the SAML login is carried out should be imported with a role assigned to it. Alternatively a group where the correct username is present should be imported into vCloud Director prior to login.

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
Chinese (Simplified)JapaneseEnglish

Attachments

Additional Resources

KB
•
在 vRealize Log Insight 4.x 及更高版本中还原 vApp 属性 (76944)

KB
•
vCloud Director の HTML5 ユーザー インターフェイスでタスク リストの 10 ページ目を開くと、「サポートされないクエリ: adminTask0 (Unsupported query: adminTask0)」エラーが表示される (76972)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Cloud Director for Service Provider

VMware Cloud Director

Related Versions:

VMware Cloud Director for Service Provider 9.x

Take Our Survey

Support Assistant