我对 openLDAP 很陌生,我正在尝试设置密码策略。我的 slapd.conf 中有以下内容:
include /etc/openldap/schema/ppolicy.schema
moduleload ppolicy.la
objectClass: top
objectClass: device
objectClass: pwdPolicy
cn: default
pwdAttribute: userPassword
pwdMaxAge: 5184000
pwdExpireWarning: 432000
pwdInHistory: 6
pwdCheckQuality: 1
pwdMinLength: 8
pwdMaxFailure: 5
pwdLockout: TRUE
pwdLockoutDuration: 1920
pwdGraceAuthNLimit: 0
pwdFailureCountInterval: 0
pwdMustChange: TRUE
pwdAllowUserChange: TRUE
pwdSafeModify: FALSE
pwdCheckModule: check_password.so
pwdCheckQuality: 2
但问题是,当我重新启动 slapd 时出现以下错误:/etc/openldap/slapd.conf:第 86 行:后端数据库定义中的未知指令。
谁能告诉我我做错了什么?