Whee, found the CVS repository with the code from db.debian.org. The scripts are somewhat helpful.
My little LDAP web-interface is progressing slowly, I'm trying to get the system to use auth-tokens from HordeSession, so that our IMP users won't have to reauthenticate themselves. It's quite disturbing that Horde stores the username/password in cleartext-equivalent format to the SQL database. Maybe I could hack it to use IPC shared memory segments that would be tied to the parent apache process. I have to do some studying to understand SQL better too.
Hmm, I really should be reading to my final exams instead of doing all this. Oh well ...