我正在尝试清理已交给我的 Plone 站点,但我不允许从头开始(我们还没有到那里)。
我被要求更改几个用户的密码,我发现自己被锁定了,即使是 ZMI 用户:当我点击 ZMI 中的 /plone-site/acl_users/source_users 时,我得到一个Unauthorized
错误!
所以,我认为这要么是:
- 像 LDAP 之类的插件(虽然没有被使用)正在弄乱我的用户源。
- 有人弄乱了权限。
关于如何解决这个问题的任何想法?(目前我已指示用户使用“忘记密码”表单重新获得访问权限,但将来我可能需要访问该对象以用于其他目的。)
2013-01-14 更新
正如@aclark 所问,我提供了完整的回溯verbose-security=on
:
Traceback (innermost last):
Module ZPublisher.Publish, line 127, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 47, in call_object
Module Shared.DC.Scripts.Bindings, line 324, in __call__
Module Shared.DC.Scripts.Bindings, line 361, in _bindAndExec
Module Products.PageTemplates.PageTemplateFile, line 130, in _exec
Module Products.PageTemplates.PageTemplate, line 80, in pt_render
Module zope.pagetemplate.pagetemplate, line 113, in pt_render
Module zope.tal.talinterpreter, line 271, in __call__
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 533, in do_optTag_tal
Module zope.tal.talinterpreter, line 518, in do_optTag
Module zope.tal.talinterpreter, line 513, in no_tag
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 852, in do_condition
Module zope.tal.talinterpreter, line 343, in interpret
Module zope.tal.talinterpreter, line 819, in do_loop_tal
Module zope.tales.tales, line 682, in setRepeat
Module zope.tales.tales, line 696, in evaluate
- URL: manage_users
- Line 31, Column 1
- Expression: <PathExpr standard:'here/listUserInfo'>
- Names:
{'container': <UserManager at /ca/acl_users/source_users>,
'context': <UserManager at /ca/acl_users/source_users>,
'default': <object object at 0x7f4c7f84aad0>,
'here': <UserManager at /ca/acl_users/source_users>,
'loop': {},
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0xbf67418>,
'request': <HTTPRequest, URL=http://intranet.lahavane.com/ca/acl_users/source_users/manage_users>,
'root': <Application at >,
'template': <PageTemplateFile at /ca/acl_users/source_users/manage_users>,
'user': <PropertiedUser 'admin'>}
Module zope.tales.expressions, line 217, in __call__
Module Products.PageTemplates.Expressions, line 149, in _eval
Module zope.tales.expressions, line 124, in _eval
Module Products.PageTemplates.Expressions, line 76, in boboAwareZopeTraverse
Module OFS.Traversable, line 310, in restrictedTraverse
Module OFS.Traversable, line 245, in unrestrictedTraverse
- __traceback_info__: ([], 'listUserInfo')
Module AccessControl.ImplPython, line 729, in guarded_getattr
Module AccessControl.ImplPython, line 671, in aq_validate
Module AccessControl.ImplPython, line 565, in validate
Module AccessControl.ImplPython, line 463, in validate
Module AccessControl.ImplPython, line 810, in raiseVerbose
Unauthorized: Your user account does not have the required permission. Access to 'listUserInfo' of (UserManager at /ca/acl_users/source_users) denied. Your user account, admin, exists at /acl_users. Access requires Manage_users_Permission, granted to the following roles: []. Your roles in this context are ['Authenticated', 'Manager', 'Owner'].
最后一句很有启发性:没有一个角色可以做我想做的事。现在的问题是如何解决这个问题。另一个问题(我们可能不会回答)是这是如何发生的。