Skip to content

PKI Server Subsystem Database Configuration CLI

Endi S. Dewata edited this page Nov 5, 2021 · 4 revisions

Overview

Displaying Database Configuration Info

$ pki-server <subsystem>-db-config-show
  Hostname: localhost.localdomain
  Port: 389
  Secure: false
  Authentication: BasicAuth
  Bind DN: cn=Directory Manager
  Bind Password Prompt: internaldb
  Database: ca
  Base DN: dc=ca,dc=pki,dc=example,dc=com
  Multiple suffix: false
  Maximum connections: 15
  Minimum connections: 3

Switching to Plain LDAP Connection

$ pki-server <subsystem>-db-config-mod --port 389 --secure false

Switching to LDAPS Connection

$ pki-server <subsystem>-db-config-mod --port 636 --secure true

Switching to LDAPI Connection (NOT IMPLEMENTED)

$ pki-server subsystem-db-connection-mod ca --protocol ldapi --socket /var/run/slapd-pki-tomcat.socket
-----------------------------------------------
Modified database connection for "ca" subsystem
-----------------------------------------------
  Protocol: ldapi
  Socket: /var/run/slapd-pki-tomcat.socket
  Base DN: dc=ca,dc=example,dc=com
  Backend Database: ca
  Authentication: none

Switching to Basic Authentication (NOT IMPLEMENTED)

$ pki-server subsystem-db-connection-mod ca --auth basic --bind-dn "cn=Directory Manager" --bind-password Secret.123
-----------------------------------------------
Modified database connection for "ca" subsystem
-----------------------------------------------
  Protocol: ldap
  Hostname: server.example.com
  Port: 389
  Base DN: dc=ca,dc=example,dc=com
  Backend Database: ca
  Authentication: basic
  Bind DN: cn=Directory Manager

Switching to Client Certificate Authentication (NOT IMPLEMENTED)

$ pki-server subsystem-db-connection-mod ca --auth client-cert --nickname "subsystemCert cert-pki-ca"
-----------------------------------------------
Modified database connection for "ca" subsystem
-----------------------------------------------
  Protocol: ldaps
  Hostname: server.example.com
  Port: 636
  Base DN: dc=ca,dc=example,dc=com
  Backend Database: ca
  Authentication: client-cert
  Nickname: subsystemCert cert-pki-ca

Switching to No Authentication / Auto Bind (NOT IMPLEMENTED)

$ pki-server subsystem-db-connection-mod ca --auth none
-----------------------------------------------
Modified database connection for "ca" subsystem
-----------------------------------------------
  Protocol: ldapi
  Socket: /var/run/slapd-pki-tomcat.socket
  Base DN: dc=ca,dc=example,dc=com
  Backend Database: ca
  Authentication: none
Clone this wiki locally