如何向LDAP模式添加cn;phonetic属性?

huangapple go评论73阅读模式
英文:

How do I add cn;phonetic attribute to ldap schema?

问题

My ldap version is 2.4.42.0, when I tried to add an entry, which has an indispensible attribute called cn;phonetic, to the server, I received error code 17.

Any modification in core.schema around cn is not possible, and when I tried to input some commands to modify the cn attribute like this one: https://github.com/osixia/docker-openldap/issues/321, I kept received invalid dn error.

My question is, what should I do to make cn;phonetic available on the server?

By the way, My root dn is something like cn=testadmin,o=test.com.

英文:

My ldap version is 2.4.42.0, when I tried to add an entry, which has an indispensible attribute called cn;phonetic, to the server, I received error code 17.

Any modification in core.schema around cn is not possible, and when I tried to input some commands to modify the cn attribute like this one:<https://github.com/osixia/docker-openldap/issues/321>, I kept received invalid dn error.

My question is, what should I do to make cn;phonetic available on the server?

By the way , My root dn is something like cn=testadmin,o=test.com

答案1

得分: 1

看起来 ldap 在版本 2.3 之后已经弃用了一些配置选项。
根据这个页面 OpenLDAP 使用 OLC,我使用 OLC 来在 cn=config.ldif 中设置 olcattributeoptions 为:

olcAttributeOptions: lang-phonetic

然后我可以将 cn;phonetic 属性添加到我的服务器。

英文:

So it seems that ldap has deprecated some configuration options after version 2.3.
According to this page OpenLDAP using OLC , I use OLC to set olcattributeoptions in cn=config.ldif as:

olcAttributeOptions: lang- phonetic

Then I can add cn;phonetic attribute to my server.

huangapple
  • 本文由 发表于 2023年7月18日 15:44:28
  • 转载请务必保留本文链接:https://go.coder-hub.com/76710531.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定