Exec-Program-Wait and reply-detail log

2011-03-07 Thread AHMED KHIDR
Dear All ,

I am upgrading from 1.1.7 To 2.1.10
I am using Exec-Program-Wait to run a script
In the old ver, I can find the out put of my script in reply-detail log ,
But in the new ver. I Only find the attribute
Exec-Program-Wait = /usr/bin/php /var/www/html/check.php testuser 1

but i need all the ourput to be printed in the reply-detail log,
so is there any way to do that ??


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

Re: Multiple ip range

2010-08-22 Thread AHMED KHIDR
you can add the below to radgroupreply table



GroupName Attribute op Value prio
Group1 Cisco-AVPair += ip:addr-pool=Group1PoolName 0
Group1 Framed-Pool == Group1PoolName 0
 id GroupName Attribute op Value prio
Group1 Cisco-AVPair += ip:addr-pool=Group2PoolName 0
Group1 Framed-Pool == Group2PoolName 0


then assign a group to each customer  in
usergrouptbl_structure.php?db=radiustable=usergrouptoken=cd8ca75d61dd497647e61657080dd9d1table



On Sat, Aug 21, 2010 at 10:52 AM, Student University studen...@gmail.comwrote:



 can please help me of how i can configure multiple ip address range for
 multipe groups of users .

 my scenario like this :

 user group A should receive ip from Range 1
 user group B should receive ip from Range 2

 Thanks In advance ...



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

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

Re: Multiple ip range

2010-08-22 Thread AHMED KHIDR
you can add the below to radgroupreply table



GroupName Attribute op Value prio
Group1 Cisco-AVPair += ip:addr-pool=Group1PoolName 0
Group1 Framed-Pool == Group1PoolName 0
 id GroupName Attribute op Value prio
Group2 Cisco-AVPair += ip:addr-pool=Group2PoolName 0
Group2 Framed-Pool == Group2PoolName 0


then assign a group to each customer  in usergroup table

On Sat, Aug 21, 2010 at 10:52 AM, Student University studen...@gmail.comwrote:



 can please help me of how i can configure multiple ip address range for
 multipe groups of users .

 my scenario like this :

 user group A should receive ip from Range 1
 user group B should receive ip from Range 2

 Thanks In advance ...



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

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

Re: Freeradius and Cisco

2009-08-21 Thread AHMED KHIDR
On 8/20/09, Nicholas Cappelletti n...@switchtower.org wrote:
 Hello Rokkhan,

 I was curious if you could send me the configuration you have on your Cisco
 AP's for telnet/ssh access?  I'm having some trouble with mine, but I'm able
 to authentication my routers and switches just fine.

 I would ask the mailing lists, but they sometimes aren't very helpful. ;)

 --Nick

 - Original Message -
 From: Rokkhan rokk...@gmail.com
 To: FreeRadius users mailing list freeradius-users@lists.freeradius.org
 Sent: Thursday, August 20, 2009 9:44:38 AM GMT -05:00 US/Canada Eastern
 Subject: Freeradius and Cisco

 HelloI
 I have been testing with my freeradius and cisco devices, such as
 switches, firewalls, acces points, ...
 Now, I´m able to configure users validation through freeradius with
 Access Points and Peap.
 Get shell acces to cisco devices and establish the level privilege of
 them with freeradius.
 And configure dot1x interfaces on switches to validate users and
 configure ports on diferent VLAN through Freeradius.

 I want to know if there is anything more that can be managed, with
 Freeradius, on Cisco devices. I want to explore all the options that
 freeradius brings to us.

 Thanks in advance.

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

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

-- 
Sent from my mobile device

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


Graphing - Online users

2009-05-07 Thread AHMED KHIDR
Dear All ,

I have a question ,
is there any way to make a graph ( Like mrtg or cacti ) to graph no of
online users ??


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

FreeRadius 1.x Or 2.x

2009-04-05 Thread AHMED KHIDR
Dear All,

I use freeradius 1.1.7 and I am thinking of migrate to new ver. 2.x
so i want to ask which ver is better ?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Radclient PHP

2009-04-01 Thread AHMED KHIDR
Hii All ,

