The Samba-Bugzilla – Bug 3520
Java JNI mkntpwd interface
Last modified: 2010-09-04 07:09:44 UTC
I'm fairly new, but I have something to give back.
Anyhow, I'm not sure if the mkntpwd utility is still being actively
developed, supported or if I even have the right maintainers (or if any
even exist), but if not, I apologize in advance.
I've recently been working on a Java web app to change Windows passwords
stored in Sun Identity Server (iPlanet/Sun One). I've run into an issue
where I was having problems hashing the passwords in Java, so I wrote a
wrapper to contain the mkntpwd program into a library that implements the
Java Native Interface. This allows a Java application to generate LM and
NT hashes without too much trickery. I've got the sources on my website,
and the only file I've modified from the original was the Makefile.
So far, it works like a charm.
Anyhow, the tarballs are located at:
I'm not sure what the policy is for distribution, but if these are found
to be useful, they can be added if its not in violation of the existing
Created attachment 1734 [details]
mkntpwd: Java JNI interface
Full source and additions.
Not maintained anymore