-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm guessing a little here, but I think here is what's happening:
When you ran the tmda-cgi configure script you answered the following
question:
Which virtual user stub and parameters should I use for locating virtual
users? If your system does not have any virtual users, enter "None".
Judging by previous answers, I guess your answer was something along the
lines of:
vmailmgr1 /path/to/vmailmgr/script ~
where /path/to/vmailmgr/script is a script provided by the vmailmgr
package that takes a virtual user name on the command-line and prints
out various information about that user.
The output of this script is parsed later, and the vmailmgr1 tmda-cgi
stub expects that this script will have printed a line that begins
"User:", and furthermore is in this format:
User:/home/dir/path:uid:gid
where uid is an integer.
For some reason, the script on your system is printing the value kavadas
as the uid field, rather than the expected integer user ID.
You should be able to test this by running the script yourself from the
command-line (as the root user, or whatever system user vmailmgr expects
to be run as) and looking at the results.
Dennis Kavadas wrote:
> Here you go then.....
>
>
> A problem occurred in a Python script. Here is the sequence of
> function calls leading up to the error, in the order they occurred.
> /home/mydomain/tmda-cgi/tmda-cgi.py
> 115 try:
> 116 try:
> 117 PVars = Session.Session(Form)
> 118 CgiUtil.ErrTemplate = "error.html"
> 119 except CgiUtil.NotInstalled, (ErrStr, PVars):
> PVars undefined, Session = <module 'Session' from
> '/home/mydomain/tmda-cgi/Session.pyc'>, Session.Session = <class
> Session.Session>, Form = FieldStorage(None, None,
> [MiniFieldStorage('user... 'mypassword'), MiniFieldStorage('cmd',
> 'init')])
> /home/mydomain/tmda-cgi-0.15/Session.py in
> __init__(self=<Session.Session instance>, Form=FieldStorage(None,
> None, [MiniFieldStorage('user... 'mypassword'),
> MiniFieldStorage('cmd', 'init')]))
> 418 return
> 419 # When getuserparams returns a UID of 0 or 1, assume it is a
> virtual user
> 420 if int(self.Vars["UID"]) < 2:
> 421 PasswordRecord = pwd.getpwnam(os.environ["TMDA_VUSER"])
> 422 self.Vars["UID"] = PasswordRecord[2]
> builtin int = <type 'int'>, self = <Session.Session instance>,
> self.Vars = {'GID': '536', 'HOME': '/home/mydomain/users/d', 'IP':
> '1xx.1xx.1xx.1xx', 'NAME': None, 'UID': 'kavadas', 'User':
> '[EMAIL PROTECTED]'}
>
> ValueError: invalid literal for int(): kavadas
> args = ('invalid literal for int(): kavadas',)
>
>
>
>
>
>
>
> On 2/22/07, Robert P. Thille <[EMAIL PROTECTED]> wrote:
>> On Feb 19, 2007, at 5:04 PM, Dennis Kavadas wrote:
>>
>>> hi all
>>>
>>> tmda-cgi fails to authenticate a virtual user (vmailmgr) with a dot in
>>> the username...
>>>
>>> e.g.
>>>
>>> [EMAIL PROTECTED] fail
>>> [EMAIL PROTECTED] does not fail
>> Certainly some debugging output from the failures and successes would
>> help...
>>
>> Robert
>>
> _________________________________________________
> tmda-workers mailing list ([email protected])
> http://tmda.net/lists/listinfo/tmda-workers
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF3mdThk3bo0lNTrURAm9BAKCYQDMvScuiCTEe8gNsVbN5d7NBlgCgz0Nr
cutnUahIZwMpkaWxrhexano=
=inwX
-----END PGP SIGNATURE-----
_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers