我想一个新的属性添加到OpenLDAP模式的OpenLDAP:无法添加新的LDAP属性模式
# cat /etc/ldap/pwdResetAttribAdd.ldif
dn: cn={3}inetorgperson,cn=schema,cn=config
add: olcAttributeTypes
##
## The new attribute type
##
olcAttributetypes: (1.3.6.1.4.1.42.2.27.8.1.22
NAME 'pwdReset'
DESC 'The indication that the password has been reset'
EQUALITY booleanMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
SINGLE-VALUE
USAGE directoryOperation)
我使用添加的命令是根据
ldapmodify -D "cn=admin,dc=test" -w somePass -h localhost -p 389 -f /etc/ldap/pwdResetAttribAdd.ldif
然而,它会出现以下错误
modifying entry "cn={3}inetorgperson,cn=schema,cn=config" ldap_modify: Other (e.g., implementation specific) error (80)
additional info: olcAttributeTypes: "1.3.6.1.4.1.42.2.27.8.1.22" is operational
我在哪里错了?
为什么?只需加载'ppolicy.schema'。 – EJP
@EJP我没有得到你......我该怎么办? – SimpleGuy
你应该怎么做才是我说的。加载'ppolicy.schema'。在'slapd.conf'的模式部分或在线配置中,无论您使用什么。在文档中明确提到了你正在尝试做什么,即实现密码策略覆盖,其中'pwdReset'来自哪里。不需要你上面发布的内容。 – EJP