MS-CHAPv2 change password not working in master

Carlos Velasco carlos.velasco at nimastelecom.com
Fri Nov 16 11:41:37 CET 2012


> Looking into code I suppose the problem is something with the old NT
> hash, but not an expert here. Any help would be apreciated.

Adding some debug to code, this seems really wrong:

(1) mschap-vpn_nimas_tk : old_nt_hash: 3497295200 || Write buf:
old-nt-hash-blob: 00000000000000000000000000000000


                len = sprintf(buf, "old-nt-hash-blob: ");
                fr_bin2hex(old_nt_hash, buf+len, 16);
                buf[len+32] = '\n';
                buf[len+33] = '\0';
                len = strlen(buf);
++ RDEBUG2("old_nt_hash: %u || Write buf: %s", old_nt_hash, buf);
                if (write_all(to_child, buf, len) != len) {
                        RDEBUG2("failed to write old hash blob to child");
                        goto ntlm_auth_err;
                }


More information about the Freeradius-Users mailing list