【问题标题】:Plone @@usergroup-userprefs crashes with plone.app.ldapPlone @@usergroup-userprefs 与 plone.app.ldap 崩溃
【发布时间】:2013-08-02 11:54:37
【问题描述】:

我已经安装了 Plone 4.2.1 和 plone.app.ldap 1.3。如果启动了 ldap 服务器,ldap 用户可以登录,但 admin 无法访问@@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 服务器后,管理员可以访问 plone 站点的 @@usergroup-userprefs 页面。 还安装了 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)

【问题讨论】:

  • 你有“很多用户吗?” @@usergroup-controlpanel上设置的选项?
  • 这里没有我可以看到的选项@stackoverflow.com/users/626302/dan-jacka
  • 了解以下内容可能会有所帮助:1. 您的用户使用什么属性来标识自己,2. 您的设置是关于使用经理 DN。我的猜测是您的管理员无法从 LDAP 服务器中为其他人读取足够的属性。
  • @stackoverflow.com/users/505649/ulrich-schwarz ,用户由uid标识,经理DN的值为cn=admin,dc=xyz,dc=com

标签: python-2.7 plone python-ldap


【解决方案1】:

我注意到当我从 ZMI 访问 LDAPServer 时,服务器没有定义。我在那里添加了 ldap 服务器详细信息,它已连接。看起来 LDAPServer 没有从 GUI 设置,即 LDAP 控制面板

【讨论】:

    【解决方案2】:

    如果没有为某些用户填充具有 uid 和 SN 属性的 LDAP 条目,或者 uid 在 uid 值之前或之后包含空格。总的来说,如果没有正确添加ldap数据,就会出现这个问题,那么plone中的上述用户和组子菜单就会像上面一样抛出错误。

    【讨论】:

      猜你喜欢
      • 2011-08-19
      • 2010-09-13
      • 2011-11-07
      • 2018-07-14
      • 2020-01-26
      • 2021-08-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多