要在OpenLDAP中配置证书的schema,需要执行以下步骤:

  1. 创建一个名为"certs.schema"的文件,并将以下内容复制到文件中:
# Define a new object class for certificates
objectclass ( 1.3.6.1.4.1.4203.666.100.2.4
  NAME 'cert'
  DESC 'X.509 certificate'
  AUXILIARY
  MAY ( userCertificate )
)

# Define a new attribute for certificate data
attributeType ( 1.3.6.1.4.1.4203.666.100.1.1
  NAME 'userCertificate'
  DESC 'X.509 user certificate'
  EQUALITY certificateExactMatch
  SYNTAX 1.3.6.1.4.1.1466.115.121.1.8
)
  1. 在OpenLDAP的slapd.conf文件中添加以下内容:
include /path/to/certs.schema
  1. 重新启动OpenLDAP服务。

现在,您可以在OpenLDAP中使用"cert"对象类和"userCertificate"属性来存储和检索证书数据。

openldap如何配置证书的schema

原文地址: https://www.cveoy.top/t/topic/EfD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录