[CPS-users] CPSLDAPSetup

Georges Racinet gracinet at nuxeo.com
Sat Mar 25 18:04:51 CET 2006


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 ?

> Traceback: 	
>
> Traceback (innermost last):
>
>     * Module ZPublisher.Publish, line 113, in publish
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 40, in call_object
>     * Module Products.CPSCore.setuptool, line 291, in 
> manage_importProfile
>     * Module Products.CPSCore.setuptool, line 224, in importProfile
>     * Module Products.GenericSetup.tool, line 248, in runAllImportSteps
>       __traceback_info__: profile-CPSLDAPSetup:default
>     * Module Products.GenericSetup.tool, line 716, in _doRunImportStep
>       __traceback_info__: directories
>     * Module Products.CPSDirectory.exportimport, line 60, in
> importDirectoryTool
>     * Module Products.GenericSetup.utils, line 744, in importObjects
>       __traceback_info__: portal_directories
>     * Module Products.GenericSetup.utils, line 510, in _importBody
>     * Module Products.CPSDirectory.exportimport, line 92, in 
> _importNode
>     * Module Products.GenericSetup.utils, line 564, in _initObjects
>       __traceback_info__: ('members_ldap', 'CPS LDAP Backing 
> Directory')
>
> ValueError: unknown meta_type 'CPS LDAP Backing Directory'
>
>
>    I've edited the profiles/default/directories/members_ldap.xml file 
> as said
> in the README.txt file. Only changed server setting and ldap base 
> fields.
>    How to fix this error?
>    I need LDAP because my CPS 3.3.8.1 user base is already LDAP based.
>    Everything else is working in CPS 3.4.0, but CPSMailAccess (another 
> story);
> I'm trying the approach suggested in the Upgrade guide: first trying 
> to get a
> CPS 3.4.0 instance fully functional and working and then replacing 
> 'var'.
>    So I need LDAP working!

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.

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

Good luck,

GR



More information about the cps-users mailing list
More information about CPS: CPS project - CVS - API

Hosting: Nuxeo: Zope service provider


This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.