John Hansen wrote:
Eric Shubert wrote:
Wait a minute. I might be going to sound like an idiot here, but I'll
take that chance.
LDAP is a protocol, not an implementation. You can implement LDAP with
a mysql backend, can you not? If so, why couldn't you have a mysql
database that serves both vpopmail and ldap at the same time? I guess
it'd be a matter of mapping the database schemas together somehow. If
the schemas could not be merged together (a good chance of that I
expect, as the vpopmail database isn't normalized well at all), worse
case scenario would be having to run a process periodically that maps
one schema (probably ldap) on to the other (probably vpopmail). In
that way, you could share authentication data like John is looking to do.
Does this make any sense at all?
It makes sense, but to make a couple points clear at this point in
time, when you want LDAP for Qmail it then becomes an
implementation. Sure, you could change the backend to serve both
vpopmail and LDAP, but that would be a major rewrite if you wanted
to use the same db for the backend. Can you tie them together? Sure.
The database is just a bunch of information. How you pull that info
and serve it for your app is up to you and is only limited by your
imagination. I could see a daemon that pulled some data from a
vpopmail database (either appending extra data to the DB entries
since vpopmail will ignore the extra data anyway or using another DB
tableset for this) that served it up in an LDAP format. Interesting
idea really.
What about building a script to populate the mysql backend upon
creation of a new ldap user? I'm thinking the script would pull the
information from the newest user and then use mysql commands to insert that
info as a new record in mysql. But that might be harder than it sounds. Just a
thought.
You'd also need to handle changes and deletes. In addition, there are a
few other things to do outside of the database such as maintaining the
mailbox store (user/Maildir directories).
--
-Eric 'shubes'
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com