Bluehost.com Web Hosting $6.95

[Samba] How can I create a ntlm-hash with Java

This is a discussion on [Samba] How can I create a ntlm-hash with Java within the Samba forums, part of the Networking and Network Related category; Hi i would like to create all my LDAP-Entries with a Java servlet. The only thing that stops me ...


Go Back   Usenet Forums > Networking and Network Related > Samba

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-14-2008
M. Mueller
 
Posts: n/a
Default [Samba] How can I create a ntlm-hash with Java

Hi
i would like to create all my LDAP-Entries with a Java servlet. The only
thing that stops me are the ntlm hashes (sambaLMPassword and
sambaNTPassword). Can anybody tell me if there are any Java sources that
create these values from a cleartext password or where in the samba
sources they are calculated so I can port the algorithm to java? I
searched the net for jacifs, which I heard should have coded that, but
couldn't find it. It was certainly a bit naiv to think that smbpasswd.c
would be the source file I needed.
Can anybody point me to the right source?

Thanks a lot,
Malte Müller
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba

Reply With Quote
  #2 (permalink)  
Old 06-14-2008
Volker Lendecke
 
Posts: n/a
Default Re: [Samba] How can I create a ntlm-hash with Java

On Sat, Jun 14, 2008 at 06:35:37PM +0200, M. Mueller wrote:
> i would like to create all my LDAP-Entries with a Java servlet. The only
> thing that stops me are the ntlm hashes (sambaLMPassword and
> sambaNTPassword). Can anybody tell me if there are any Java sources that
> create these values from a cleartext password or where in the samba
> sources they are calculated so I can port the algorithm to java? I
> searched the net for jacifs, which I heard should have coded that, but
> couldn't find it. It was certainly a bit naiv to think that smbpasswd.c
> would be the source file I needed.
> Can anybody point me to the right source?


If you can live with lgpl'ed code you might look at
./jcifs/smb/NtlmPasswordAuthentication.java from the jcifs
code.

Volker

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFIVDKVUzqjrWwMRl0RApElAJ0YwkNx4X8CsISZcDHgSt +kPMgSAACeJfqt
JPbu3nRllhu+br8MWad0FiE=
=HP+H
-----END PGP SIGNATURE-----

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 01:29 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0