Informix Error -28021: A trusted connection was not established because a trusted context is not defined or not enabled for the specified authorization ID.
Cause and resolution
A trusted connection was not established because a trusted context is not defined or not enabled for the specified authorization ID.
Ensure that the trusted context is correctly defined and enabled, and then establish a trusted connection.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-28021 fires when a trusted connection is requested for an authorization ID with no defined or enabled trusted context — per the official guidance.
- No trusted context defined for the authorization ID, per the official guidance — the first named case.
- A trusted context defined but not enabled, per the official guidance — the second named case.
Solutions / Resolution
- Ensure the trusted context is correctly defined and enabled, per the official guidance, then establish the trusted connection.
Examples
N/A
No specific triggering statement is documented beyond a missing/disabled trusted context.
Diagnostic Checks
- Check whether a trusted context exists for the authorization ID, and whether it's enabled.
Related Errors / Related Topics
- -28022 — "A trusted connection was not established because the encryption requirement for the connection was not met." A related trusted-connection error, on encryption requirements rather than context definition/enablement.
A trusted context wasn't defined or enabled for the authorization ID — define and enable it.