Charles Fry wrote:


"This library is used for two purposes:


"1. Read an E-mail address that is supposed to be for a local account.
Determine the local account's home directory, and system userid and
groupid.

"2. Read a login id and a password. If valid, determine the account's
home directory, system userid, and groupid."

It seems like #1 covers exactly what tmda-cgi's virtual user stub needs.

Has anyone already created a stub to use this? If not, is there anyone
who could help me do so? I don't know how to go about invoking a C
library from a Python script.

Courier provides a unix domain socket for accessing the authentication library. Someone has written a patch for spamassassin (written in perl) to allow spamd to find the home directory for a user using this domain socket. One of the Courier config files specifies the name of this socket. Accessing the socket from python will likely do what you want.


The spamassassin patch is called AuthCourier.pm. It will give an example of how to get a user's home directory from the socket.

Andrew

_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to