Unknown authentication scheme with wget and CPanel

jimhermann

Well-Known Member
Jan 20, 2008
71
2
58
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
 

jimhermann

Well-Known Member
Jan 20, 2008
71
2
58
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/[email protected]':
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