我已经安装了 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 服务器后,管理员可以访问@@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)