Accounting and DialupAdmin

Erich Titl erich.titl at think.ch
Fri Nov 9 07:52:50 CET 2012


Hi Alan

on 08.11.2012 21:06, Alan DeKok wrote:
> Erich Titl wrote:
>> Yes, I know if I also change the attribute to Cleartext-Password. Any
>> plans to support NT-Password hashes?
> 
>   In dialup_admin?  Send a patch.

This works for me

diff -urN freeradius-server-2.2.0.orig/dialup_admin/conf/admin.conf
freeradius-server-2.2.0/dialup_admin/conf/admin.conf
--- freeradius-server-2.2.0.orig/dialup_admin/conf/admin.conf
2012-11-09 07:30:40.000000000 +0100
+++ freeradius-server-2.2.0/dialup_admin/conf/admin.conf
2012-11-09 07:44:28.000000000 +0100
@@ -133,7 +133,7 @@
 general_radius_server_secret: XXXXXX
 general_auth_request_file: %{general_base_dir}/conf/auth.request
 #
-# can be one of crypt,md5,clear
+# can be one of crypt,md5,clear,smbpass
 #
 general_encryption_method: crypt
 #
diff -urN
freeradius-server-2.2.0.orig/dialup_admin/lib/crypt/smbpass.php
freeradius-server-2.2.0/dialup_admin/lib/crypt/smbpass.php
--- freeradius-server-2.2.0.orig/dialup_admin/lib/crypt/smbpass.php
1970-01-01 01:00:00.000000000 +0100
+++ freeradius-server-2.2.0/dialup_admin/lib/crypt/smbpass.php
2012-11-09 07:43:43.000000000 +0100
@@ -0,0 +1,6 @@
+<?php
+function da_encrypt($Input) {
+  // shamelessly taken from php.net
+  return(strtoupper(hash('md4',iconv('UTF-8','UTF-16LE',$Input))));
+}
+?>

cheers

Erich Titl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1877 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20121109/53922d37/attachment.bin>


More information about the Freeradius-Users mailing list