[jcifs] Compute password hashes

Michael B Allen ioplex at gmail.com
Wed Nov 4 09:17:26 MST 2009


On Wed, Nov 4, 2009 at 10:07 AM, Volker Jordan <jordan at ffm-one.com> wrote:
> Hi,
>
> I am searching for a way computing the both password hashes.
>
> Can jcifs do that?
>
> I read about using NTlmPasswordAuthentication, but what is the
> challenge ?

Hi Volker,

For NTLMv1 you can call NtlmPasswordAuthentication.getNTLMResponse()
with an 8 byte challenge provided by the server with which you are
authenticating.

For NTLMv2 it is more complicated as the "challenge" also includes a
"target information" block.

I have a feeling this is probably not something you want to do. If you
just want to add NTLM client tauthentication to some software, try
using jcifs.smb.NtlmContext.initSecContext().

If you're trying to implement server-side authentication (meaning you
want to authenticate clients like in an HTTP server), JCIFS does not
implement that.

Mike

-- 
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/


More information about the jCIFS mailing list