NT-PASSWORD--Re: Freeradius-Users Digest, Vol 17, Issue 47

Rob Shepherd rob at techniumcast.com
Wed Sep 13 17:35:49 CEST 2006


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



-- 
Rob Shepherd | Computer and Network Engineer | Technium CAST | LL57 4HJ
rob at techniumcast.com | 01248 675024 | 077988 72480



More information about the Freeradius-Users mailing list