# DB2 DB2 Authentication

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/db2/authentication/

Qualytics signs in to DB2 with a user name and password, through the IBM DB2 JDBC driver. Every query runs as that user, so DB2 uses its grants to decide what Qualytics may read or write (see [Permissions](https://userguide.qualytics.io/source-datastore/datastore/jdbc/db2/permissions/)).

## User and Password

Fill in **User** and **Password** in the **Connection Properties** section of the connection form. Use a dedicated account for Qualytics, so its grants and its sign-ins are easy to tell apart from people's.

DB2 does not keep its own user list: it checks the user name and password against the operating system or LDAP account of the same name. Create or reset the Qualytics account there, not inside the database.

> **Note**
>
> A wrong password, a misspelled user, or an account the DB2 server cannot find fails with `SQL30082N: Security processing failed`. See [Troubleshooting](https://userguide.qualytics.io/source-datastore/datastore/jdbc/db2/troubleshooting/#authentication-errors).

## Encrypted Connections

If your DB2 server requires encrypted connections, turn on **SSL Connection** in the connection form. Qualytics then opens a TLS-encrypted connection to the DB2 instance.

If the server presents a certificate Qualytics does not already trust, paste its signing chain into **TLS Certificate Chain**, in the collapsed **Advanced** section of the same form. Supplying a chain encrypts the connection on its own, so you do not need to turn on **SSL Connection** as well. See [Certificate and TLS Errors](https://userguide.qualytics.io/source-datastore/datastore/jdbc/db2/troubleshooting/#certificate-and-tls-errors) for what to include.

> **Tip: Credentials from a secrets manager**
>
> The **User** and **Password** fields can take their values from HashiCorp Vault or another secrets manager instead of being typed in: turn on **Secrets Management** on the connection and write `${key}` in the field. See the [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/) pages for setup and troubleshooting.

*Last updated: November 16, 2026.*
