While attempting to export a project from one TDM Portal 4.10.261.0 server to another TDM Portal 4.10.261.0 server, we are seeing the export fail with the following output:
'unable_to_send_request_to Security_service'
TDM Portal 4.10.261.0
The failure is caused due to AD/LDAP authentication failing.
In the TDMImportExportService.log (with DEBUG enabled), we see the following error:
[ExportData-job-<Job ID> ] --- [U:][M:][P:] c.c.t.c.c.ClientBase: Failed to invoke 'https://<hostname>:<port>/TestDataManager/api/ca/v1/users/27/actions/getGroups'
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : "{"status":500,"errorCode":"500 INTERNAL_SERVER_ERROR","errorMsg":"Error while fetching LDAP groups for user: CN=<User Name>,OU=<organization>,OU=User Accounts,dc=<domain>,dc=com","errorDetail":"","timestamp":"2024-12-16T18:09+0000"}"
The corresponding TdmWeb.log provides more information as to why the AD/LDAP search failed:
2024-12-16 18:09:26.259 GMT [ERROR] [https-openssl-nio-8443-exec-3] --- [U:integrator][M:GET][P:/api/ca/v1/users/27/actions/getGroups] c.c.t.s.c.SecurityController: unable to get groups for user with userId 27. Cause
javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C09050F, comment: AcceptSecurityContext error, data 52e, v4563 ]
In short, the LDAP error code 49 tells us the username or password used to BIND to Active Directory was incorrect (Invalid Credentials).
Working with the AD/LDAP Admin, the password for the User DN was updated, and now the export is able to complete.