Hi,

I'm finally getting back to working on my LDAP backend, and I'm very happy
to discover that the auth_* functions are very well abstracted now :-D

I've got a question concerning auth_check_user() vs.
db_get_username_from_alias(). Basically, which should I be using? It looks
like db_get_user_from_alias is deprecated, and is only being used by the
command line utilities but not by the daemon code. Does this reflect the
intentional direction of the development?

int auth_check_user (const char *username, struct list *userids, int
checks)

It looks like the arguments are really badly named (or morphed over
time...) am I correct in understanding that *username is actually an
alias? ie it's going to have the To: ... address in it, and we're checking
to what user that address belongs, right? *userids is going to be
populated with linked lists to the row id numbers of the users table
entries for the destinations discovered from the email address which is in
the *username variable. and checks... looks like a recursion depth
setting, but I'm not clear on how this is used.


Anyhow, I thinks I've got a handle on the functions here, but I'm just
looking to make sure that I'm not mistaking any holes in the wall for...
well, you know, important body parts :-P

Aaron

Reply via email to