2

Plone 4.2.1 と plone.app.ldap 1.3 をインストールしました。LDAP サーバーがアクティブ化されている場合、LDAP ユーザーはログインできますが、管理者は@@usergroup-userprefsページにアクセスできません。次のようにいくつかのエラーが発生します。

Traceback (innermost last):
  Module ZPublisher.Publish, line 126, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 46, in call_object
  Module plone.app.controlpanel.usergroups, line 198, in __call__
  Module plone.app.controlpanel.usergroups, line 224, in doSearch
  Module Products.PluggableAuthService.PluggableAuthService, line 211, in getUserById
  Module Products.PluggableAuthService.PluggableAuthService, line 794, in _verifyUser
  Module Products.LDAPMultiPlugins.LDAPMultiPlugin, line 190, in enumerateUsers
  Module Products.LDAPUserFolder.LDAPUserFolder, line 810, in getUserById
  Module Products.LDAPUserFolder.LDAPUserFolder, line 758, in getUserByAttr
IndexError: list index out of range

LDAP サーバーを無効にすると、管理者@@usergroup-userprefsは plone サイトのページにアクセスできます。OpenLDAPもインストールされています。コマンドを実行すると、次$dpkg -l|grep OpenLDAPのリストが表示されます。

ii  ldap-utils                        2.4.23-7.3                   OpenLDAP utilities
ii  libldap-2.4-2                     2.4.23-7.3                   OpenLDAP libraries
ii  libldap2-dev                      2.4.23-7.3                   OpenLDAP development libraries
ii  slapd                             2.4.23-7.3                   OpenLDAP server (slapd)
4

2 に答える 2

0

uid および SN 属性を持つ LDAP エントリーが一部のユーザーについて入力されていない場合、または uid の uid 値の前後にスペースが含まれている場合。この問題は、ldap データが正しく追加されていない場合に発生します。plone の上記のユーザーとグループのサブメニューは、上記のエラーをスローします。

于 2013-08-12T11:45:41.247 に答える