The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Weird Mailman login problem...

Discussion in 'E-mail Discussions' started by Ishware, Jul 19, 2005.

  1. Ishware

    Ishware Well-Known Member

    Joined:
    Nov 7, 2003
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Panama City, FL
    cPanel Access Level:
    Root Administrator
    To make my client's life easier, I've included a button in the administration I wrote for them that logs them into Mailman for a particular list. The relevent code is as follows:

    --------------------
    <form method="post" action="/mailman/admin/newsletter_domain.com" target="_blank">
    <input type="hidden" name="adminpw" value="real_password_here">
    <input type="hidden" name="admlogin" value="Let me in...">
    <input type="submit" value="Administer Newsletter@">
    --------------------

    (where "domain.com" and "password" are correct)

    This has worked with no problems for several months.

    Starting today, however, I get the following from Mailman:

    ---------------------
    Bug in Mailman version 2.1.5p1

    We're sorry, we hit a bug!
    If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks!

    Traceback:

    Traceback (most recent call last):
    File "/usr/local/cpanel/3rdparty/mailman/scripts/driver", line 87, in run_main
    main()
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 88, in main
    cgidata.getvalue('adminpw', '')):
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/SecurityManager.py", line 224, in WebAuthenticate
    ac = self.Authenticate(authcontexts, response, user)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/SecurityManager.py", line 171, in Authenticate
    sharesponse = sha.new(response).hexdigest()
    TypeError: new() argument 1 must be string or read-only buffer, not list
    --------------------------

    Now, if I otherwise browse to domain.com/mailman/admin/newsletter_domain.com, I get the login page, and can log in just fine.

    I've checked the source of that page, and it appears to me that nothing has changed, as far as the form goes...

    I'm a budding PHP programmer - i.e., I don't read Python, so I can't figure out what the heck he's doing there...

    Anyone have any ideas?

    In case it helps, here's more of the error page, which I will take the time to obfuscate:

    -------------------

    Bug in Mailman version 2.1.5p1

    We're sorry, we hit a bug!
    If you would like to help us identify the problem, please email a copy of this page to the webmaster for this site with a description of what happened. Thanks!

    Traceback:

    Traceback (most recent call last):
    File "/usr/local/cpanel/3rdparty/mailman/scripts/driver", line 87, in run_main
    main()
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/Cgi/admin.py", line 88, in main
    cgidata.getvalue('adminpw', '')):
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/SecurityManager.py", line 224, in WebAuthenticate
    ac = self.Authenticate(authcontexts, response, user)
    File "/usr/local/cpanel/3rdparty/mailman/Mailman/SecurityManager.py", line 171, in Authenticate
    sharesponse = sha.new(response).hexdigest()
    TypeError: new() argument 1 must be string or read-only buffer, not list





    --------------------------------------------------------------------------------

    Python information:
    Variable Value
    sys.version 2.3.3 (#1, May 7 2004, 10:31:40) [GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)]
    sys.executable /usr/bin/python2
    sys.prefix /usr
    sys.exec_prefix /usr
    sys.path /usr
    sys.platform linux2




    --------------------------------------------------------------------------------

    Environment variables:
    Variable Value
    HTTP_REFERER http://domain.com/index.php?somestuff=stuff&otherstuff=otherstuff
    SERVER_SOFTWARE Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.11 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a
    SCRIPT_NAME /mailman/admin
    SERVER_SIGNATURE Apache/1.3.33 Server at myserver.com Port 80
    REQUEST_METHOD POST
    PATH_INFO /newsletter_domain.com
    SERVER_PROTOCOL HTTP/1.1
    QUERY_STRING
    CONTENT_LENGTH 187
    HTTP_USER_AGENT (my browser)
    HTTP_CONNECTION Keep-Alive
    HTTP_COOKIE newsletter_domain.com+admin=; PHPSESSID=longcomplicatedsessionid
    SERVER_NAME myserver.com
    REMOTE_ADDR my.ip.address.here
    PATH_TRANSLATED /usr/local/apache/htdocs/newsletter_domain.com
    SERVER_PORT 80
    SERVER_ADDR server.ip.address.here
    DOCUMENT_ROOT /usr/local/apache/htdocs
    PYTHONPATH /usr/local/cpanel/3rdparty/mailman
    SCRIPT_FILENAME /usr/local/cpanel/3rdparty/mailman/cgi-bin/admin
    SERVER_ADMIN me@myserver
    HTTP_HOST mail.server.com
    HTTP_CACHE_CONTROL no-cache
    REQUEST_URI /mailman/admin/newsletter_domain.com
    HTTP_ACCEPT */*
    GATEWAY_INTERFACE CGI/1.1
    REMOTE_PORT 3665
    HTTP_ACCEPT_LANGUAGE en-us
    CONTENT_TYPE application/x-www-form-urlencoded
    HTTP_ACCEPT_ENCODING gzip, deflate
     
Loading...

Share This Page