NT-PASSWORD--WORKING



FOUND ERROR....
if I insert NT-PASSWORD, instead of NT_PASSWORD, it work fine.

thank you so much

egoseek

Date: Wed, 13 Sep 2006 16:35:49 +0100
From: Rob Shepherd <rob@techniumcast.com>
Subject: Re: NT-PASSWORD--Re: Freeradius-Users Digest, Vol 17, Issue
       47
To: FreeRadius users mailing list
       <freeradius-users@lists.freeradius.org>
Message-ID: <45082555.6030105@techniumcast.com">45082555.6030105@techniumcast.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

ego seek wrote:
> I'm working with mschapv2,
> I use a PHP web site to register a user,  can i insert into the db a
> NT-hased password?

Yes, radcheck should contain

UserName  |  Attribute    |  op  |  Value                             |
----------|---------------|---
---|------------------------------------|
colin     |  NT_Password  |  :=  |  abcdef1234567890abcdef1234567890  |

I use Pear Crypt...

<?php
  $cr = new Crypt_CHAP_MSv1();
  $cr->password = $password;
  $NThash = bin2hex($cr->ntPasswordHash());
?>



Rob






This archive was generated by a fusion of Pipermail (Mailman edition) and MHonArc.