Changeset 34732

Show
Ignore:
Timestamp:
03/27/06 16:44:46 (3 years ago)
Author:
ogrisel
Message:

all users registered in the members directory now have the Member role by default: this is added by a read_process_expr in the 'members' schema

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • CPSLDAPSetup/trunk/CHANGES

    r34635 r34732  
    66- A few more standard inetOrgPerson attributes (telephoneNumber and the like) 
    77  have been forwarded to the CPS directories. 
     8- all users registered in the members directory now have the Member role by 
     9  default: this is added by a read_process_expr in the 'members' schema 
    810Bug fixes: 
    911~~~~~~~~~~ 
  • CPSLDAPSetup/trunk/README.txt

    r34722 r34732  
    1 $Id$ 
     1============ 
     2CPSLDAPSetup 
     3============ 
    24 
    3 ======================= 
    4 CPSLDAPSetup 
    5 ======================= 
     5:Revision: $Id$ 
    66 
    7 This package provides a sample LDAP configuration in the form of an 
    8 extension profile for CPS 3.4 
     7This package provides a sample LDAP configuration in the form of an extension 
     8profile for CPS 3.4 
    99 
    10 The main goal of this product is to provide an example of such a 
    11 configuration and ease the setup. 
     10The main goal of this product is to provide an example of such a configuration 
     11and ease the setup. 
    1212 
    13 This configuration defines an LDAP server as the main user 
    14 sources. Groups and roles are stored within the ZODB. 
     13This configuration defines an LDAP server as the main user sources. Groups and 
     14roles are stored within the ZODB. All users registered in the members directory 
     15automatically get the 'Member' role (thanks to a read_process_expr in the 
     16members schema). 
    1517 
    1618You may start from this to setup your own configuration. 
     
    3840-------------- 
    3941 
    40  - Install the `python-ldap` module in the PYTHONPATH of your Zope instance. You 
    41    can check if it's correctly installed by typing `import ldap` in a python 
    42    shell. 
     42 - Install the ``python-ldap``_ module in the PYTHONPATH of your Zope instance. 
     43   You can check if it's correctly installed by typing `import ldap` in a  
     44   python shell. 
    4345 - Extract this product within your Products directory. 
    4446 - Restart Zope 
     
    5254 
    5355The ldap_utils/ subfolder provides sample configuration files to setup a test 
    54 OpenLDAP server. The default setup works out of the box with 
    55 these. If you use it, don't forget to change the passwords. 
     56OpenLDAP server. The default setup works out of the box with these. If you use 
     57it, don't forget to change the passwords. 
    5658 
    5759Tuning: 
     
    6870 - CPS >= 3.4.0 
    6971   http://www.cps-project.org/ 
    70  - python-ldap 
    71    http://python-ldap.sf.net 
     72 - _``python-ldap``: http://python-ldap.sf.net 
  • CPSLDAPSetup/trunk/profiles/default/schemas/members.xml

    r34606 r34732  
    5050    <property name="read_ignore_storage">True</property> 
    5151    <property 
    52        name="read_process_expr">python:util.dirCrossGetList('roles', 'members', data.get('uid'))</property> 
     52       name="read_process_expr">python:[role for role in util.dirCrossGetList('roles', 'members', data.get('uid')) if role != 'Member']+['Member']</property> 
    5353    <property name="write_ignore_storage">True</property> 
    5454    <property 
  • CPSLDAPSetup/trunk/profiles/default/schemas/members_ldap.xml

    r34606 r34732  
    3737  <property name="read_ignore_storage">True</property> 
    3838  <property 
    39      name="read_process_expr">python:util.dirCrossGetList('roles', 'members', data.get('uid'))</property> 
     39     name="read_process_expr">python:[role for role in util.dirCrossGetList('roles', 'members', data.get('uid')) if role != 'Member']+['Member']</property> 
    4040  <property name="write_ignore_storage">True</property> 
    4141  <property