• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NT Authorization through a servlet

 
Mike Ottinger
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,

Using HttpClient I'm creating an NTCredentials object to pass to a request for a centralized xml document being served from a separate web app. This works fine if I specify my domain username and password. But I'm wary of having this stuff open and available in my source code. So I'm wondering if the NTLM authorization process can accept app-server defined usernames such as admin, manager, or guest. Or does this involve a different auth-type such as BASIC? Doesn't basic require a username/password prompt?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,

I've read it can be done but I'm not sure how exactly to do it.

These might point you in the right direction.
http://seedwiki.com/wiki/tech_articles/Tech%20Articles.html
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/realm-howto.html

Even if you don't use NT Domains the JDBC Realms might be of interest to you.
 
Mike Ottinger
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Ben. I found a good work-around. I basically had my server admin create a new user within the domain of the server. Passing that into the NTCredential object works great. There's no sense in changing an authentication type then having to workaround that. Thanks for the links.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic