On Thu, Jun 26, 2003 at 11:21:58AM +0300, Nickitas wrote:
>   The passwords stored in mysql are encrypted in a strange way . For
> example using crypt encryption the password stored in the database is
> this :    "$1$JLBPzLpM$hHtpEcBBpJiuzxs7RLr1P0"

this is an md5 password created with glibc crypt. its ok.

>  After learning a little bit about crypt and md5 encryption I can say
> that this doesn't look correct to me . I run the following little script
> for the same password and using "st" as salt for the encryption .
> 
>   perl -e 'print crypt( "asd123", "st"),"\n";'
>   stn/LmaCw8SMU

you are not using the seed of the abouve md5ed password. try:

[10:[EMAIL PROTECTED]:radiusd> perl -e 'print crypt( "asd123", "\$1\$JLBPzLpM"),"\n";'
$1$JLBPzLpM$hHtpEcBBpJiuzxs7RLr1P0

looks fine.

>   I changed a little bit the ./lib/crypt/crypt.php3 in order to give me
> the correct encrypted password but  it still doesn't work .

man crypt gives you more hints about what crypt can do.

> I think that the problem is in this line :
> "rlm_sql (sql): Pairs do not match for user [szax]"

What are the check pairs for this user?

Auth-Type := Crypt-Local, Crypt-Password == "$1$JLBPzLpM$hHtpEcBBpJiuzxs7RLr1P0"

should work as check pairs.

Oliver.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to