Re: dialup_admin - fatal error resolved ...

2002-01-22 Thread Kostas Kalevras

On Tue, 22 Jan 2002, Do-Risika RAFIEFERANTSIARONJY wrote:


 I have finally find the source of my problem, it was my fault. I added a
 link lib/sql/defaults.php3 - lib/defaults.php3 so it looped ...

 Now I just put a void file in lib/sql/defaults.php3.

 I see that it is interesting but I have some questions or notes if
 possible :

 * in tre accounting report, isn't there navigations buttons ? (to see
 the next or previous records),

Well, not really. I don't really see any point in having them.
Patches are welcome though.


 * is not there something to manage radgroupcheck, radgroupreply and
 usergroup ?

I 've got a major patch to manage sql groups, it will hopefully get integrated
in the next few days.


 * i noticed that it does not support yet operator in radcheck and
 radreply tables ? is it planed or not ?

Yes, i plan in adding these features. Just wait a few days.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf


 Thanx

 @+
 --
 DouRiX





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



dialup_admin - fatal error ...

2002-01-21 Thread Do-Risika RAFIEFERANTSIARONJY


Hi all,

As it is referenced as a an interface php for freeradius
(http://sourceforge.net/projects/dialup-admin/), I think somebody here
use it.

I have the fatal error below when I try to edit or create user, so I
want to ask if it is a bug or if there is something wrong in my config ?
(i'm using mysql in accounting)

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 11520 bytes) in
/usr/local/dialup_admin/lib/defaults.php3 on line 10

Here attached a copy of my admin.conf ...

Thanx in advance,

@+
--
DouRiX

#
# it can be el (greek) or default
#
general_prefered_lang: el
general_prefered_lang_name: Greek
#
general_base_dir: /usr/local/dialup_admin
general_radiusd_base_dir: /usr
general_domain: tana.simicro.net
#
general_ldap_attrmap: %{general_radiusd_base_dir}/etc/raddb/ldap.attrmap
general_sql_attrmap: %{general_base_dir}/conf/sql.attrmap
general_extra_ldap_attrmap: %{general_base_dir}/conf/extra.ldap-attrmap
#
# it can be either ldap or sql
#
general_lib_type: sql
general_user_edit_attrs_file: %{general_base_dir}/conf/user_edit.attrs
general_sql_attrs_file: %{general_base_dir}/conf/sql.attrs
general_default_file: %{general_base_dir}/conf/default.vals
general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger
general_radclient_bin: %{general_radiusd_base_dir}/bin/radclient
#
# this information is used from the server check page
#
#general_test_account_login: test
#general_test_account_password: testpass
general_test_account_login: test
general_test_account_password: xx

#
# These are used as default values for the user test page
#
general_radius_server: localhost
general_radius_server_port: 1812
#
# sorry, single valued for now. Should become something like
# password[server-name]: x
#
general_radius_server_secret: testing123
general_auth_request_file: %{general_base_dir}/conf/auth.request
#
# can be one of crypt,md5,clear
#
general_encryption_method: crypt

nas1_name: nas1.%{general_domain}
nas1_model: Cisco 2511 access server
nas1_ip: 147.122.122.121
nas1_port_num: 16
nas1_community: public
nas2_name: nas2.%{general_domain}
nas2_model: Cisco 2511 access server
nas2_ip: 147.122.122.123
nas2_port_num: 16
nas2_community: public
nas3_name: nas3.%{general_domain}
nas3_model: Cisco 5300 access server
nas3_ip: 147.122.122.124
nas3_port_num: 210
nas3_community: public

ldap_server: ldap.%{general_domain}
ldap_base: dc=company,dc=com
ldap_binddn: cn=Directory Manager
ldap_bindpw: XXX
ldap_default_new_entry_suffix: ou=dialup,ou=guests,%{ldap_base}
ldap_default_dn: uid=default-dialup,%{ldap_base}
ldap_regular_profile_attr: dialupregularprofile

#
# can be one of mysql,pg where:
# mysq: MySQL database (port 3306)
# pg: PostgreSQL database (port 5432)
#
sql_type: mysql
sql_server: localhost
sql_port: 3306
sql_username: radiusadmin
sql_password: xx
sql_database: radius
sql_accounting_table: radacct
sql_badusers_table: badusers
sql_check_table: radcheck
sql_reply_table: radreply
sql_user_info_table: userinfo
#
# true or false
#
sql_use_user_info_table: false
sql_password_attribute: Crypt-Password
sql_date_format: Y-m-d
sql_full_date_format: Y-m-d H:i:s
#
# Used in the accounting report generator so that we
# don't return too many results
#
sql_row_limit: 40

counter_default_daily: 14400
counter_default_weekly: 72000
counter_default_monthly: none



Re: dialup_admin - fatal error ...

2002-01-21 Thread Kostas Kalevras

On Mon, 21 Jan 2002, Do-Risika RAFIEFERANTSIARONJY wrote:


 Hi all,

 As it is referenced as a an interface php for freeradius
 (http://sourceforge.net/projects/dialup-admin/), I think somebody here
 use it.

 I have the fatal error below when I try to edit or create user, so I
 want to ask if it is a bug or if there is something wrong in my config ?
 (i'm using mysql in accounting)

 Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
 allocate 11520 bytes) in
 /usr/local/dialup_admin/lib/defaults.php3 on line 10

 Here attached a copy of my admin.conf ...

 Thanx in advance,

 @+
 --
 DouRiX

Are you runing anything else on the machine? From the error message it seems
that defaults.php3 tried to allocate just 11KB which is quite reasonable.
I am not sure if the php memory_limit directive applies to a single page or to
the whole php process.

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 10 7721861
'Go back to the shadow' Gandalf



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



Re: dialup_admin - fatal error ...

2002-01-21 Thread Nicola Orru'

On Mon, 21 Jan 2002 19:05:14 +0200 (EET)
Kostas Kalevras [EMAIL PROTECTED] wrote:

 On Mon, 21 Jan 2002, Do-Risika RAFIEFERANTSIARONJY wrote:
 
 
  Hi all,
 
  As it is referenced as a an interface php for freeradius
  (http://sourceforge.net/projects/dialup-admin/), I think somebody here
  use it.
 
  I have the fatal error below when I try to edit or create user, so I
  want to ask if it is a bug or if there is something wrong in my config ?
  (i'm using mysql in accounting)
 
  Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
  allocate 11520 bytes) in
  /usr/local/dialup_admin/lib/defaults.php3 on line 10

There must be an infinite loop somewhere...

 
  Here attached a copy of my admin.conf ...
 
  Thanx in advance,
 
  @+
  --
  DouRiX
 
 Are you runing anything else on the machine? From the error message it seems
 that defaults.php3 tried to allocate just 11KB which is quite reasonable.
 I am not sure if the php memory_limit directive applies to a single page or to
 the whole php process.
 
 --
 Kostas Kalevras   Network Operations Center
 [EMAIL PROTECTED]National Technical University of Athens, Greece
 Work Phone:   +30 10 7721861
 'Go back to the shadow'   Gandalf
 
 
 
 - 
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
 


Nicola Orru'

ENERGIT
Via Efisio Melis, 26
09134 Cagliari - Italia
Tel. +39 070 7521 317  Fax +39 070 7521 51
www.energit.it

Energia  Telefonia  Servizi Internet  Sistemi di Gestione per le Aziende


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



Re: dialup_admin - fatal error ...

2002-01-21 Thread Do-Risika RAFIEFERANTSIARONJY

Kostas Kalevras wrote:
 
 On Mon, 21 Jan 2002, Do-Risika RAFIEFERANTSIARONJY wrote:
 
 
  Hi all,
 
  As it is referenced as a an interface php for freeradius
  (http://sourceforge.net/projects/dialup-admin/), I think somebody here
  use it.
 
  I have the fatal error below when I try to edit or create user, so I
  want to ask if it is a bug or if there is something wrong in my config ?
  (i'm using mysql in accounting)
 
  Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
  allocate 11520 bytes) in
  /usr/local/dialup_admin/lib/defaults.php3 on line 10
 
 Are you runing anything else on the machine? From the error message it seems
 that defaults.php3 tried to allocate just 11KB which is quite reasonable.
 I am not sure if the php memory_limit directive applies to a single page or to
 the whole php process.

I have just freeradius, mysql, apache on a debian box ...

@+
--
DouRiX

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



Re: dialup_admin - fatal error ...

2002-01-21 Thread Do-Risika RAFIEFERANTSIARONJY

Nicola Orru' wrote:
 
   Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
   allocate 11520 bytes) in
   /usr/local/dialup_admin/lib/defaults.php3 on line 10
 
 There must be an infinite loop somewhere...

Yes, may be because on line 10, it seems that the file defaults.php3 is
including itself. So if that is the problem, I think it is a bug, or
should I change something in my configuration files ?

-- default.php3, line 10 --
if (is_file(../lib/$config[general_lib_type]/defaults.php3))
include(../lib/$config[general_lib_type]/defaults.php3);
(END) 

Does someone have any idea ?

@+
--
;-DouRiX

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



Re: dialup_admin - fatal error resolved ...

2002-01-21 Thread Do-Risika RAFIEFERANTSIARONJY


I have finally find the source of my problem, it was my fault. I added a
link lib/sql/defaults.php3 - lib/defaults.php3 so it looped ... 

Now I just put a void file in lib/sql/defaults.php3.

I see that it is interesting but I have some questions or notes if
possible :

* in tre accounting report, isn't there navigations buttons ? (to see
the next or previous records),

* is not there something to manage radgroupcheck, radgroupreply and
usergroup ?

* i noticed that it does not support yet operator in radcheck and
radreply tables ? is it planed or not ?

Thanx

@+
--
DouRiX




Do-Risika RAFIEFERANTSIARONJY wrote:
 
 Kostas Kalevras wrote:
 
  On Mon, 21 Jan 2002, Do-Risika RAFIEFERANTSIARONJY wrote:
 
  
   Hi all,
  
   As it is referenced as a an interface php for freeradius
   (http://sourceforge.net/projects/dialup-admin/), I think somebody here
   use it.
  
   I have the fatal error below when I try to edit or create user, so I
   want to ask if it is a bug or if there is something wrong in my config ?
   (i'm using mysql in accounting)
  
   Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
   allocate 11520 bytes) in
   /usr/local/dialup_admin/lib/defaults.php3 on line 10
  
  Are you runing anything else on the machine? From the error message it seems
  that defaults.php3 tried to allocate just 11KB which is quite reasonable.
  I am not sure if the php memory_limit directive applies to a single page or to
  the whole php process.
 
 I have just freeradius, mysql, apache on a debian box ...
 
 @+
 --
 DouRiX
 
 -
 List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-- 
Do-Risika RAFIEFERANTSIARONJY
mailto:[EMAIL PROTECTED]

Simicro Internet, mailto:[EMAIL PROTECTED], http://internet.simicro.mg
Tel : (+261) 20 22 648 83 (GMT +3), Fax : (+261) 20 22 661 83

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