• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Rejected when authenticating to Sharepoint, but IWA works

 
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Sharepoint site that I can open just fine through IE, via integrated Windows authentication, but which I cannot open through Java.





This just prints "Feeding username and password for ntlm" 10 times and then quits.

If I use a browser that isn't configured for IWA, such as Opera, I get prompted for my credentials and I get right in, using the credentials just as they appear in the code.

So why do my credentials get rejected when I supply them programmatically?
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm sure you've read these already but it might be worth looking at it again:

http://java.sun.com/javase/6/docs/technotes/guides/net/http-auth.html

and

http://spnego.sourceforge.net/pre_flight.html

 
Thomas Kennedy
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh I read them all right. Understanding all of what I read is another matter.

As it happens, if I use the IP address it works fine. So my guess is that something between me and the dns is screwing it up. Like the load balancer doesn't like my using the application port, assuming everyone uses port 80, something like that. It would not surprise me overmuch: I'm more or less sure I'm the first person ever to try to read the Sharepoint data programmatically, as it's a pretty new environment.
 
reply
    Bookmark Topic Watch Topic
  • New Topic