RE: dialup-admin

2002-03-09 Thread Peter Santiago

Thanks Kostas  I must be getting senile, to miss such an obvious error
:(

Peter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kostas
Kalevras
Sent: 09 March 2002 23:31
To: Freeradius-Users@Lists. Cistron. Nl
Subject: Re: dialup-admin


On Sat, 9 Mar 2002, Peter Santiago wrote:

> the following commands does not execute properly...
>
> 1. Check server doesn't return any results...

general_radiusd_base_dir should contain the base directory of the freeradius
installation *not* the radiusd binary. The way you 've edited admin.conf
will
make the radclient path look like this:
/usr/sbin/radiusd/bin/radclient which does not seem correct. Only if
dialup_admin can access radclient can the 'check server' and 'test user'
pages
work properly.

> 2. Edit users on the left side menu doesn't retrieve userinfo, when the
> input box is filled the username.  One has to enter the user name again in
> the main window then click on show user, before the userinfo comes out

Just put the username in the input box and press enter. :-)

> general_base_dir: /var/www/html/dialup_admin
> general_radiusd_base_dir: /usr/sbin/radiusd
> general_domain: psinergybbs.com
> #
> general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger
> general_radclient_bin: %{general_radiusd_base_dir}/bin/radclient
> #

--
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


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



dialup-admin ... error in delete_user.php3, line 18

2002-03-09 Thread Peter Santiago

code fragment reads
 if ($res){
   if ($config[sql_use_user_info_table] == 'true'){
$res = @da_sql_query($config[sql_database], <- error.. this
will return false
   "DELETE FROM $config[sql_user_info_table] WHERE UserName
= '$login';");
if ($res)
echo "User $login deleted
successfully\n";
 else
 echo "Error deleting user $login from user
info table\n";
}

Isn't that line supposed to read

$res = @da_sql_query($link,$config, "DELETE FROM
$config[sql_user_info_table] WHERE UserName = '$login';");

???


Peter


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



Re: dialup-admin

2002-03-09 Thread Kostas Kalevras

On Sat, 9 Mar 2002, Peter Santiago wrote:

> the following commands does not execute properly...
>
> 1. Check server doesn't return any results...

general_radiusd_base_dir should contain the base directory of the freeradius
installation *not* the radiusd binary. The way you 've edited admin.conf will
make the radclient path look like this:
/usr/sbin/radiusd/bin/radclient which does not seem correct. Only if
dialup_admin can access radclient can the 'check server' and 'test user' pages
work properly.

> 2. Edit users on the left side menu doesn't retrieve userinfo, when the
> input box is filled the username.  One has to enter the user name again in
> the main window then click on show user, before the userinfo comes out

Just put the username in the input box and press enter. :-)

> general_base_dir: /var/www/html/dialup_admin
> general_radiusd_base_dir: /usr/sbin/radiusd
> general_domain: psinergybbs.com
> #
> general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger
> general_radclient_bin: %{general_radiusd_base_dir}/bin/radclient
> #

--
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--- sorry.. my mistake...

2002-03-09 Thread Peter Santiago

problem just solved itself... I must be brain-dead... Kostas, you did a very
wonderful job...

peter


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



dialup-admin

2002-03-09 Thread Peter Santiago

the following commands does not execute properly...

1. Check server doesn't return any results...
2. Edit users on the left side menu doesn't retrieve userinfo, when the
input box is filled the username.  One has to enter the user name again in
the main window then click on show user, before the userinfo comes out

Peter
===
admin.conf
#
# it can be el (greek) or default
#
general_prefered_lang: default
general_prefered_lang_name: English
#
general_base_dir: /var/www/html/dialup_admin
general_radiusd_base_dir: /usr/sbin/radiusd
general_domain: psinergybbs.com
#
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_ld_library_path: /usr/local/snmpd/lib
#
# can be 'snmp' (for snmpfinger) or empty to query the radacct table without
first
# querying the nas
#
general_finger_type: snmp
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: test
#
# 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: weraef
general_auth_request_file: %{general_base_dir}/conf/auth.request
#
# can be one of crypt,md5,clear
#
general_encryption_method: crypt
#
# can be either asc (older dates first) or desc (recent dates first)
#
general_accounting_info_order: desc

nas1_name: nas1.%{general_domain}
nas1_model: Portslave
nas1_ip: 10.0.0.1
nas1_port_num: 1
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: root
sql_password:
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: true
sql_use_operators: true
#
#
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



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



联合购买 网上第一数字卡商城

2002-03-09 Thread cobuy


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


节省您的上网费用首选至尊上网卡

2002-03-09 Thread cobuy


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


Re: op field

2002-03-09 Thread Fabrice LABORIE


- Original Message - 
From: "Alan DeKok" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 08, 2002 10:55 PM
Subject: Re: op field 


> "Adam J. Henry" <[EMAIL PROTECTED]> wrote:
> > >   It's the operator.  '=', '+=', etc.  See 'man users'
> > 
> > I'm not understanding still.  'man users' shows me the man page for
> > the default users program.
> 
>   Yes, but did you *read* it?

Adam,
Hum   I think you need to
man 5 users

( or if still not in yr MANPATH try a
man `locate \/users.5`
)



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