Re: Server IP changed and "FreeRADIUS+MySQL" does not work

2007-05-15 Thread yao guoxian
| root| *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B | +--+-+---+ Note that user 'root' has different Password . Regards Guoxian. 2007/5/15, Alan Dekok <[EMAIL PROTECTED]>: yao guoxian wrote: ... >

Server IP changed and "FreeRADIUS+MySQL" does not work

2007-05-15 Thread yao guoxian
I have installed FreeRADIUS and MySQL on the same machine. "FreeRADIUS + MySQL" had worked well before Server IP changed. For some reason the server had to be carried to a new place and its IP must be changed. After the server IP changed, "FreeRADIUS + MySQL" does not work. I have ed

Re: How to enable Freeradius to support a smart card with AES encryption algorithm?

2007-03-17 Thread yao guoxian
anged it before and I have not noticed it ? Thanks . 2007/3/16, Alan DeKok <[EMAIL PROTECTED]>: yao guoxian wrote: > Sorry , Alan. > > The most recently response to the "Access-request "packet from "radiusd > -X" monitor are as follows( only a segment related t

Re: How to enable Freeradius to support a smart card with AES encryption algorithm?

2007-03-16 Thread yao guoxian
--+ | 192(Identify "AES-PASSWORD")| length =19 | ID = n | 16 Bytes AES encrypted text | +-------- | ..

Re: How to enable Freeradius to support a smart card with AES encryption algorithm?

2007-03-12 Thread yao guoxian
end the module "rlm_chap" , I just copy all files in the ./src/modules/rlm_chap/ to a new dictory "rlm_aes" and rename files rlm_chap.* to rlm_aes.*. Then I edit rlm-chap.c to alter it to use AES to analyze the request packet. Is it pratical? 2007/2/3, Alan DeKok <[E

Problem with the attribute "Message-Authenticator"

2007-02-08 Thread yao guoxian
I write a program to send Access-request packet to the Radius server. The packet format is as follow: __ | code = 1 | ID = 1 |Length = 73 ( 0x 00 49 ) | _

Re: How to enable Freeradius to support a smart card with AES encryption algorithm?

2007-02-03 Thread yao guoxian
egards Guoxian 2007/2/1, Alan DeKok <[EMAIL PROTECTED]>: yao guoxian wrote: > Hi! > I have a smart card emluator which suports AES, not MD5 encryption > algorithm. Is it possible to enable Freeradius to support my smart card > emlulator? Edit the code. > I have a

How to enable Freeradius to support a smart card with AES encryption algorithm?

2007-02-01 Thread yao guoxian
Hi! I have a smart card emluator which suports AES, not MD5 encryption algorithm. Is it possible to enable Freeradius to support my smart card emlulator? I have an idea as follow: First,amending client agent (NAS) daemon program to make it send chap-password which is produced with AES, no

Re: Why Freeradius and Mysql dont work? [unclas]

2007-02-01 Thread yao guoxian
r/lib/mysql regards Frank Ranner -- *From:* freeradius-users-bounces+frank.ranner= [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] *On Behalf Of *yao guoxian *Sent:* Monday, 29 January 2007 15:14 *To:* [EMAIL PROTECTED]; FreeRadius users mailing list *Subject:* Re: Why Free

Re: Why Freeradius and Mysql dont work?

2007-01-30 Thread yao guoxian
ows: [EMAIL PROTECTED] mysql-standard-5.0.20-linux-i686]# bin/mysqld_safe --skip-grant-tables & [1] 4542 [EMAIL PROTECTED] mysql-standard-5.0.20-linux-i686]# Starting mysqld daemon with databases from /home/ygx/mysql-standard-5.0.20-linux-i686 /data STOPPING server from pid file /home/ygx/mysql-s

Re: Why Freeradius and Mysql dont work?

2007-01-30 Thread yao guoxian
Where is the default config file and how to config it? I copyed surpport-files/my-medium.cnf to /etc/my.medim.cnf and its content is as follow: [client] #password = your_password port= 3306 socket = /tmp/mysql.sock # Here follows entries for some specific programs

Re: Why Freeradius and Mysql dont work?

2007-01-29 Thread yao guoxian
Yes,I compiled FR myself. Originally I installed mysql with *.rpm packages(MySQL-*-5.0.20-0.i386.rpm, include MySQL-devel-5.0.20-0.i386.rpm),but it doent works. So I uninstall rpm packages and use mysql-standard-5.0.20-linux-i686.tar.gz to install Mysql. Thanks. 2007/1/29, YvesDM <[EMAIL PROTEC

Re: Why Freeradius and Mysql dont work?

2007-01-29 Thread yao guoxian
Thanks a lot! I dont know why Freeradius and MySQL suddenly works after I did the following step. 1 insert into radgroupreply (groupname,attribute,op,values) values ('user','Auth-Type',':=','Local'); insert into radgroupreply (groupname,attribute,op,values) values ('user','Service-Type',':=','Fra

Re: Why Freeradius and Mysql dont work?

2007-01-28 Thread yao guoxian
Thanks again. The file "/var/lib/mysql/mysql.sock" does not exist.When I use an IP in sql.conf instead of the "localhost", I get the following result: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked rlm_sql (sql): Attempting to connect to [EMAIL PROTECTED]:/radius

Re: Why Freeradius and Mysql dont work?

2007-01-28 Thread yao guoxian
Sorry. The debug result I listed is only the response to access request. The original display of "radiusd -X" is as follows: Starting - reading configuration files ... reread_config: reading radiusd.conf Config: including file: /usr/local/etc/raddb/proxy.conf Config: including file: /usr

Re: Why Freeradius and Mysql dont work?

2007-01-28 Thread yao guoxian
BY id" authorize_reply_query = "SELECT id, UserName, Attribute, Value, op \ FROM ${authreply_table} \ WHERE Username = '%{SQL-User-Name}' \ ORDER BY id" .. Is anything wrong with the settings? 2007/1/28, Markus

Why Freeradius and Mysql dont work?

2007-01-28 Thread yao guoxian
Platform and Environment: Freeradius:1.0.5 on Redhat 9 MySQL:MySQL-standard-5.0.20-linux-i686 Step: 1. create database radius; 2.mysql -uroot -prootpass radius < db_mysql.sql ; 3.Edit radiusd.conf and sql.conf; Debug Result: Nothing to do. Sleeping until we see a request. rad_r

how can i response respectively to different users?

2006-05-15 Thread yao guoxian
  How can I use FreeRadius and MySql to response respectively to the  different users?     I need to give different permissons or rights to the logined uses.Should I maintain a table that map detailed permission to different uses? How to write the program which handle the tables?   Btw, I want to u

Re: c module

2006-05-02 Thread yao guoxian
>Please tell me, how can i write a module of my own in c.>Also, tell me how can i compile it and use with freeradius(also say theconfig file changes)  I think you should edit and compile your own program code and get the final executable file, e.g your_own.exe. Then edit radiusd.conf , add your own

MYSQL check_error: 2013, returning SQL_DOWN

2006-03-28 Thread yao guoxian
  I updated NAS table,set type to 'livingston', it seemed the Freeradius server has recogenized the nas client.   However, another mistake:' MYSQL check_error: 2013, returning SQL_DOWN 'appears,the following are the complete error message:     rad_recv: Access-Request packet from host 202.117.15.16

Re:Ignoring resquest from unkown client

2006-03-28 Thread yao guoxian
to Alex M:>If u are using MySQL you need to set, radiusd.config>to read NAS table im MuSQL (look et the end of the config file, I >think it's a last line) and then add your NAS clients to NAS table im >db    Thanks for your advice. Will you please explain and describe the detail to me ? I searched

Ignoring request from unknown client *.*.*.* 2244

2006-03-22 Thread yao guoxian
  I have configured FreeRadius to use Mysql.It seemed Mysql works well when I input "Radiusd -X".   However when I use NtRadPing to test,I always get the following error:   rad_recv: Access-Request packet from host 202.117.15.164:2244, id=0, length=43Ignoring request from unknown client 202.117.15.

Ignoring request from unknown client 1.2.3.4.:****

2006-03-12 Thread yao guoxian
    Having installed Mysql4.0, I recompile Freeradius 1.0.5. It seems Freeradius and Mysql works well when I enter : radiusd -X.    However, when I use the 'UserName' and 'Password' in the 'radcheck' table to test , I get the following output from Radius Server:      rad_recv: Access-Request packet

RE: mysql 4.1.0 can not run normally in Freeradius 1.0.5

2006-03-08 Thread yao guoxian
>Are you sure that you have compiled FR with mysql support ? >Recompile it>with sql_mysql driver and it should work.        I am not family with FR. I just use  ./configure   make   make install  Howerver when I input : radiusd -X   The same error appears.  Is it the cor

mysql 4.1.0 can not run normally in Freeradius 1.0.5

2006-03-07 Thread yao guoxian
  Freeradius works well through authenticating  users throught  "files" option.   In order to authenticate users throng "sql" , I have installed mysql 4.1.0 on the machine which has the Redhat 9 operation system.     I followed the suggestion :    mysql -uroot -proo

Re:no response from server on other machine

2005-12-28 Thread yao guoxian
>   If the server doesn't respond on localhost, then either it isn't>running, or you edited the configuration files to break it.> Alan DeKok.     Thank you for your suggestion.     The fact is Radius works correctly on the localmachine (the same machine on which FreeRadius 1.0.5 was installed).Howe

no response from server on other machines

2005-12-27 Thread yao guoxian
    I have installed Freeradius 1.0.5 on the Redhat 9 machine. When I type the command" radtest test test localhost 0 testing123" to check ,the output is as the following: Sending Access-Request of id 252 to 127.0.0.1:1812    User-Name = "test"    User-Password = "test"    NAS-IP-Ad

Problem : RadClient : no response from server for ID 77

2005-12-17 Thread yao guoxian
    I have installed FreeRadius 1.0.5 on the machine which has the Redhat 9 os. I entered" Radtest test test localhost 0 testing123" to check if i   had installed FreeRdius correctly and just find the following message:     Sending Access-Request of id 77 to 127.0.0.1:1812    User-Name = "tes

Re: Welcome to the "Freeradius-Users" mailing list (Digest mode)

2005-12-15 Thread yao guoxian
Hello! EveryOne! Nice to meet you! 2005/12/15, [EMAIL PROTECTED] < [EMAIL PROTECTED]>: Welcome to the Freeradius-Users@lists.freeradius.org mailing list!To post to this list, send your email to:freeradius-users@lists.freeradius.orgGeneral information about the mailing list is at: http://lists.free