2013-08-02 37 views
2

我已經安裝了Plone 4.2.1和plone.app.ldap 1.3。如果激活了ldap服務器,則ldap用戶可以登錄,但管理員無法訪問@@usergroup-userprefs頁面。它如下拋出了一些錯誤:Plone @@ usergroup-userprefs使用plone.app.ldap崩潰

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) 
+0

你有'很多用戶嗎?'在'@@ usergroup-controlpanel'上設置的選項? –

+0

有沒有這樣的選項,我可以在這裏看到@http://stackoverflow.com/users/626302/dan-jacka – user956424

+3

它可能是有益的知道:1.什麼屬性您的用戶用來標識自己,2.你的設置關於使用經理DN。我瘋狂的猜測是你的管理員不能從LDAP服務器爲其他人讀取足夠的屬性。 –

回答

0

如果未爲某些用戶填充具有uid和SN屬性的LDAP條目,或者uid包含uid值之前或之後的空格。總體來說,如果ldap數據未正確添加,則會出現此問題,則上面的plone中的上述用戶和組子菜單會引發上述錯誤。

1

我注意到,當我從ZMI訪問LDAPServer時,服務器沒有定義。我在那裏添加了ldap服務器的詳細信息,並已連接。看起來LDAPServer並未從GUI設置,即LDAP控制面板