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.

Unknown authentication scheme with wget and CPanel

Discussion in 'General Discussion' started by jimhermann, May 31, 2011.

  1. jimhermann

    jimhermann Active Member

    Joined:
    Jan 20, 2008
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    8
    CPanel Folks,

    I am trying to use the instructions for creating Mailman mailing lists by using wget.

    Creating new Mailman lists on cPanel from the command line - TechOpinionation

    The comand is:

    wget --no-check-certificate --user=your_cpanel_user "--password=your_cpanel_password" --post-data "email=$L&domain=lists.yourhost.com&password=listpass&password2=listpass" https://your.cpanel.host.com:2083/frontend/x3/mail/doaddlist.html

    I get the following error message:

    HTTP request sent, awaiting response... 401 Access Denied
    Unknown authentication scheme.
    Authorization failed.

    What am I doing wrong?

    Thanks.

    Jim
     
  2. jimhermann

    jimhermann Active Member

    Joined:
    Jan 20, 2008
    Messages:
    42
    Likes Received:
    1
    Trophy Points:
    8
    CPanel Gurus,

    I found part of the answer.

    hash=`cat /root/.accesshash | tr -d '\n\r'

    wget --no-check-certificate --server-response --header='Authorization: WHM cpanel:$hash' --post-data "email=$listname&domain=$domainname&password=$password&password2=$password" https://www.$domainname:2083/frontend/x3/mail/doaddlist.html


    --2011-06-01 08:01:15-- https://www.xxxxx.org:2083/frontend/x3/mail/doaddlist.html
    Resolving www.xxxxx.org... xx.xx.xxx.xxx
    Connecting to www.xxxxx.org|xx.xx.xxx.xxx|:2083... connected.
    WARNING: cannot verify www.xxxxx.org's certificate, issued by `/C=US/ST=Unknown/L=Unknown/O=Unknown/OU=Unknown/CN=xxxxx/emailAddress=ssl@xxxxx':
    Self-signed certificate encountered.
    WARNING: certificate common name `xxxxx' doesn't match requested host name `www.xxxxx.org'.
    HTTP request sent, awaiting response...
    HTTP/1.1 403 Forbidden
    Connection: close
    Server: cpsrvd/11.30.0.23
    Content-type: text/plain
    2011-06-01 08:01:15 ERROR 403: Forbidden.

    Any ideas?

    Jim
     
Loading...

Share This Page