Aaron,

First, I applaud your work on the auth separation. It's a key feature for large scale software.

I am currently part of the macs project on Source Forge (http://macs.sf.net). Grossly oversimplified, it is a single sign-on system. As I have been using dbmail (with much delight) for over a year now--and am quite sure I want it in my systems long term--I was planning on integrating it with macs at some point in the future.

Your auth API will make this process significantly simpler. Thank you. If you also provide an API for the aliases, I'm sure it will fit in nicely to macs' resource management structure.

Of course I will advise the list on any dbmail related code that I come up with. We're working hard to bring macs to beta this month, and this integration will come soon after.

Cheers,
Blake

Aaron Stone wrote:
Here's another idea that builds upon this, with fewer changes... since I
can think of at least one potential auth mechanism that won't work well
with aliases - PAM - and so perhaps we should do a combination effort:

Each db implements the alias function as db_...alias...

All calls to the ...alias... function MUST be to auth_...alias... and
unless the auth mechanism can provide its own aliasing, just pass along
the call to the underlying db_...alias... function.

In this way, an auth module could also use both its own aliases and
aliases from the database to create a more configurable environment.

Or maybe it's just needless complexity, and I'm scratching my head hoping
that someone is listening and thinking about alternative auth's...

Aaron


On Tue, 7 Jan 2003, Aaron Stone wrote:


Hi,

As I get further along on the LDAP auth module, I've noticed that the
alias table functions are all in the db.h and not in the auth.h
abstraction. Since the "native LDAP" posixAccount and MS's Active
Directory "user" classes both include the possibility for multiple mail
and mailAlternate attributes, it makes sense to use these fields as the
aliases for the given account.

Perhaps we could move these functions into auth.h...

u64_t db_get_user_from_alias(const char *alias);
char* db_get_deliver_from_alias(const char *alias);

int db_get_user_aliases(u64_t userid, struct list *aliases);
int db_addalias(u64_t useridnr, char *alias, u64_t clientid);
int db_addalias_ext(char *alias, char *deliver_to, u64_t clientid);
int db_removealias(u64_t useridnr, const char *alias);
int db_removealias_ext(const char *alias, const char *deliver_to);


Aaron

_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail



_______________________________________________
Dbmail mailing list
Dbmail@dbmail.org
https://mailman.fastxs.nl/mailman/listinfo/dbmail



Reply via email to