LDAP deprecated
Looking up S/MIME certificates for recipients in LDAP
Overview
Guard can look up S/MIME certificates for recipients in LDAP. Several servers may be configured. Guard searches each for the recipient's address in the mail attribute, then reads any certificate it finds there.
This is a lookup path for S/MIME and needs no setup of its own beyond the configuration below.
Enable the lookup
System wide:
com.openexchange.guard.pki.ldap.enabled=true
Name the servers
The servers themselves are defined in the middleware's ldap-client-config.yml - the same file the contacts LDAP provider uses, and in the same format. Only that file is needed here; the contacts provider itself does not have to be set up.
Each entry in it has a client id. List the ones Guard should search, separated by commas:
com.openexchange.guard.pki.ldap.clientId=ldap1,ldap2
Certificate attribute
By default Guard reads userCertificate and userCertificate;binary. A server that keeps certificates elsewhere can be given its own attribute, by client id:
com.openexchange.guard.pki.ldap.[clientId].certificateMapping=xxxxxx