无法在OpenDJ 2.6.0中创建索引

时间:2015-06-11 15:27:55

标签: opendj

根据OpenDJ 2.6.0中的instructions创建索引时。

我遇到以下错误

$/opt/opendj/bin/dsconfig create-local-db-index --hostname 127.0.0.1 --port 4444 --bindDN "cn=Directory Manager" --bindPassword 123 --backend-name cfgStore --index-name iplanet-am-user-federation-info-key --set index-type:equality --trustAll;

The Local DB Index could not be created because of the following reason:

    *  [LDAP: error code 53 - The Directory Server is unwilling to add
       configuration entry
       ds-cfg-attribute=iplanet-am-user-federation-info-key,cn=Index,ds-cfg-bac
       kend-id=cfgStore,cn=Backends,cn=config because one of the add listeners
       registered with the parent entry
       cn=Index,ds-cfg-backend-id=cfgStore,cn=Backends,cn=config rejected this
       change with the message: The Local DB Index could not be decoded due to
       the following reason: The string value
       "iplanet-am-user-federation-info-key" is not a valid value for the
       "attribute" property, which must have the following syntax: OID]


$/opt/opendj/bin/dsconfig create-local-db-index --hostname 127.0.0.1 --port 4444 --bindDN "cn=Directory Manager" --bindPassword 123 --backend-name cfgStore --index-name sun-fm-saml2-nameid-infokey --set index-type:equality --trustAll;

The Local DB Index could not be created because of the following reason:

    *  [LDAP: error code 53 - The Directory Server is unwilling to add
       configuration entry
       ds-cfg-attribute=sun-fm-saml2-nameid-infokey,cn=Index,ds-cfg-backend-id=
       cfgStore,cn=Backends,cn=config because one of the add listeners
       registered with the parent entry
       cn=Index,ds-cfg-backend-id=cfgStore,cn=Backends,cn=config rejected this
       change with the message: The Local DB Index could not be decoded due to
       the following reason: The string value "sun-fm-saml2-nameid-infokey" is
       not a valid value for the "attribute" property, which must have the
       following syntax: OID]


$/opt/opendj/bin/dsconfig create-local-db-index --hostname 127.0.0.1 --port 4444 --bindDN "cn=Directory Manager" --bindPassword 123 --backend-name cfgStore --index-name sunxmlkeyvalue --set index-type:equality --set index-type:substring --trustAll;

The Local DB Index could not be created because of the following reason:

    *  [LDAP: error code 53 - The Directory Server is unwilling to add
       configuration entry
       ds-cfg-attribute=sunxmlkeyvalue,cn=Index,ds-cfg-backend-id=cfgStore,cn=B
       ackends,cn=config because one of the add listeners registered with the
       parent entry cn=Index,ds-cfg-backend-id=cfgStore,cn=Backends,cn=config
       rejected this change with the message: The Local DB Index could not be
       decoded due to the following reason: The string value "sunxmlkeyvalue"
       is not a valid value for the "attribute" property, which must have the
       following syntax: OID]

请问有什么不对?我怎么能解决它?

1 个答案:

答案 0 :(得分:0)

看起来您正在尝试为OpenDJ服务器架构中未定义的属性创建索引。服务器无法理解如何索引它。 请先加载OpenAM架构。