In this section, outgoing LDAP and JDBC (database) connections for the system are being configured.
Properties
Property name
Description
Allowed/default values
Mandatory
type
The type of connection
ldap, jdbc
Yes
Example
{
"type": "ldap"
}
LDAP
Properties
Property name
Description
Allowed/default values
Mandatory
host
The server address(s). Comma separated. An explicit port can be specified for each address by separating the address and the port with a colon. Example: foo-bar.com:1234,example.com
String
Yes
port
The server port. Can be overriden for each address in the host property
Integer
Yes
bind_dn
DN of the user for bind-operations
String
Yes
password
Password for the bind_dn user. In general, this is encrypted
String
Yes
use_ssl
Whether to use TLS (SSL) or not
Default: false
No
ssl_trust_all
Whether to trust all certificates if use_sslis enabled
Default: false
No
follow_referrals
Whether to follow LDAP referrals
Default: false
No
auto_reconnect
Whan an LDAP connection in the pool dies, this controls whether to reconnect the connection automatically. For backwards compatibility, it's enabled for existing connections, but it's discouraged
Default: true
No
use_keep_alive
Enables the TCP keep alive feature, which will help avoiding idling LDAP connections from being terminated by ex. a firewall in the path between the system and the LDAP server
Default: true
No
response_timeout_ms
The response timeout for each LDAP query
Default: 9000
No
pool_initial_size
The initial connection pool size
Default: 1
No
pool_max_size
The maximal number of connections in the pool. This is not a connection limit, however, if more connections are opened, they will be closed instead of being returned to the pool when they aren't needed anymore.
Default: 2
No
pool_max_age
The maximal lifetime in milliseconds of a connection before it will be terminated and replaced with a new connection. 0 disables this feature.
Default: 0
No
load_balance
In case multiple addresses has been configured in host, this determines if load balancing will be attempted between all configured addresses (true) or if only fail-over-mode will be used, where earlier entries will have precende over later entries (false). In case of load balancing, servers that not responding will temporarily be quarantined automatically for redundancy.
The JDBC driver to use for the connection, for example org.postgresql.Driver for PostgreSQL
String
Yes
url
The connection URL, for example jdbc:postgresql://10.0.5.25:5432/template1
String
Yes
username
The username for the server
Default: Empty string
No
password
The password for the server
Default: Empty string
No
auto_commit
Whether to enable JDBC auto commit or not
Default: true
No
read_only
If the connection should be read only or not
Default: false
No
pool_initial_size
The initial size of the connection pool
Default: 1
No
pool_max_size
The maximal size of the connection pool. Additional connections can still be created if required, however, those connections will be closed instead of being returned to the pool when they aren't needed anymore.
Default: 1
No
validation_query
If this is configured, this validation query will be executed periodically on the database connection in order verify that it is still functional. A timeout of 5 seconds is applied when running the validation query. The query will be executed every 60 seconds on idling connections.