Installation#

$ oc new-app openshift/openldap-2441-centos7

Configuring Persistent Storage#

spec:
  template:
    spec:
      containers:
        - image: ...
          volumeMounts:
            - mountPath: /var/lib/ldap
              name: openldap-data
            - mountPath: /etc/openldap
              name: openldap-conf
      volumes:
        - name: openldap-data
          persistentVolumeClaim:
            claimName: openldap-data
        - name: openldap-conf
          persistentVolumeClaim:
            claimName: openldap-conf

Importing Schema#

$ oc cp /etc/openldap/slapd.d/cn\=config/cn\=schema/cn\=\{4\}acme.ldif <pod>:/etc/openldap/slapd.d/cn\=config/cn\=schema

Setting Manager Password#

Generate a password:

$ slappasswd
{SSHA}xxxxxxxxxxxxxxxxxxxxxxxx

Edit /etc/openldap/slapd.d/cn=config/olcDatabase={2}hdb.ldif:

olcRootPW: {SSHA}xxxxxxxxxxxxxxxxxxxxxxxx

See Also#