Displaying 3 results from an estimated 3 matches for "lm_hash".
2004 Aug 30
0
[PATCH] NTLM fixes
...static void
-ntlmssp_des_encrypt_triad(const unsigned char *hash,
- const unsigned char *challenge,
- unsigned char *response)
-{
- deshash(response, hash, challenge);
- deshash(response + 8, hash + 7, challenge);
- deshash(response + 16, hash + 14, challenge);
-}
-
const unsigned char *
lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE])
{
@@ -112,7 +102,11 @@ ntlmssp_v1_response(const unsigned char
memset(des_hash + NTLMSSP_HASH_SIZE, 0,
sizeof(des_hash) - NTLMSSP_HASH_SIZE);
- ntlmssp_des_encrypt_triad(des_hash, challenge, response);
+ deshash(response, des_hash...
1997 Dec 16
0
Samba18alpha12 not working as Login for NT-4 workstation
...-4 workstations
there are bugs in it. you'd be better off using the BRANCH_NTDOM version.
see the public cvs instructions in http://samba.anu.edu.au/cvs.html and
use a tag of BRANCH_NTDOM.
if you do this, the workstation trust account smbpasswd entries must be of
the format:
saturn1$:65534:lm_hash:nt_hash:0080:
the 0080 is important: see ntdomain.h ACB_xxxx #defines for the reason.
> First here ist what I did:
>
> 1) Compiled Samba with -DNTDOMAIN
ok.
> (Win 95 clients can login)
(-DNTDOMAIN doesn't have anything to do with Win95)
>
> 2) Here is my smb conf...
2004 Mar 15
0
join domain without root
...+ strncmp(hostname,username,len) == 0
+ ) ) {
+ DEBUG(0, ("set_user_info_pw: Wrong account %s for host %s\n", username, hostname));
+ pdb_free_sam(pwd);
+ return False;
+ }
+ }
+
memset(buf, 0, sizeof(buf));
if (!decode_pw_buffer(pass, buf, 256, &len, nt_hash, lm_hash)) {
@@ -2414,7 +2465,10 @@
DEBUG(5,("set_user_info_pw: pdb_update_sam_account()\n"));
/* update the SAMBA password */
- if(!pdb_update_sam_account(pwd, True)) {
+ if (do_become_root) become_root();
+ ret = pdb_update_sam_account(pwd, True);
+ if (do_become_root) unbecome_root();
+...