I am still getting the same problem from a different machine:
- could the wget request be requiring me to "Accept" the license agreement or
is this simply not accepting my login?
- I can login using a web browser to sunsolve and download the patch 119254-70
- this system can resolve sunsolve.sun.com & ping it.
- I created ".out" files for:
showrev -p >showrev.out
uname -a >uname.out
pkginfo -x >pkginfo.out
- copied the .out files into a directory on the remote system.
- I ran pca from within that directory.
bash-3.00$ ~/pca --askauth -f . -d installed
Using /var/tmp/patchdiag.xref from Oct/06/09
Host: cm (SunOS 5.10/Generic_141414-10/sparc/sun4u)
List: installed (586/1323650)
Patch IR CR RSB Age Synopsis
------ -- - -- --- --- -------------------------------------------------------
119254 70 = 70 RS- 34 SunOS 5.10: Install and Patch Utilities Patch
Looking for 119254-70 (1/586)
Please enter Sun Online Account User: [email protected]
Please enter Sun Online Account Password:
Trying https://sunsolve.sun.com/ (1/1)
Failed
Failed (patch not found)
------------------------------------------------------------------------------
...
- pca in verbose mode:
...
Trying https://sunsolve.sun.com/ (1/1)
/usr/sfw/bin/wget
"https://sunsolve.sun.com/pdownload.do?target=119254-70&method=h"
--ca-certificate=/home/home61/wbearle/pca --header="Authorization: Basic
YmlsbEBiaWxsZWFybGUuY29tOnVic3BlYWs=" -O
/tmp/TD-patchcluster-Sol-10/./119254-70.tmp
--13:59:33-- https://sunsolve.sun.com/pdownload.do?target=119254-70&method=h
=> `/tmp/TD-patchcluster-Sol-10/./119254-70.tmp'
Resolving sunsolve.sun.com... 192.18.108.40
Connecting to sunsolve.sun.com|192.18.108.40|:443... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
Failed
Failed (patch not found)
------------------------------------------------------------------------------
- I ran wget on the command line interactively and I get redirected and fail.
- I actually download a html file with (among lots of html) " SunSolve
License Agreement" ... " All SunSolve users must read and accept the following
SunSolve License Agreement <br>before they can download and use any software
and patches.",
- in the file validateSLA.do?orignalTarget=show.do?target=home.2
bash-3.00$ /usr/sfw/bin/wget
"https://sunsolve.sun.com/pdownload.do?target=116837-04&method=h"
--ca-certificate=/home/home61/wbearle/pca
--14:21:20-- https://sunsolve.sun.com/pdownload.do?target=116837-04&method=h
=> `pdownload.do?target=116837-04&method=h'
Resolving sunsolve.sun.com... 192.18.108.40
Connecting to sunsolve.sun.com|192.18.108.40|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location:
https://sunsolve.sun.com/validateSLA.do?orignalTarget=show.do?target=home
[following]
--14:21:21--
https://sunsolve.sun.com/validateSLA.do?orignalTarget=show.do?target=home
=> `validateSLA.do?orignalTarget=show.do?target=home.2'
Reusing existing connection to sunsolve.sun.com:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
[ <=> ] 28,405 103.91K/s
14:21:22 (103.67 KB/s) - `validateSLA.do?orignalTarget=show.do?target=home.2'
saved [28405]
Thanks,
Bill
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Earle, William B - SSD
Sent: Wednesday, October 07, 2009 1:20 PM
To: '[email protected]'; 'PCA (Patch Check Advanced) Discussion'
Subject: Re: [pca] Sun Online Account user name is an email address
Derek,
Thanks for the confirmation that an email address works as the user name.
I'll keep poking around.
- One other item is that the system I am running pca from has limited internet
access and I have an entry in hosts for sunsolve.
192.18.108.40 sunsolve.sun.com
- I will see if I can locate a system outside of my lab and try my account.
Thanks,
Bill
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Derek Terveer
Sent: Wednesday, October 07, 2009 12:24 PM
To: PCA (Patch Check Advanced) Discussion
Subject: Re: [pca] Sun Online Account user name is an email address
My online account is also an email address in the form,
[email protected]
and it works. You could try the -a switch to force it to prompt you for the
password, as needed.
derek
On Wed, Oct 07, 2009 at 11:54:00AM -0400, Earle, William B - SSD wrote:
> I have a valid Sun Online Account user name which is an email address.
> The user name contains an @ [at] symbol and a period.
>
> I am unable to download patches using pca, I get an "Authorization failed."
> error when running pca in verbose mode (-V).
>
> Is there a simple way to escape the @ symbol and the period in the username?
>
> I've tried backslah escaping, I've tried single & double quotes, I've tried
> URL encoding "%40", but still get the "Authorization failed." error.
>
>
> ex:
> ------------------------------------------------------------------------------
> 116837 02 < 04 RS- 243 Sun LDAP C SDK 5.19 patch : SunOS sparc
>
> Looking for 116837-04 (2/586)
> Trying https://sunsolve.sun.com/ (1/1)
> /usr/sfw/bin/wget
> "https://sunsolve.sun.com/pdownload.do?target=116837-04&method=h"
> --ca-certificate=/usr/local/bin/pca --header="Authorization: Basic
> YmlsbEBiaWxsZWFybGUuY29tOnVic3BlYWs=" -O
> /var/tmp/securing/TD-patchcluster-Sol-10/./116837-04.tmp
> --11:30:02-- https://sunsolve.sun.com/pdownload.do?target=116837-04&method=h
> => `/var/tmp/securing/TD-patchcluster-Sol-10/./116837-04.tmp'
> Resolving sunsolve.sun.com... 192.18.108.40
> Connecting to sunsolve.sun.com|192.18.108.40|:443... connected.
> HTTP request sent, awaiting response... 401 Unauthorized
> Authorization failed.
> Failed
> Failed (patch not found)
> ------------------------------------------------------------------------------
>
>
> Thanks,
> Bill
>
> ________________________________
> This e-mail and any files transmitted with it may be proprietary and are
> intended solely for the use of the individual or entity to whom they are
> addressed. If you have received this e-mail in error please notify the sender.
> Please note that any views or opinions presented in this e-mail are solely
> those of the author and do not necessarily represent those of ITT
> Corporation. The recipient should check this e-mail and any attachments for
> the presence of viruses. ITT accepts no liability for any damage caused by
> any virus transmitted by this e-mail.
--
Een goed begin is het halve werk!
Derek Terveer
Sun Microsystems (JAVA), Unix Administrator
<[email protected]> 651-554-1504 x54404