Client hostname in clients.conf instead of IP address

2011-10-31 Thread tohaikmeng
Hello, Can anyone help me with this question? I have added the following configuration to raddb/modules/attr_rewrite, which allows me to get Client IP address. attr_rewrite addclientip { attribute = Client-IP-Address searchin = packet searchfor = "^$" replacewith

Del dynamic client working?

2011-10-18 Thread tohaikmeng
Hello guys, In order to delete a dynamically defined client, the client IP file needs to reside in dynamic-clients folder upon startup of the radius daemon. I wondering if we are able to delete the dynamic defined client without restart of the radius daemon? ERROR: Client 192.168.169.89 was not

Re: radmin del client error

2011-08-28 Thread tohaikmeng
Go install the new version. It works. - Yup, I will try this again. Thanks. We know. The dynamic clients code does this, and is *documented* as doing this. Your multiple email messages have said you want to do this. Explaining it again here means you're assuming we're either blind or stupi

Re: radmin del client error

2011-08-28 Thread tohaikmeng
Hello Arran and Alan, My aim is to achieve the addition of client entries without any server reloading/restart, and AAA will permits for those newly added clients. My first thought was to use radmin -e "add client file " and it works for me but the deletion "del client ipaddr " failed on me. My r

Re: radmin del client error

2011-08-26 Thread tohaikmeng
Hello Arran and Alan, Arran is right. Yes! Thanks guys for yours patience. I would love to send you guy a tarball of my configs. Currently, I away from my server for the next 2 days. And I will send u guys once I am back in office. :) Alex -- View this message in context: http://freeradius.10

Re: radmin del client error

2011-08-26 Thread tohaikmeng
Hello Alan, Yes, this 'dynamic-clients' is a file, the original and default file as you mentioned in the previous message. The content is as follows. If you noticed? the directory was assigned with a dynamic-clients folder resides in raddb folder. client dynamic { ipaddr = 0.0.0.0

Re: radmin del client error

2011-08-26 Thread tohaikmeng
Hello Alan, Very thankful for your reply and correct my understanding. (Shown below) I actually did the symlink to dynamic-clients file. This file allows me to indicate the directory where client definitions are stored. I uncommented this -> directory = ${confdir}/dynamic-clients/ <- however this

Re: radmin del client error

2011-08-26 Thread tohaikmeng
Hello, I have manually moved the 192.168.169.74 file into raddb/dynamic-clients folder after i start radius daemon. (radiusd -X -x) I did make sure that raddb/sites-available/dynamic_clients contains directory = /usr/local/etc/raddb/dynamic-clients I sent a packet to the server yet i still recei

Re: radmin del client error

2011-08-25 Thread tohaikmeng
Thanks Allan and Arran, the server is responding after i did a symbolic link as below. Below is the command that i did. ln -sf /usr/local/etc/raddb/sites-available/dynamic-clients /usr/local/etc/raddb/sites-enabled/ Just a couple of doubts. 1) secret is required in the client definition (file

Re: radmin del client error

2011-08-24 Thread tohaikmeng
Hello Arran, The method that I use to add dynamic client is via radmin -e "add client file "? I read site-available/dynamic-clients. But I can't find the link that trigger radius daemon to add the dynamic client definition file. I named the client ip as file name instructed and placed in the app

Re: radmin del client error

2011-08-24 Thread tohaikmeng
Hello Bjorn & Arran, Sorry, I don't quite following u guys were saying. :( is there any differences in the source that I downloaded? Alex -- View this message in context: http://freeradius.1045715.n5.nabble.com/radmin-del-client-error-tp4725176p4730190.html Sent from the FreeRadius - User maili

Re: radmin del client error

2011-08-24 Thread tohaikmeng
Hello Arran, Yes. I did. Is there anything i did wrongly? [root@FC-O ~]# radmin -e "del client ipaddr 192.168.169.74" ERROR: Must specify [root@FC-O ~]# radmin radmin 3.0.0 - FreeRADIUS Server administration tool. Copyright (C) 2008 The FreeRADIUS server project and contributors. There is NO wa

Re: radmin del client error

2011-08-24 Thread tohaikmeng
Hello Arran, Thanks for double checking this. It's weird. Below is what i got. I install freeradius on a fresh linux. Is there any other file that i can verify to prove my source is identical as yours? [root@FC-O ~]# radiusd -v radiusd: FreeRADIUS Version 3.0.0, for host i686-pc-linux-gnu, built

Re: radmin del client error

2011-08-24 Thread tohaikmeng
Hello Arran, I have built the master copy from git and tested. The result still the same. Not fixed. :) Alex -- View this message in context: http://freeradius.1045715.n5.nabble.com/radmin-del-client-error-tp4725176p4729575.html Sent from the FreeRadius - User mailing list archive at Nabble.com

Re: radmin del client error

2011-08-23 Thread tohaikmeng
Wow, awesome. You guys are really great. I am going to try that now! Keep you guys informed. thanks again! :-) Alex -- View this message in context: http://freeradius.1045715.n5.nabble.com/radmin-del-client-error-tp4725176p4726165.html Sent from the FreeRadius - User mailing list archive at Nab

Re: radmin del client error

2011-08-23 Thread tohaikmeng
Hello Arran, Will the bug be fixed on freeradius next release? Or will the solution be posted? :) My design aims to achieve zero downtime, therefore deletion of client without restart of radius daemon seems the best solution. Do you mean dynamically generated client can be achieved via sites-a

Re: radmin del client error

2011-08-23 Thread tohaikmeng
Hello Arran, What do you mean by parameter parsing? I would like to achieve deletion of client without restarting of the radius daemon, which is part of the design. Alex -- View this message in context: http://freeradius.1045715.n5.nabble.com/radmin-del-client-error-tp4725176p4725861.html Sent

Re: radmin del client error

2011-08-23 Thread tohaikmeng
Thanks Arran for your quick response and acknowledgement. Is there a quick workaround for this? I really need yours and Allan help on this. Alex -- View this message in context: http://freeradius.1045715.n5.nabble.com/radmin-del-client-error-tp4725176p4725813.html Sent from the FreeRadius - Use

radmin del client error

2011-08-22 Thread tohaikmeng
Hello, I tried using radmin to delete a client that was added dynamically via "add client file alex.conf". alex.conf contains the following content. client 192.168.168.111 { secret = secret } however, i experience the following error. Can you show me the correct del command for this? r