Please Any one have an idea how to make a PHP code to  run Radclient in
order to disconnect users ,

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

Re: Radclient PHP

2009-04-01 Thread AHMED KHIDR
Thanks ,
 I tried it but didn't work ,
I found another method ,

Here is the code ,


?
$user=ahmedkhidr;
$nas=1.1.1.2;
$secret=password;
$handle = popen('/bin/echo User-Name='.$user.' | /usr/local/bin/radclient -x
'.$nas.':1700 disconnect '.$secret.' 21', 'r');
$read = fread($handle, 2096);
echo $read;
pclose($handle);

?
Don't forget to chmod the /usr/local/etc/raddb/dictionary to be 644


Regards
On Thu, Apr 2, 2009 at 3:14 AM, Paul Bartell paul.bart...@gmail.com wrote:

 try
 exec() or shell_exec()

 2009/4/1 AHMED KHIDR a.kh...@gmail.com:
   Hii All ,
 
  Please Any one have an idea how to make a PHP code to  run Radclient in
  order to disconnect users ,
 
  Thanks
  -
  List info/subscribe/unsubscribe? See
  http://www.freeradius.org/list/users.html
 



 --
 Random quote of the week/month/whenever i get to updating it:
 Opportunity knocked. My doorman threw him out. - Adrienne Gusoff

 At school you don't get parole, good behavior only brings a longer
 sentence. - The History Boys

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

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

On/Off packets

2008-10-08 Thread AHMED KHIDR
Hi All ,

Please any one have an idea about this ,

I am using cisco 1721 to terminate PPPOE sessions and authentication by
freeradius ,
when I reload the router there is no *On/Off* packets sent from cisco ,
so the users still online on database ,

How to make my cisco router send *On/Off* packets to radius ??


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

Not real account stop records ,

2008-09-28 Thread AHMED KHIDR
Hi All

Any one have an Idea about this problem ,


I changed the account priodic update in my NASes to be 25 Min , and all
works good except


when a session starts ,
I found in Acc Start time : 2008-09-28 03:58:56
and Acc Stopt time : -00-00 00:00:00

And this is good ,

After a period I found the below

Acc Start time : 2008-09-28 03:58:56
and Acc Stopt time : 2008-09-28 03:58:56

although the customer is connected and the accounts work good ,


This is what appears on the radius radaccount txt files ,

Sun Sep 28 03:58:56 2008
Acct-Session-Id = 08C7
Framed-Protocol = PPP
Acct-Authentic = RADIUS
User-Name = testuser
Acct-Status-Type = Start
NAS-Port-Type = Virtual
NAS-Port = 0 Service-Type = Framed-User
NAS-IP-Address = 10.1.1.158
Acct-Delay-Time = 0
Client-IP-Address = 10.1.1.158
Acct-Unique-Session-Id = 5fe4d7463e8b93f8
Timestamp = 1222567136


Sun Sep 28 04:23:24 2008
Acct-Session-Id = 08C7
Framed-Protocol = PPP
Framed-IP-Address =62.139.42.151
Acct-Session-Time = 1468
Acct-Input-Octets = 23642
Acct-Output-Octets = 18730
Acct-Input-Packets = 536
Acct-Output-Packets = 367
Acct-Authentic = RADIUS
User-Name = 0402882105-assas
Acct-Status-Type = Interim-Update
NAS-Port-Type = Virtual
NAS-Port = 0
Service-Type = Framed-User
NAS-IP-Address = 10.1.1.158
Acct-Delay-Time = 0
Client-IP-Address = 10.1.1.158
Acct-Unique-Session-Id = 5fe4d7463e8b93f8
Timestamp = 1222568604



Notice :
I didn't make any changes in radacct table
as the default value for all accstart time and accstop time is -00-00
00:00:00
 AcctStartTime datetime

No -00-00 00:00:00


http://tbl_alter.php?db=radiustable=radaccttoken=e6bf77f29ce5708c69a2619802fdb7b5goto=tbl_structure.phpback=tbl_structure.phpfield=AcctStartTime




  AcctStopTime datetime

No -00-00 00:00:00


Waiting your reply as soon as possible ,

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