These scripts sync mailman mailing lists with an ldap server.
To install, put the files in the following folders:
FileMemberships.py --> /usr/lib/mailman/Mailman
extend.py --> /var/lib/mailman/lists
LdapSync.py --> /usr/local/lib/python2.6/dist-packages (or anywhere else in sys.path)
example.py --> /etc/cron.hourly
but first you should change the settings in example.py.
Also, postfix (or any other MTA) should know that /etc/mailman/aliases and /etc/postfix/uid-aliases are aliases files.
Caution: any lists that are not defined in LDAP (including the system "mailman" list) are deleted. A future version might instead save the listnames in a file and delete only those which were present the last time the script was called.
Of course any of this comes without any warranty. (see LICENSE)