NTLM fails when consuming SharePoint web service from Java? -
NTLM fails when consuming SharePoint web service from Java? -
i have java client consumes sharepoint 2010 standard web services (sitedata.asmx, permissions.asmx, etc) written jax-ws implementation jdk 6.
so far, authentication done ntlm using custom authenticator
implementation , authenticator.setdefault(...)
approach.
when running on test environment has 1 sharepoint server, works fine. can see ntlm negotiation using wireshark.
but, if running on costumer has multiple servers, hardware load balancing , multiple sharepoint alternate access mappings error 401 unauthorized web service calls. haven't had chance utilize wireshark debug on environment.
i run client windows machine (on costumer setup), according java documentation should fine ntlm. also, used default url sharepoint access web services (not load balanced urls).
the machine running client application, not sharepoint server. has windows integrated authentication ntlm configured.
also, due sharepoint administration policies, i´m unable access sharepoint central administration or alter configuration (nor iis).
i want inquire if knows issue may be? , if knows how prepare it?
thanks in advance.
edit:
it´s of import mention, same permission levels granted on both environments.
well, had chance utilize wireshark on costumer environment.
first noticed have ntlm v2 configured, that's ok since java 1.6 supports it.
then saw since windows integrated authentication enabled, current logged user credentials sent instead of ones configured on code. since logged user has no permissions on sharepoint, received 401 unauthorized.
according java documentation normal behavior
in fact, if running on windows machine domain user, or, running on linux or solaris machine has issued kinit command , got credential cache. class myauthenticator ignored ..... shows username , password not consulted. so-called single sign-on.
i hope can reply this question since think that's need.
finally, observed http first windows credentials tried, , on failure credentials provided code used instead. thus, works fine.
when using https, windows credentials used, got 401 unauthorized.
not sure causes difference between http , https.
java web-services sharepoint-2010 jax-ws ntlm
Comments
Post a Comment