I need to implement a virtual filesystem that will be accessed as a Windows share.
It seems Alfresco JLan is doing the job. So far, I have some promising results starting from this answer: How to setup alfresco jlan file server as a standalone java package?
Now, I can't seem to actually authenticate. My dummy implementation always succeeds, but as soon as I try to validate the password, it just fails.
Some information:
- It runs on a windows machine with port 445 not being used by Windows itself (Server services disabled etc.)
- From same Windows 10 client, it seems JLan sees it as ntlmv1 authentication, which looks strange to me (I'd at least expect ntlmv2). alg == NTLM1 in JLan's
CifsAuthenticator::validatePassword
. - It seems the encrypted used password is 74 bytes, vs the 24 it expects, and it fails at that.
- Had to remove CryptixCrypto that doesn't seem to exist anymore, and replaced
getInstance("MD4")
byMD4.getInstance()
in JLan, as it seems to be the way to go on modern Java platforms (MD4 is not registered by default, as documented in MD4 class itself).
How can I check my password again some plain-text one?