smedev:make_everything_dynamic_with_ldap

Ceci est une ancienne révision du document !


Make everything dynamic with LDAP

This page just lists a few thing I have in mind to make SME Server better. LDAP authentication is nearly ready (there's still a few little things to fix, but I'm running with LDAP auth enabled on my own personal server for 3 years now without issue). What I'd like now is make more use of LDAP.

This is just a few ideas I have, nothing serious, nothing written or working, nothing approved by other devs, and maybe even nothing realistic

The goal I have is to have more things in LDAP, ultimately, adding users and groups shouldn't require anything but adding the user or the group in LDAP. No templates to expand, no service to restart. This means for example, all the mail stuff (qpsmtpd, qmail) should read LDAP to get the required info, no more flat files, no more static configuration.

A first bonus we would have with this is adding, removing, modifying groups and users really faster, but that would just be a side effect. The real benefit is that SME could then use another LDAP directory. You can manage all your users and groups elsewhere, in any LDAP server you want, and then connect your SME box (or several SME servers). Your master LDAP server could of course be another SME, but should not be required, as long as you use a compatible LDAP schema.

The first step (of course) is to enable LDAP as the main source of authentication on SME. Most of the work is already done, we just need some testers, bugs reports etc…

Here's a list of bugs which need to be fixed:

Here's a list of a few things which can be enhanced in LDAP

Switch to rfc2307bis ?

The main difference between rfc2307 (currently used) and rfc2307bis is the way groups are handled. The buggest advantage of rfc2307bis is the possibility to enabled the memberOf overlay

Add smbk5pwd

smbk5pwd is a overlay which makes sure Unix and samba passwords stay in sync (as long as you use LDAP exop to chane the password)

Add pseudonyms as mailAlternateAddress attributes

  • Add all the virtual domains / pseudonyms combinations
  • Enable pam_mkhomedir
  • Create a script to create it as a root preexec script (so connecting to the personal samba share create the dir)
  • Add required schema to LDAP
  • switch to qmail-ldap
  • Replace goodrcptto with an LDAP equivalent (rcpt_ldap ?)
  • Read operations should first try to read LDAP directly
  • Write/read fallback to standard flat file DB
  • Make it possible to disable user and group management
  • smedev/make_everything_dynamic_with_ldap.1364498189.txt.gz
  • Dernière modification: 28/03/2013 20:16
  • de dani