On Sun, 31 Aug 2003 02:34:42 -0700, JLM <[EMAIL PROTECTED]> wrote: > * What environment is the stub supposed to run from within?
The virtual user stub string you compile into tmda-cgi determines what is passed into the stub program. For example, if you use: vpopmail1 /home/vpopmail/bin/vuserinfo ~ That means to execute: /home/vpopmail/bin/vuserinfo <login user name> and treat each line of output as a member in a list. Then that list is passed as a parameter to function getuserparams in a stub program called stubs/vpopmail1.py. The stub is expected to return a tuple of three or four elements: home directory, UID, GID, long user name (optional) > In which exact > situations is it called? Login. > * What variables does the virtual user information program have at its > disposal? Anything provided by the remainder of the string command. Use "~" to indicate "current user login name". If that isn't enough to get you going, feel free to mail me your Perl program and I'll see if I can convert it to a Python stub. Gre7g. _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
