Menu

#414 OpenLDAP shell backend

Mailman 2.1
open
nobody
None
5
2006-04-16
2006-04-16
IKEDA Soji
No

This is a wrapper of Mailman for slapd-shell(5)
OpenLDAP shell backend interface.

Requirement:

o OpenLDAP 2.x
o python-ldap
o Mailman 2.x, of course:).

Installation:

1. Extract tarball. Place shellbe.py and dumpschema.py
into $prefix/bin, and mailman-list.schema appropriate
location. Give shellbe.py exec permission.

2. Add schema. Insert following line into slapd.conf:

include /the/location/of/mailman-list.schema

Add database suffix. Insert following lines into
slapd.conf:

database shell
suffix "ou=Lists,o=My Organization,c=AQ"
add /usr/local/mailman/bin/shellbe.py
delete /usr/local/mailman/bin/shellbe.py
modify /usr/local/mailman/bin/shellbe.py
search /usr/local/mailman/bin/shellbe.py

Then restart slapd.

3. Run (as Mailman user or superuser):

$ python $prefix/bin/dumpschema.py
ldap://ldap.host/ bind-DN bind-password

After that, you shall find schemacache.pck in
$varprefix/data directory.

4. Setup mailman. Insert following lines in
$prefix/Mailman/mm_cfg.py:

SLAPD_SHELL_SUFFIX = 'ou=Lists,o=My Organization,c=AQ'
SLAPD_SHELL_OBJECTCLASSES = ['top',
'someStructuralObjectClass', ]

Note:

o SEARCH doesn't process search filter. Either
'(objectClass=*)' or '(objectClass=gnummList)' will be
recognized.
o User of slapd (typically 'ldap') should be belonged
to Mailman group ('mailman').

Discussion

  • IKEDA Soji

    IKEDA Soji - 2006-04-16

    ver.0.01

     
  • IKEDA Soji

    IKEDA Soji - 2006-04-16

    Logged In: YES
    user_id=529503

    Additional Note:

    o List member informations (memberships, real names,
    delivery statuses etc.) aren't supported by this wrapper.
    Such data will be handled by LDAP membership adapotor (see
    patch #871062).

     
  • IKEDA Soji

    IKEDA Soji - 2006-04-16
    • milestone: --> Mailman 2.1
     

Log in to post a comment.