On 11/18/05 2:36 PM, "Craig Forbes" <[EMAIL PROTECTED]> wrote:

> On Fri, Nov 18, 2005 at 01:55:58PM -0500, Administrator wrote:
> ..SNIP..
> 
>> So, simply put, how do I get the username of the logged-in user in order to
>> return the appropriate information?
> 
> There is a function in Util.py called getusername that should give you the
> username that tmda-filter is running as.
> 

tmda-filter is running as unprivileged user "tmda".


>> Am I going about the shell script wrong?
> 
> Why do you want the shell script?  Without more information I can't
> answer that question.
> 
> I have implemented tmda with cyrus and virtual users.  To do this I added
> an lmtp delivery method to tmda and changed tmda-filter to take command
> line options instead of expecting everything to be passed via the environment.
> 
> We do not use the outgoing filters

I intend to use the outgoing filters -- and the issue is with tmda-ofmipd.

Even though I'm running tmda-ofmpid as the unprivileged user "tmda" also, it
picks up "root" as the user for user-expansion regardless of the logged-in
user.

So, when a user authenticates via tmda-ofmpid, I need to then generate the
user home directory, "/var/tmda/users/USERNAME" from that information.
Otherwise, tmda-ofmpid dies with "/var/tmda/users/root/crypt_key" does not
exist.

> 
>  -Craig
> 

-- 
Mark J. Nernberg
System Administrator
Running Leopard

For technical support issues, please email [EMAIL PROTECTED]



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

Reply via email to