Windows services authentication using Kerberos from Java program on linux -
hie everyone, struggling problem of authentication few days now. work on web app on tomcat7/java7/linux , need access windows ssrs server app.
when run code on windows machine, work fine, authentication done windows , use:
inputstream pdfinstream = new bufferedinputstream(pdfurl.openstream(), buffersize);
on linux server, use kerberos through gss-api javax.security.auth.login.logincontext , able authenticate against kerberos server: logincontext .login() works fine.
and stuck here, windows authentication in java suggest deprecated tool, oracle documentation kept me days without getting point, spnego (http://spnego.sourceforge.net/) doesn't seem address problem.
thanks in advance!
refs: oracle documentation: docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/basicclientserver.html docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/clientserver.html docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/acnandazn.html
http tools apache: http://hc.apache.org/
hie everyone!
i solved problem using different mean. authenticated client using ntlm (but kerberos possible library) if run on linux machine. possible apache httpcomponents library.
if have same problem, recommend stop by:
http://hc.apache.org/httpcomponents-client-4.3.x/tutorial/html/authentication.html#ntlm .
see ya!
Comments
Post a Comment