hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Gionta <jjgio...@ncsu.edu>
Subject Re: preemptive authentication issue
Date Wed, 10 Oct 2012 14:14:07 GMT
I don't have any insight into the problem, but I would debug it by running
wireshark, and comparing the curl http request to the HTTPclient request.

On Wed, Oct 10, 2012 at 10:03 AM, Welty, Richard <rwelty@ltionline.com>wrote:

> I have worked through the RSA issue; it was an odd ball interaction
> between the Fuse ESB environment and the jdk that was causing SunJCE to not
> be registered properly. Thanks to those who helped.
>
> However, I am having all kinds of problems getting preemptive
> authentication to work with the service now site, and I don't have much
> time left to get it working. Can anyone offer any suggestions on how to do
> this? Service now does not do interactive auth, I have no choice but to do
> preemptive, but I followed the example here:
>
>
> http://hc.apache.org/httpcomponents-client-ga/httpclient/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java
>
> and I'm getting this back, which is the expected response when credentials
> are not supplied preemptively. I can access the site with curl when I
> specify the username/password (admin/admin) on the command line.
>
> ServiceNow CI results = <?xml version="1.0"
> encoding="ISO-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html
> xmlns="http://www.w3.org/1999/xhtml" lang="en"
> xml:lang="en"><head><title>Authentication required!</title><link
rev="made"
> href="mailto:operations@service-now.com" /><style
> type="text/css"><!--/*--><![CDATA[/*><!--*/ body {    font-family:
Arial,
> Helvetica, sans-serif;      font-size: 9pt; font-style: normal;
> font-weight: normal;    color: #888888; background-color:
> #ffffff;}.oneColFixCtr #container {  width: 700px;    background: #ffffff;
>    margin: 0 auto;         border: 1px solid #ebebeb;      text-align:
> left; }.heading {   font: 18px Arial, Verdana, Helvetica, sans-serif;
> color: #000;}.heading2 {        font: 16px Arial, Verdana, Helvetica,
> sans-serif;       color: #404040;}.subheading {   font: 14px Arial,
> Verdana, Helvetica, sans-serif;       color: #000;}.hRule hr{ border: 1px
> solid #ebebeb;}a  { color: #3366cc;}a: HOVER {      color: #3366cc;}table{
>  background-color: #ffffff;}td{    text-align: left;     vertical-align:
> top;}/*]]>*/--></style></head><body>  <div align="center"
width="700"
> border="0">  <table width="700">  <tr>            <td><img src="
> https://www.service-now.com/images/email_img/ErrorBannerHTTP.png"/></td>
>  </tr>   <tr>    <td>         <div id="mainContent">     <br
/><br />
>      <span class="heading" >Authentication required!</span><br /><br
/>
>      <table>          <tr>            <td colspan="2">            
 <p>
>  This server could not verify that you are authorized to access    the URL
> "/cmdb_ci_list.do".    You either supplied the wrong credentials (e.g., bad
> password), or your    browser doesn't understand how to supply the
> credentials required.      In case you are allowed to request the document,
> please    check your user-id and password and try again.
> </p>           <p>                      Please contact<a href="mailto:<
> support@service-now.com>">Service-now Customer Support</a> with any
> questions.                   </p>   <address>                          <a
> href="/">demo04.service-now.com</a><br /> </address>         </td>
>   </tr>   </table>            </div>      </td>           </tr>
  </table>
>  </div></body></html>
> ^C
>



-- 
Jason Gionta
Cyber Defense Lab
North Carolina State University
jjgionta@ncsu.edu

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message