Re: New TMDA install

Stephen Warren <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Bandel wrote:
> On 12/19/06, Stephen Warren <[email protected]> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> David Bandel wrote:
>>> An example of the errors running ofmipd:
>>> Traceback (most recent call last):
>>>   File "./tmda-ofmipd", line 1256, in ?
>>>     main()
>>>   File "./tmda-ofmipd", line 1209, in main
>>>     authfile_mode = Util.getfilemode(opts.authfile)
>>>   File "./TMDA/Util.py", line 120, in getfilemode
>>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>> OK. Can you supply the full command-line that you're using to invoke
>> tmda-ofmipd. Also, what user ID are you running as (root or non-root).
> 
> from tmda/bin directory:
> ./tmda-ofmipd -u tofmipd

Duh. I should read my other email more carefully! Somebody else just
reported this bug. I thought it looked familiar.

The solution is to find the following code:

if running_as_root:
    if not opts.username:
        opts.username = 'tofmipd'
    if not opts.authfile:
        authfile = '/etc/tofmipd'
    ipauthmapfile = '/etc/ipauthmap'
else:
...

And edit the following line:

        authfile = '/etc/tofmipd'

to read this instead:

        opts.authfile = '/etc/tofmipd'

I'll check this fix into svn...

Anyway, show us your other problems and we'll see if they can be fixed too!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFiDfJhk3bo0lNTrURAmfLAJ9JsG3RzSIhiq5xC+IDq27dVHSxZgCgqvHI
ArOYPRYvwwJIoiZO/SOrX8w=
=i3Np
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.