Changeset 34732
- Timestamp:
- 03/27/06 16:44:46 (4 years ago)
- Files:
-
- CPSLDAPSetup/trunk/CHANGES (modified) (1 diff)
- CPSLDAPSetup/trunk/README.txt (modified) (4 diffs)
- CPSLDAPSetup/trunk/profiles/default/schemas/members.xml (modified) (1 diff)
- CPSLDAPSetup/trunk/profiles/default/schemas/members_ldap.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
CPSLDAPSetup/trunk/CHANGES
r34635 r34732 6 6 - A few more standard inetOrgPerson attributes (telephoneNumber and the like) 7 7 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 8 10 Bug fixes: 9 11 ~~~~~~~~~~ CPSLDAPSetup/trunk/README.txt
r34722 r34732 1 $Id$ 1 ============ 2 CPSLDAPSetup 3 ============ 2 4 3 ======================= 4 CPSLDAPSetup 5 ======================= 5 :Revision: $Id$ 6 6 7 This package provides a sample LDAP configuration in the form of an 8 extensionprofile for CPS 3.47 This package provides a sample LDAP configuration in the form of an extension 8 profile for CPS 3.4 9 9 10 The main goal of this product is to provide an example of such a 11 configurationand ease the setup.10 The main goal of this product is to provide an example of such a configuration 11 and ease the setup. 12 12 13 This configuration defines an LDAP server as the main user 14 sources. Groups and roles are stored within the ZODB. 13 This configuration defines an LDAP server as the main user sources. Groups and 14 roles are stored within the ZODB. All users registered in the members directory 15 automatically get the 'Member' role (thanks to a read_process_expr in the 16 members schema). 15 17 16 18 You may start from this to setup your own configuration. … … 38 40 -------------- 39 41 40 - Install the ` python-ldap` module in the PYTHONPATH of your Zope instance. You41 can check if it's correctly installed by typing `import ldap` in a python42 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. 43 45 - Extract this product within your Products directory. 44 46 - Restart Zope … … 52 54 53 55 The 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 useit, don't forget to change the passwords.56 OpenLDAP server. The default setup works out of the box with these. If you use 57 it, don't forget to change the passwords. 56 58 57 59 Tuning: … … 68 70 - CPS >= 3.4.0 69 71 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 50 50 <property name="read_ignore_storage">True</property> 51 51 <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> 53 53 <property name="write_ignore_storage">True</property> 54 54 <property CPSLDAPSetup/trunk/profiles/default/schemas/members_ldap.xml
r34606 r34732 37 37 <property name="read_ignore_storage">True</property> 38 38 <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> 40 40 <property name="write_ignore_storage">True</property> 41 41 <property
