On Mar 27, 2006, at 1:20 PM, Mario Olimpio de Menezes wrote:

Hi,

Thanks Georges; I forgot to install python2.4-ldap even though had upgraded
to python2.4.2.

Cool. Olivier added it to the install instructions

Now I've imported the profile, but after this, the whole portal is off reach, that is, nobody, including site manager can log in. I noticed one thing a bit stranger: while I was importing CPSLDAPSetup profile, I was asked to type Zope Site Manager password (user ZopeSuper in the log bellow). Should
this be the reason for this error?  Meantime, I'll try to change the
ownership some products back to cps site manager (instead of Zope Site
Manager) and if this doesn't work, I'll reinstall CPS and try again.
   The error is:
        
Site Error

An error was encountered while publishing this resource.

ConfigurationError
Sorry, a site error occurred.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 187, in publish_module_standard
    * Module Products.Localizer, line 60, in new_publish
    * Module ZPublisher.Publish, line 144, in publish
* Module Products.CPSCompat.PatchPublisherConflictErrors, line 95, in
zpublisher_exception_hook
    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 195, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
      <FSPageTemplate at /colab/index_html>
    * Module TAL.TALInterpreter, line 238, in __call__
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 457, in do_optTag_tal
    * Module TAL.TALInterpreter, line 442, in do_optTag
    * Module TAL.TALInterpreter, line 437, in no_tag
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 749, in do_useMacro
    * Module TAL.TALInterpreter, line 281, in interpret
    * Module TAL.TALInterpreter, line 507, in do_setLocal_tal
    * Module Products.PageTemplates.TALES, line 221, in evaluate
      URL: file:CPSSkins/skins/cpsskins_cps3/main_template.pt
      Line 2, Column 0
      Expression: <PythonExpr atool.listFilteredActionsFor(here)>
      Names:

      {'container': <CPSDefaultSite at /colab>,
       'context': <CPSDefaultSite at /colab>,
       'default': <Products.PageTemplates.TALES.Default instance at
0x40d0fe2c>,
       'here': <CPSDefaultSite at /colab>,
       'loop': <Products.PageTemplates.TALES.SafeMapping object at
0x4552184c>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter
instance at 0x40d3d3ac>,
       'nothing': None,
       'options': {'args': ()},
       'repeat': <Products.PageTemplates.TALES.SafeMapping object at
0x4552184c>,
'request': <HTTPRequest, URL=http://tucano.ipen.br/colab/ index_html>,
       'root': <Application at >,
       'template': <FSPageTemplate at /colab/index_html>,
       'traverse_subpath': [],
       'user': <User 'ZopeSuper'>}

    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
      __traceback_info__: atool.listFilteredActionsFor(here)
* Module Python expression "atool.listFilteredActionsFor (here)", line 1,
in <expression>
* Module Products.CMFCore.ActionsTool, line 156, in listFilteredActionsFor * Module Products.CMFCore.ActionProviderBase, line 107, in listActionInfos * Module Products.CMFCore.ActionInformation, line 87, in __getitem__ * Module Products.CMFCore.ActionInformation, line 116, in _checkCondition * Module Products.CMFCore.ActionInformation, line 236, in testCondition
    * Module Products.CMFCore.Expression, line 44, in __call__
    * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
__traceback_info__: member and portal.portal_webmail.canHaveMailBox()
    * Module Python expression "member and
portal.portal_webmail.canHaveMailBox()", line 1, in <expression>
* Module Products.CPSMailAccess.mailtool, line 278, in canHaveMailBox * Module Products.CPSMailAccess.mailtool, line 227, in _searchEntries * Module Products.CPSDirectory.MetaDirectory, line 434, in _searchEntries
    * Module Products.CPSDirectory.StackingDirectory, line 203, in
_searchEntries
    * Module Products.CPSDirectory.LDAPBackingDirectory, line 308, in
_searchEntries
    * Module Products.CPSDirectory.LDAPBackingDirectory, line 566, in
_searchEntriesFiltered
    * Module Products.CPSDirectory.LDAPBackingDirectory, line 786, in
searchLDAP
    * Module Products.CPSDirectory.LDAPBackingDirectory, line 736, in
connectLDAP

ConfigurationError: Directory 'members_ldap': Invalid credentials (Also, the
following error occurred while attempting to render the standard error
message, please see the event log for full details: Directory 'members_ldap':
Invalid credentials)

You have at least remainings of the CPSMailAccess profile. canHaveMailBox cannot work right now with CPSLDAPSetup, although this shouldn't harm IIRC (you wouldn't get the action, that's all). About the 'invalid credentials' error: can you perform a LDAP search from the ZMI (in portal_directories/members_ldap) ? (this is lower level)

On Saturday 25 March 2006 14:04, Georges Racinet wrote:
Le 24 mars 2006, à 21:14, Mario Olimpio de Menezes a écrit :
Hi,

I'm trying to install CPSLDAPSetup beta to use a LDAP directory to
authenticate users.
   When trying to import the profile, I got this error:

Error Type:     ValueError
Error Value:

unknown meta_type 'CPS LDAP Backing Directory'

If I remember well, this can be the error if the python ldap library
isn't installed. I suppose you had to upgrade python to 2.4.2. Could
you have forgotten this ?

To check, launch the python interpreter, and type 'import ldap'. You
should see a warning in the startup logs as well.

Otherwise, launch Zope in debug mode. Do you get an error ?


As far as CPSMailAccess is concerned, it can't work right away with
CPSLDAPSetup, because of some dependency problems between profiles
(nothing a configuration expert couldn't overcome). I'm working on
this, but this is not my #1 priority at this time.

CPSMailAccess is not my #1 priority too. The problem is so weird ...
In short, without CPSLDAPSetup, I can make CPSMailAccess work for some users; that is, I created users in CPS and then enabled WebMail for them; for most users I created, this work but for one user, named 'mario' I can't get it to work. I have no idea what is wrong the this user (yes, it's me as normal
user).
For example, I created a user 'modemene'; this user logs in the Portal, enable
webmail for him in his preferences, and voila, WebMail is working.
Now, I created user 'mario' exactly the same way; this user logs in the Portal, enable webmail for him (me) in his (my) preferences, and ... No
WebMail :-(

Did you try accessing via <your site url>/portal_webmail/ webmailRedirect?user_id=mario ?



But, as I said, this is not my #1 priority for now; but I would like to hear
your progress on CPSLDAPSetup with CPSMailAccess, since this is on my
schedule to our Portal.

Okay, check mainly #1425 to keep posted.



Out of curiosity, do your users have several email addresses in the
LDAP directory ?

I'm not 100% sure about this, but as far as I know, they have only one email
address.

At this point, multiple email addresses would break CPSMailAccess sending functionality.



Good luck,

I need I bit more than luck;  your help is essential!


Thanks for the nice feedback,


---------
Georges Racinet                        Nuxeo SAS
[EMAIL PROTECTED]                http://nuxeo.com
Tel: +33 (0) 1 40 33 71 73


_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to