Description
Atlassin Crowd Setup fails with Invalid Connection Details when testing the Crowd connection by pressing Test Connection Button.
The error is somewhat strange as the Crowd Server reports a authenticated successfully
2020-03-23 17:02:42,554 http-nio-8095-exec-2 DEBUG [plugin.rest.filter.BasicApplicationAuthenticationFilter] Application ‘crowd’ authenticated successfully
Server Setup Information
- Version of Rocket.Chat Server: 2.4.11
- Operating System: Ubuntu 18.04.2 LTS
- Deployment Method: snap
- Number of Running Instances 1:
- DB Replicaset Oplog: Aktiviert
- NodeJS Version: v8.17.0
- MongoDB Version: 3.6.14
- Proxy: No Proxy
- Firewalls involved: Firewalls disabled
Any additional Information
Crowd Logfile
2020-03-23 17:02:42,519 http-nio-8095-exec-2 DEBUG [apache.catalina.authenticator.AuthenticatorBase] Security checking request GET /crowd/rest/usermanagement/1/config/cookie
2020-03-23 17:02:42,519 http-nio-8095-exec-2 DEBUG [apache.catalina.authenticator.AuthenticatorBase] Not subject to any constraint
2020-03-23 17:02:42,519 http-nio-8095-exec-2 DEBUG [apache.catalina.core.StandardWrapper] Returning non-STM instance
2020-03-23 17:02:42,519 http-nio-8095-exec-2 DEBUG [crowd.console.filter.CrowdOpenSessionInViewFilter] Using SessionFactory ‘sessionFactory’ for OpenSessionInViewFilter
2020-03-23 17:02:42,519 http-nio-8095-exec-2 DEBUG [crowd.console.filter.CrowdOpenSessionInViewFilter] Opening Hibernate Session in OpenSessionInViewFilter
2020-03-23 17:02:42,521 http-nio-8095-exec-2 DEBUG [integration.http.util.CrowdHttpTokenHelperImpl] Checking for a SSO token that will need to be verified by Crowd.
2020-03-23 17:02:42,521 http-nio-8095-exec-2 DEBUG [integration.http.util.CrowdHttpTokenHelperImpl] No request attribute token could be found, now checking the browser submitted cookies.
2020-03-23 17:02:42,521 http-nio-8095-exec-2 DEBUG [integration.http.util.CrowdHttpTokenHelperImpl] Unable to find a valid Crowd token.
2020-03-23 17:02:42,521 http-nio-8095-exec-2 DEBUG [mchange.v2.resourcepool.BasicResourcePool] acquire test – pool size: 1; target_pool_size: 1; desired target? 2
2020-03-23 17:02:42,521 http-nio-8095-exec-2 DEBUG [mchange.v2.resourcepool.BasicResourcePool] awaitAvailable(): com.mchange.v2.c3p0.impl.NewPooledConnection@1e98d58b
2020-03-23 17:02:42,525 http-nio-8095-exec-2 DEBUG [atlassian.crowd.service.TransactionalRememberMeService] Expiring remember-me cookie
2020-03-23 17:02:42,531 http-nio-8095-exec-2 DEBUG [crowd.manager.validation.ClientValidationManagerImpl] Client address: 141.75.150.112
2020-03-23 17:02:42,549 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] generateUserToken: user crowd
2020-03-23 17:02:42,549 http-nio-8095-exec-2 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Generating identifier hash for principal: crowd
2020-03-23 17:02:42,549 http-nio-8095-exec-2 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Generating random hash for principal: crowd
2020-03-23 17:02:42,549 http-nio-8095-exec-2 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Adding Random-Number of ValidationFactor[Random-Number=6051224512152093897]
2020-03-23 17:02:42,550 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] checking if the token is expired:
2020-03-23 17:02:42,550 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] now: Mon Mar 23 17:02:42 CET 2020
2020-03-23 17:02:42,550 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] last accessed: Mon Mar 23 17:02:15 CET 2020
2020-03-23 17:02:42,551 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] expiry time: Mon Mar 23 17:03:15 CET 2020
2020-03-23 17:02:42,551 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] allowed session time (seconds): 60
2020-03-23 17:02:42,551 http-nio-8095-exec-2 DEBUG [crowd.manager.token.RecoveryModeAwareTokenAuthenticationManager] Returning existing token that matched identifierHash
2020-03-23 17:02:42,551 http-nio-8095-exec-2 DEBUG [crowd.dao.token.TokenDAOHibernate] Updating object: Token{identifierHash=‘u489Iq-t_xJ3DKsvkNdMcQ’, lastAccessedTime=1584979362551, createdDate=2020-03-23 17:02:15.0, duration=60, name=‘crowd’, directoryId=-1}
2020-03-23 17:02:42,554 http-nio-8095-exec-2 DEBUG [plugin.rest.filter.BasicApplicationAuthenticationFilter] Application ‘crowd’ authenticated successfully
2020-03-23 17:02:42,555 http-nio-8095-exec-2 DEBUG [atlassian.crowd.audit.AuditLogContextInternalImpl] Setting custom author context for author ImmutableAuditLogAuthor{id=2, name=crowd, type=APPLICATION}
2020-03-23 17:02:42,555 http-nio-8095-exec-2 DEBUG [rest.module.scope.ScopeResourceFilter] Applying scope filter for crowd-rest-plugin:crowd-rest-application-service (Provides an application level service for Crowd connected clients.)//rest//usermanagement/1
2020-03-23 17:02:42,556 http-nio-8095-exec-2 DEBUG [atlassian.crowd.audit.AuditLogContextInternalImpl] Cleared custom author context for author ImmutableAuditLogAuthor{id=2, name=crowd, type=APPLICATION}
2020-03-23 17:02:42,557 http-nio-8095-exec-2 DEBUG [crowd.console.filter.CrowdOpenSessionInViewFilter] Closing Hibernate Session in OpenSessionInViewFilter
Rocket Chat Logs
I20200323-17:02:42.510(1) crowd_test_connection { id: ‘6KdbB8NuL9qkHgDnt’, clientAddress: null, httpHeaders: { host: ‘guardian-test-clone:3000’, ‘user-agent’: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36’, ‘accept-language’: ‘de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7’ }, userId: ‘G8a5SKDpvaNyANeKm’ }
I20200323-17:02:42.511(1) server.js:204 Meteor ➔ method crowd_test_connection -> userId: G8a5SKDpvaNyANeKm, arguments:
I20200323-17:02:42.560(1) server.js:204 CROWD ➔ error Invalid crowd connection details, check the url and application username/password and make sure this server is allowed to speak to crowd