code: public static byte[] getLMResponse ( CIFSContext tc, Type2Message type2, String password ) throws GeneralSecurityException {
          if ( type2 == null || password == null )
              return null;
          return NtlmUtil.getPreNTLMResponse(tc, password, type2.getChallenge());
      }
docs: Constructs the LanManager response to the given Type-2 message using
  the supplied password.
  
  @param tc
  context to use
  @param type2
  The Type-2 message.
  @param password
  The password.
  @return A <code>byte[]</code> containing the LanManager response.
  @throws GeneralSecurityException