Re: Dialup_admin & Postgresql

2003-12-22 Thread Guy Fraser
Hi

I did a bunch of work on Dialup Admin, and it works with PostgreSQL in CVS,
I have just put up a patch site for the dialup_admin/bin scripts, but 
they have not
been approved yet. This is where you can find the patch for the 
dialup_admin/bin
scripts against the cvs :

http://sphinx.incentre.net/

The instructions to get the cvs are at :

http://www.freeradius.org/development.html#cvs

Have a nice day

Roberto Fichera wrote:

Hi All,

does anyone know if Dialup_admin works with
PostgreSQL 7.3.4 ? I'm using RH9b with Freeradius 0.9.3.
Thanks in advance.

Roberto Fichera.

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


--
Guy Fraser
Network Administrator
The Internet Centre
780-450-6787 , 1-888-450-6787
There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.




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


Re: dialup_admin (cvs last 12-04-2003)

2003-12-09 Thread Guy Fraser
Please explain.

What online information are you refering to ?

Do you have your NAS boxes configured in naslist.conf ?

apellido jr., wilfredo p wrote:

hello guys, NAS doesnt show in User's Online
Information. 

=
wilfredo pahilanga apellido jr.
technical support
mactan online
bacolod city, philippines
+63 34 4348311
If you can't hear me, it's because i'm in parentheses.

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

 

--
Guy Fraser
Network Administrator
The Internet Centre
780-450-6787 , 1-888-450-6787
There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.




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


Re: dialup_admin (cvs last 12-04-2003)

2003-12-08 Thread Antoine Fafard
I'am currently working for a ISP in Montreal Canada and I want to know 
it's there are alot of job in IT(Unix Admin) in the Philippines ?
I'am plannig to go working on the other side of the earth realy soon.

Thanks for the info!

Antoine Fafard
Network Admin
[EMAIL PROTECTED]
apellido jr., wilfredo p wrote:

hello guys, NAS doesnt show in User's Online
Information. 

=
wilfredo pahilanga apellido jr.
technical support
mactan online
bacolod city, philippines
+63 34 4348311
If you can't hear me, it's because i'm in parentheses.

__
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
--
Antoine Fafard
Network Admin
[EMAIL PROTECTED]
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: dialup_admin and postgresql

2003-11-18 Thread Kostas Kalevras
On Tue, 18 Nov 2003, Guy Fraser wrote:

> OK I almost got it working
>
> When I finish teasing it into shape, I'll post a patch if anyone want's one.
>
> If nobody wants the patch where should I submit the fix.

Please do submit a fix. I would be really happy to have dialupadmin
definitely working with pg. The only thing is that i will have to make sure
that it works ok with mysql first.

>
> Guy Fraser wrote:
>
> > Hi
> >
> > I have started to look at the dialup_admin for use with postgresql.
> > I am using PostgreSQL 7.3.4, and FreeRadius 0.9.2.
> >
> > The porblem I just discovered is that the PHP is looking for case
> > sensitive column names when processing returned data.
> >
> > Example :
> >
> > while(($row = @da_sql_fetch_array($res,$config)))
> > $member_groups[] = $row[GroupName];
> >
> > But the columns are not quoted in requests or inserts.
> >
> > Example :
> >
> > $res = @da_sql_query($link,$config,
> > "INSERT INTO $config[sql_usergroup_table] (GroupName,UserName)
> > VALUES ('$login','$new_member');");
> >
> > PostgreSQL requires double quotes to be around column names in order
> > to maintain case sensitivity.
> >
> > As far as I know this can only be fixed by either ;
> >
> > a) lower casing all the column names in array requests.
> >
> > Example :
> >
> > while(($row = @da_sql_fetch_array($res,$config)))
> > $member_groups[] = $row[groupname];
> >
> > b) Putting double quotes around all column names when creating
> > the tables and performing operations on the tables.
> >
> > Example :
> >
> > $res = @da_sql_query($link,$config,
> > "INSERT INTO $config[sql_usergroup_table]
> > (\"GroupName\",\"UserName\")
> > VALUES ('$login','$new_member');");
> >
> > Has anybody made dialup_admin work with PostgreSQL ?
> >
> > If you have an easier or better way of fixing this
> > problem, I would like to know.
> >
> >
> > Thank you, for your time.
> >
>
> --
> Guy Fraser
> Network Administrator
> The Internet Centre
> 780-450-6787 , 1-888-450-6787
>
> There is a fine line between genius and lunacy, fear not, walk the
> line with pride. Not all things will end up as you wanted, but you
> will certainly discover things the meek and timid will miss out on.
>
>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin and postgresql

2003-11-18 Thread Guy Fraser
OK I almost got it working

When I finish teasing it into shape, I'll post a patch if anyone want's one.

If nobody wants the patch where should I submit the fix.

Guy Fraser wrote:

Hi

I have started to look at the dialup_admin for use with postgresql.
I am using PostgreSQL 7.3.4, and FreeRadius 0.9.2.
The porblem I just discovered is that the PHP is looking for case
sensitive column names when processing returned data.
Example :

while(($row = @da_sql_fetch_array($res,$config)))
$member_groups[] = $row[GroupName];
But the columns are not quoted in requests or inserts.

Example :

$res = @da_sql_query($link,$config,
"INSERT INTO $config[sql_usergroup_table] (GroupName,UserName)
VALUES ('$login','$new_member');");
PostgreSQL requires double quotes to be around column names in order
to maintain case sensitivity.
As far as I know this can only be fixed by either ;

a) lower casing all the column names in array requests.

Example :

while(($row = @da_sql_fetch_array($res,$config)))
$member_groups[] = $row[groupname];
b) Putting double quotes around all column names when creating
the tables and performing operations on the tables.
Example :

$res = @da_sql_query($link,$config,
"INSERT INTO $config[sql_usergroup_table]
(\"GroupName\",\"UserName\")
VALUES ('$login','$new_member');");
Has anybody made dialup_admin work with PostgreSQL ?

If you have an easier or better way of fixing this
problem, I would like to know.
Thank you, for your time.

--
Guy Fraser
Network Administrator
The Internet Centre
780-450-6787 , 1-888-450-6787
There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.




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


Re: dialup_admin

2003-11-16 Thread Kostas Kalevras
On Fri, 14 Nov 2003, apellido jr., wilfredo p wrote:

> Good day Mr. Kalevras, as your suggestion im tried to
> create a script to perform manual reset in GDBM
> database(db.monthly). I want to synchronize the update
> of GDBM database and MySQL. My question is after
> sucessfully reseting user's counter in GDBM database
> then how can i update user's status in dialup_admin?

dialupadmin only queries the sql database for accounting so as long as mysql
contains the correct data it will show the expected info.

>
>
>
> =
> wilfredo pahilanga apellido jr.
> technical support
> mactan online
> bacolod city, philippines
> +63 34 4348311
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin statistic report?

2003-11-14 Thread Kostas Kalevras
On Thu, 13 Nov 2003, apellido jr., wilfredo p wrote:

> Good day, why isnt it User Statistic and Statistic
> Report doesnt show anthing?

The User Statistics page will use the totacct tables. So they should contain
data for the page to display it (the data is created by runing the tot_stats
script in the bin folder).
IN any case enable sql debugging in dialupadmin and you should be able to figure
out what is happening.

>
> =
> wilfredo pahilanga apellido jr.
> technical support
> mactan online
> bacolod city, philippines
> +63 34 4348311
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: Dialup_Admin Help

2003-11-03 Thread Ulrich Walcher
Am Son, 2003-11-02 um 04.26 schrieb Wayne T Work:
> I have set up Dialup_Admin with Apache 2, MySQL 4, php and Redhat 9. I
> have set the permissions to the DB in the admin.conf file but the web
> server refuses to connect to the DB both remotely and Locally.
>  
> Any ideas???
>  
Did you uncomment sql_debug in conf/admin.conf?
It should give you a hint where the problem is located...
> 
> Wayne T Work, Sr.
> CISSP
> www.securitygauntlet.com
> www.hipaact.com
> 
> 
>  


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


Re: dialup_admin latest cvsup

2003-10-24 Thread Kostas Kalevras
On Wed, 22 Oct 2003, apellido jr., wilfredo p wrote:

> Good day Mr. Kalevras. statistics, user's statistics
> and online users doesnt show anything in latest
> dialup_admin cvsup. here's my config

Doesn't show anything meaning a blank page or no accounting data?

Make sure that you are using the new conf/accounting.attrs file

>
>
> -
> admin.conf
> -
>
> #
> # Main Configuration File
> #
> # it can be default or whatever language. Only greek
> are supported
> # from non latin alphabet languages
> # These attribute only apply for ldap not for sql
> #
> general_prefered_lang: en
> general_prefered_lang_name: English
> #
> # The charset which will be added as a meta tag in all
> pages
> #
> general_charset: iso-8859-1
> #
> # Uncomment this if normal attributes (not the
> ;lang-xx ones) in ldap
> # are utf8 encoded.
> #
> #general_decode_normal_attributes: yes
> #
> # The directory where dialupadmin is installed
> #
> general_base_dir: /usr/local/www/data/dialup_admin
> #
> # The base directory of the freeradius radius
> installation
> #
> general_radiusd_base_dir: /usr/local/freeradius-0.9.2
> general_domain: mactan.ph
> #
> # Set it to yes to use sessions and cache the various
> mappings
> # You can also set use_session = 1 in config.php3 to
> also cache
> # the admin.conf
> #
> #  IMPORTANT -- IMPORTANT -- IMPORTANT 
> #Remember to use the 'Clear Cache' page if you use
> sessions and do any changes
> #in any of the configuration files.
> #
> general_use_session: no
> #
> # This is used by the failed logins page. It states
> the default back time
> # in minutes.
> #
> general_most_recent_fl: 30
>
> #
> # Realm setup
> #
> # Set general_strip_realms to yes in order  to stip
> realms from usernames.
> # By default realms are not striped
> #general_strip_realms : yes
> #
> # The delimiter used  in realms. Default is @
> #
> #general_realm_delimiter: @
> #
> # The format of the realms. Can be either suffix
> (realm is after the username)
> # or prefix (realm is before the username). Default is
> suffix
> #
> #general_realm_format: suffix
> #
>
> #
> # Determines if the administrator will be able to
> change the user password through
> # the user edit page
> general_show_user_password: yes
>
>
> #general_ldap_attrmap:
> %{general_radiusd_base_dir}/etc/raddb/ldap.attrmap
> general_sql_attrmap:
> %{general_base_dir}/conf/sql.attrmap
> general_accounting_attrs_file:
> %{general_base_dir}/conf/accounting.attrs
> #general_extra_ldap_attrmap:
> %{general_base_dir}/conf/extra.ldap-attrmap
> #
> # it can be either ldap or sql
> # This affects the user base not accounting.
> Accounting is always in sql
> #
> general_lib_type: sql
> #
> # Define which attributes will be visible in the user
> edit page
> #
> general_user_edit_attrs_file:
> %{general_base_dir}/conf/user_edit.attrs
> #
> # Used by the Accounting Report Generator
> #
> general_sql_attrs_file:
> %{general_base_dir}/conf/sql.attrs
> #
> # Set default values for various attributes
> #
> 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
> # This is used by the online users page
> #
> 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: cache
> general_test_account_password: cache
> #
> # These are used as default values for the user test
> page
> #
> general_radius_server: localhost
> general_radius_server_port: 1645
> #
> # can be either pap or chap
> #
> general_radius_server_auth_proto: pap
> #
> # sorry, single valued for now. Should become
> something like
> # password[server-name]: x
> #
> general_radius_server_secret: cyclades
> general_auth_request_file:
> %{general_base_dir}/conf/auth.request
> #
> # can be one of crypt,md5,clear
> #
> general_encryption_method: clear
> #
> # can be either asc (older dates first) or desc
> (recent dates first)
> # This is used in the user accounting and badusers
> pages
> #
> general_accounting_info_order: desc
> #
> # Use the totacct table in the user statistics page
> instead of the radacct
> # table. That will make the page run quicker. totacct
> should have data for
> # this to work :-)
> #
> general_stats_use_totacct: yes
>
> INCLUDE: %{general_base_dir}/conf/naslist.conf
>
> INCLUDE: %{general_base_dir}/conf/captions.conf
>
> #
> # The ldap server to connect to.
> # Both ldap_server and ldap_write_server can be a
> space-separated
> # list of ldap hostnames. In that case the library
> will try to connect
> # to the servers in the order that they appear. If the
> first host is down
> # ldap_connect will ask for the second ldap host and
> so o

Re: dialup_admin latest cvsup

2003-10-22 Thread Kostas Kalevras
On Tue, 21 Oct 2003, apellido jr., wilfredo p wrote:

> I tried the latest cvsup of dialup_admin and there's a
> new feature in user's information, the open session
> however the online user command is not working, then i

How do you mean not working? Can you give more details?

> switch to dialup_admin which included in
> freeradiu-0.9.0 package and it is working as i
> expected. what is the file to be update in
> dialup_admin (freeradius-0.9.0)to have this latest
> feature which included in latest cvsup?

You could just only download the htdocs/clear_opensessions.php3 file.

>
> =
> wilfredo pahilanga apellido jr.
> technical support
> mactan online
> bacolod city, philippines
> +63 34 4348311
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


RE: dialup_admin: log_badlogins problem

2003-10-20 Thread Kenny Olano
I had to download dialup-admin from the cvs snapshot to allow
"[EMAIL PROTECTED]".

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Kostas
> Kalevras
> Sent: Monday, October 20, 2003 8:57 AM
> To: [EMAIL PROTECTED]
> Subject: RE: dialup_admin: log_badlogins problem
>
>
> On Fri, 17 Oct 2003, Kenny Olano wrote:
>
> > I fixed that issue. I had to run it as perl log_badlogins
> > /path/to/radius.log.  But now when it logs the bad logins, The
> username is
> > just a "-".
>
> That probable has to do with the form of your usernames.
> log_badlogins will only
> log usernames matching the regex [EMAIL PROTECTED] for now.
>
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of Kostas
> > > Kalevras
> > > Sent: Friday, October 17, 2003 9:25 AM
> > > To: Freeradius-Users
> > > Subject: Re: dialup_admin: log_badlogins problem
> > >
> > >
> > > On Fri, 17 Oct 2003, Kenny Olano wrote:
> > >
> > > > I'm trying to run log_badlogin but I keep getting the following
> > > error "sh:
> > > > /usr/local/mysql/bin/mysql: No such file or directory" I am
> pointing the
> > > > $mysql variable to right path "/usr/bin/mysql"   Why does it
> > > still try to
> > > > use "/usr/local/mysql/bin/mysql" ? I even tried commenting out
> > > the insert
> > > > command but I still get this error.  Any help will be appreciated.
> > >
> > > As long as you have something like:
> > >
> > > $mysql='/usr/bin/mysql';
> > >
> > > in your log_badlogins it should work just fine...
> > >
> > > >
> > > > Kenny Olano
> > > > Web Programmer
> > > > Practical Solutions
> > > >
> > > >
> > > > -
> > > > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> > >
> >
> > --
> > Kostas Kalevras Network Operations Center
> > [EMAIL PROTECTED]   National Technical University of Athens, Greece
> > Work Phone: +30 210 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
> >
>
> --
> Kostas Kalevras   Network Operations Center
> [EMAIL PROTECTED] National Technical University of Athens, Greece
> Work Phone:   +30 210 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


RE: dialup_admin: log_badlogins problem

2003-10-20 Thread Kostas Kalevras
On Fri, 17 Oct 2003, Kenny Olano wrote:

> I fixed that issue. I had to run it as perl log_badlogins
> /path/to/radius.log.  But now when it logs the bad logins, The username is
> just a "-".

That probable has to do with the form of your usernames. log_badlogins will only
log usernames matching the regex [EMAIL PROTECTED] for now.

>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Kostas
> > Kalevras
> > Sent: Friday, October 17, 2003 9:25 AM
> > To: Freeradius-Users
> > Subject: Re: dialup_admin: log_badlogins problem
> >
> >
> > On Fri, 17 Oct 2003, Kenny Olano wrote:
> >
> > > I'm trying to run log_badlogin but I keep getting the following
> > error "sh:
> > > /usr/local/mysql/bin/mysql: No such file or directory" I am pointing the
> > > $mysql variable to right path "/usr/bin/mysql"   Why does it
> > still try to
> > > use "/usr/local/mysql/bin/mysql" ? I even tried commenting out
> > the insert
> > > command but I still get this error.  Any help will be appreciated.
> >
> > As long as you have something like:
> >
> > $mysql='/usr/bin/mysql';
> >
> > in your log_badlogins it should work just fine...
> >
> > >
> > > Kenny Olano
> > > Web Programmer
> > > Practical Solutions
> > >
> > >
> > > -
> > > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> >
>
> --
> Kostas Kalevras   Network Operations Center
> [EMAIL PROTECTED] National Technical University of Athens, Greece
> Work Phone:   +30 210 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
>

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

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


RE: dialup_admin: log_badlogins problem

2003-10-17 Thread Kenny Olano
I fixed that issue. I had to run it as perl log_badlogins
/path/to/radius.log.  But now when it logs the bad logins, The username is
just a "-".

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Kostas
> Kalevras
> Sent: Friday, October 17, 2003 9:25 AM
> To: Freeradius-Users
> Subject: Re: dialup_admin: log_badlogins problem
>
>
> On Fri, 17 Oct 2003, Kenny Olano wrote:
>
> > I'm trying to run log_badlogin but I keep getting the following
> error "sh:
> > /usr/local/mysql/bin/mysql: No such file or directory" I am pointing the
> > $mysql variable to right path "/usr/bin/mysql"   Why does it
> still try to
> > use "/usr/local/mysql/bin/mysql" ? I even tried commenting out
> the insert
> > command but I still get this error.  Any help will be appreciated.
>
> As long as you have something like:
>
> $mysql='/usr/bin/mysql';
>
> in your log_badlogins it should work just fine...
>
> >
> > Kenny Olano
> > Web Programmer
> > Practical Solutions
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]   National Technical University of Athens, Greece
Work Phone: +30 210 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


Re: dialup_admin: log_badlogins problem

2003-10-17 Thread Kostas Kalevras
On Fri, 17 Oct 2003, Kenny Olano wrote:

> I'm trying to run log_badlogin but I keep getting the following error "sh:
> /usr/local/mysql/bin/mysql: No such file or directory" I am pointing the
> $mysql variable to right path "/usr/bin/mysql"   Why does it still try to
> use "/usr/local/mysql/bin/mysql" ? I even tried commenting out the insert
> command but I still get this error.  Any help will be appreciated.

As long as you have something like:

$mysql='/usr/bin/mysql';

in your log_badlogins it should work just fine...

>
> Kenny Olano
> Web Programmer
> Practical Solutions
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin

2003-10-13 Thread Ulrich Walcher
I posted a small patch to solve that problem in September... I'm working
with Postgres so perhaps it won't work for you, but if you want to take
a look...
Cheers,
OoLee
Am Fre, 2003-10-10 um 04.49 schrieb apellido jr., wilfredo p:
> Good day guys, i tried to add another group using
> dialup_admin then i try to show groups,  the one that
> ive created doesnt appear in the report. when im check
> my db (mysql) it apeears that the group ive created is
> already inserted. here's my output



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


Re: dialup_admin

2003-10-10 Thread Kostas Kalevras
On Thu, 9 Oct 2003, apellido jr., wilfredo p wrote:

> Good day guys, i tried to add another group using
> dialup_admin then i try to show groups,  the one that
> ive created doesnt appear in the report. when im check
> my db (mysql) it apeears that the group ive created is
> already inserted. here's my output
>
> mysql> select * from radgroupreply;
> ++---+++-+--+
> | id | GroupName | Attribute  | op |
> Value   | prio |
> ++---+++-+--+
> |  1 | admin | Framed-Compression | =  |
> Van-Jacobsen-TCP-IP |0 |
> |  2 | admin | Framed-Protocol| =  |
> PPP |0 |
> |  3 | admin | Service-Type   | =  |
> Framed-User |0 |
> |  4 | admin | Auth-Type  | =  |
> System  |0 |
> |  5 | admin | Framed-MTU | =  |
> 1500|0 |
> |  6 | Night-Owl Prepaid | Framed-Protocol| =  |
> PPP |0 |
> |  7 | Night-Owl Prepaid | Framed-MTU | =  |
> 1500|0 |
> |  8 | Night-Owl Prepaid | Framed-Compression | =  |
> Van-Jacobsen-TCP-IP |0 |
> |  9 | Night-Owl Prepaid | Service-Type   | =  |
> Framed-User |0 |
> ++---+++-+--+
>
>
> The Night-Owl Prepaid group is the one ive inserted
> through dialup_admin and admin group ive inserted
> manually. im using dialup_admin which include in
> freeradius-0.9.0 package. Thanks


If you don't assign any user to that group it won't show in the 'show groups'
page.

>
>
> =
> [ apellido jr., wilfredo p. ]
> +63 034 4880-449
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin

2003-10-06 Thread Kostas Kalevras
On Mon, 6 Oct 2003, apellido jr., wilfredo p wrote:

> Good day Mr. Kalevras i know this is not part of this
> mailing list. But im very glad if you can help me with
> this. When im trying to cvs:
>
> cvs -d :pserver:[EMAIL PROTECTED]:/source
> login
>
> then it promt for the password:
>
> Logging in to
> :pserver:[EMAIL PROTECTED]:2401/source
> CVS password:
>
> when i type anoncvs, nothing happens. Just came back
> to root. im using freebsd4.8

That's what it should do!!

Just follow all the instructions and it should work just fine.
man cvs on your system should also help.

>
>
> =
> [ apellido jr., wilfredo p. ]
> +63 034 4880-449
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin

2003-10-06 Thread Kostas Kalevras
On Mon, 6 Oct 2003, apellido jr., wilfredo p wrote:

> Thank you very much Mr. Kalevras, maybe it work after
> updating the user_admin.php3 but my BIG problem now is
> to how to use CVS? :( but anyway thank you very much.

http://www.freeradius.org/development.html#cvs

>
> =
> [ apellido jr., wilfredo p. ]
> +63 034 4880-449
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin

2003-10-06 Thread Kostas Kalevras
On Mon, 6 Oct 2003, apellido jr., wilfredo p wrote:

> :) Good day Mr. Kalevras, im just downloaded the
> latest cvs of Freeradius
> (freeradius-snapshot-20031005)
> get the dialup_admin folder and overwrite my existing
> one. Why isnt it the allowed session stating this?
>
> Information the Allowed Session :  The user account is
> locked
>
> Eventhough the user have no monthly,weekly,daily
> limit, no user login period, no expiration date. The
> Problem bout in displaying the Monthly Limit is solve,
> same with the statistic report. Once again here's my
> dialup_admin: http://203.177.22.190 . thanks

This has to do with the mapping of the Dialup-Access attribute.
Do a cvs update (again) on user_admin.php3 and it should work ok.

>
> =
> [ apellido jr., wilfredo p. ]
> +63 034 4880-449
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin

2003-10-05 Thread Kostas Kalevras
On Fri, 3 Oct 2003, apellido jr., wilfredo p wrote:

> Mr. Kalevras, good day. I've already add
> Max-Monthly-Session in user_edit.attrs and also added
> in sql.attrmap.

Yes dialupadmin wasn't calculating monthly usage. Do a cvs update on the
user_admin.php3 page and it should work now. Thanks for the report.

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

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


Re: dialup_admin

2003-10-03 Thread Kostas Kalevras
On Thu, 2 Oct 2003, apellido jr., wilfredo p wrote:

> Hello guys, I've installed freebsd 4.8 and freeradius
> 0.9.0 and it working properly. I decided to add
> sqlcounter module for the prepaid internet. Because we
> only offer prepaid internet which consumable for per
> month ( e.g 10,20,30 hrs for 1 month ), i decided to
> change the default entry of counter_default_daily,
> counter_default_weekly and counter_default_monthly in
> admin.conf to none. Then using dialup_admin i put some
> entry in Monthly limit in some account. Successfully
> the client terminate after consuming the Monthly
> credit. The problem is when i tried to show the user
> information, the allowed session time is stating: user
> can login for unlimited time even if they only got 10
> hrs per month and for the subscription analysis, the
> monthly limit still in none. If im correct the allowed
> session time depend on monthly limit entry but since
> monthly limit is none then allow session is unlimited.
> Any suggestion, comment is highly appreciated.

dialupadmin will look for the attribute named Max-Monthly-Session
If you have named it differently it will not work.

>
> =
> [ apellido jr., wilfredo p. ]
> +63 034 4880-449
>
> If you can't hear me, it's because i'm in parentheses.
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin on different server

2003-09-18 Thread Ulrich Walcher
Hi Bernie,

how about a little more debug information?
F.e. enable sql_debug in admin.conf...
I don't know that much on MySQL but on PostgreSQL you have to edit a
file called "pg_hba.conf" which controlls which user is allowed to
connect to a specific database from a specific host...

Cheers,
Uli

Am Don, 2003-09-18 um 18.07 schrieb Bernie Liwanag:
> Dear Ulrich,
> 
> Now the error had gone in "Check Server" option in dialup_admin web tool
> 
> But I have still some problem in connecting my sql server. I'm still unable
> to connect to my "mysql" database server.
> 
> Here is my admin.conf
> 
> general_prefered_lang: el
> general_prefered_lang_name: Greek
> general_charset: iso-8859-1
> general_tmp_dir: /var/www/html/dialup_admin/tmp
> general_base_dir: /var/www/html/dialup_admin
> general_radiusd_base_dir: /usr/local/radiusd
> general_domain: coollink.us
> general_use_session: no
> general_most_recent_fl: 30
> general_realm_delimiter: @
> general_realm_format: suffix
> #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
> 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_finger_type: snmp
> general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger
> general_radclient_bin: %{general_radiusd_base_dir}/bin/radclient
> general_test_account_login: 
> general_test_account_password: 
> general_radius_server: 
> general_radius_server_port: 
> general_radius_server_auth_proto: chap
> 
> general_radius_server_secret: 
> general_auth_request_file: %{general_base_dir}/conf/auth.request
> 
> general_encryption_method: crypt
> 
> general_accounting_info_order: desc
> general_stats_use_totacct: no
> 
> sql_type: mysql
> sql_server:  sql_port: 3306
> sql_username: 
> 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
> sql_groupcheck_table: radgroupcheck
> sql_groupreply_table: radgroupreply
> sql_usergroup_table: usergroup
> sql_total_accounting_table: totacct
> sql_use_user_info_table: true
> sql_use_operators: true
> sql_password_attribute: User-Password
> sql_date_format: Y-m-d
> sql_full_date_format: Y-m-d H:i:s
> sql_row_limit: 40
> sql_connect_timeout: 3
> counter_default_daily: 14400
> counter_default_weekly: 72000
> counter_default_monthly: none
> 
> TIA! and more power!
> 
> Bernie
> 
> 
> 
> - 
> 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: dialup_admin on different server

2003-09-18 Thread Bernie Liwanag
Dear Ulrich,

Now the error had gone in "Check Server" option in dialup_admin web tool

But I have still some problem in connecting my sql server. I'm still unable
to connect to my "mysql" database server.

Here is my admin.conf

general_prefered_lang: el
general_prefered_lang_name: Greek
general_charset: iso-8859-1
general_tmp_dir: /var/www/html/dialup_admin/tmp
general_base_dir: /var/www/html/dialup_admin
general_radiusd_base_dir: /usr/local/radiusd
general_domain: coollink.us
general_use_session: no
general_most_recent_fl: 30
general_realm_delimiter: @
general_realm_format: suffix
#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
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_finger_type: snmp
general_snmpfinger_bin: %{general_base_dir}/bin/snmpfinger
general_radclient_bin: %{general_radiusd_base_dir}/bin/radclient
general_test_account_login: 
general_test_account_password: 
general_radius_server: 
general_radius_server_port: 
general_radius_server_auth_proto: chap

general_radius_server_secret: 
general_auth_request_file: %{general_base_dir}/conf/auth.request

general_encryption_method: crypt

general_accounting_info_order: desc
general_stats_use_totacct: no

sql_type: mysql
sql_server: http://www.freeradius.org/list/users.html


Re: dialup_admin on different server

2003-09-18 Thread Ulrich Walcher
Am Don, 2003-09-18 um 13.01 schrieb Bernie Liwanag:
> Dear Evren,
> 
> I have already changed the entry for sql_server:localhost to
> sql_server:my_server_ip addr but it still won't work.When I access the
> accounting options, it says "can't connect to sql server"
> 
> Below is the result of my "Check Server" test.
> 
> Warning: file("") - Permission denied in
> /var/www/html/dialup_admin/htdocs/user_test.php3 on line 99

You don't have the permissions to write to a directory (line 69 in
user_test.php3) which you have to specify in /conf/admin.conf.
Insert a line saying:
general_tmp_dir: /path/to/your/tmp_writeable

All following errors are because of your lack of rights to create the
tmp_file in line 69...

> 
> Warning: Unlink failed (No such file or directory) in
> /var/www/html/dialup_admin/htdocs/user_test.php3 on line 100
> 
> Warning: The argument needs to be an array in
> /var/www/html/dialup_admin/htdocs/user_test.php3 on line 115
> 
> Warning: Invalid argument supplied for foreach() in
> /var/www/html/dialup_admin/htdocs/user_test.php3 on line 118
> Thursday, 18 September 2003, 11:53:52 WAT
> Server: server_ip_address :1812
> (test user testuser)
> 
> 
> 
> 
> > Message: 1
> > Date: Thu, 18 Sep 2003 11:30:23 -0700
> > From: Evren Yurtesen <[EMAIL PROTECTED]>
> > To:  [EMAIL PROTECTED]
> > Subject: Re: dialup_admin on different server
> > Reply-To: [EMAIL PROTECTED]
> >
> > see conf/admin.conf
> > change
> > sql_server: localhost
> > to your server address
> > also the user/pass information etc.
> >
> > Bernie Liwanag wrote:
> >
> > > Dear Kostas,
> > >
> > > Thanks for responding! Can you tell me how to configure the dialup_admin
> on
> > > a separate server that will lookup my other freeradius and mysql server.
> > >
> > > TIA!
> > >
> > > Bernie
> > >
> > >
> > >
> > > -
> > > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> >
> >
> >
> 
> 
> 
> - 
> 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: dialup_admin on different server

2003-09-18 Thread Evren Yurtesen
do you have your php compiled with radius support? do you have radius 
client libraries? something is missing obviously...

Bernie Liwanag wrote:

Dear Evren,

I have already changed the entry for sql_server:localhost to
sql_server:my_server_ip addr but it still won't work.When I access the
accounting options, it says "can't connect to sql server"
Below is the result of my "Check Server" test.

Warning: file("") - Permission denied in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 99
Warning: Unlink failed (No such file or directory) in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 100
Warning: The argument needs to be an array in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 115
Warning: Invalid argument supplied for foreach() in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 118
Thursday, 18 September 2003, 11:53:52 WAT
Server: server_ip_address :1812
(test user testuser)




Message: 1
Date: Thu, 18 Sep 2003 11:30:23 -0700
From: Evren Yurtesen <[EMAIL PROTECTED]>
To:  [EMAIL PROTECTED]
Subject: Re: dialup_admin on different server
Reply-To: [EMAIL PROTECTED]
see conf/admin.conf
change
sql_server: localhost
to your server address
also the user/pass information etc.
Bernie Liwanag wrote:


Dear Kostas,

Thanks for responding! Can you tell me how to configure the dialup_admin
on

a separate server that will lookup my other freeradius and mysql server.

TIA!

Bernie



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





- 
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: dialup_admin on different server

2003-09-18 Thread Bernie Liwanag
Dear Evren,

I have already changed the entry for sql_server:localhost to
sql_server:my_server_ip addr but it still won't work.When I access the
accounting options, it says "can't connect to sql server"

Below is the result of my "Check Server" test.

Warning: file("") - Permission denied in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 99

Warning: Unlink failed (No such file or directory) in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 100

Warning: The argument needs to be an array in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 115

Warning: Invalid argument supplied for foreach() in
/var/www/html/dialup_admin/htdocs/user_test.php3 on line 118
Thursday, 18 September 2003, 11:53:52 WAT
Server: server_ip_address :1812
(test user testuser)




> Message: 1
> Date: Thu, 18 Sep 2003 11:30:23 -0700
> From: Evren Yurtesen <[EMAIL PROTECTED]>
> To:  [EMAIL PROTECTED]
> Subject: Re: dialup_admin on different server
> Reply-To: [EMAIL PROTECTED]
>
> see conf/admin.conf
> change
> sql_server: localhost
> to your server address
> also the user/pass information etc.
>
> Bernie Liwanag wrote:
>
> > Dear Kostas,
> >
> > Thanks for responding! Can you tell me how to configure the dialup_admin
on
> > a separate server that will lookup my other freeradius and mysql server.
> >
> > TIA!
> >
> > Bernie
> >
> >
> >
> > -
> > 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: dialup_admin on different server

2003-09-18 Thread Evren Yurtesen
see conf/admin.conf
change
sql_server: localhost
to your server address
also the user/pass information etc.
Bernie Liwanag wrote:

Dear Kostas,

Thanks for responding! Can you tell me how to configure the dialup_admin on
a separate server that will lookup my other freeradius and mysql server.
TIA!

Bernie



- 
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: dialup_admin on different server

2003-09-17 Thread Kostas Kalevras
On Tue, 16 Sep 2003, Bernie Liwanag wrote:

>
> Can I run dialup_admin tool on a different server?I want to separate it from my 
> radius and mysql server.

Yes dialupadmin will only query the radius and mysql/ldap server so it does not
need to run on the same machine.

>
> TIA!
>
> Bernie
>

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

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


Re: dialup_admin daily limit

2003-09-17 Thread Kostas Kalevras
On Wed, 17 Sep 2003 [EMAIL PROTECTED] wrote:

> I'm always getting 4 hours limit in dialup_admin.
> Where can i change or delete this value.

conf/admin.conf

counter_default_daily

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

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

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


Re: dialup_admin installation using PHP and HTTPD

2003-09-11 Thread Guy Fraser
Did you remeber to add ".php3" to your php4 handler in httpd.conf ?

Bernie Liwanag wrote:

Hi to all!

I have configured freeradius, mysql and dialup_admin on the same machine
runing on Red Hat 9. I used the default httpd-2.0 and the php-4.2.My
freeradius and mysql are running.I followed the instructions on dialup_admin
installation guide but when I access  it in my web browser, i cant view the
buttons on left side portion of the web site and i can only see the php
commands for that portion. also I still can only see the title "DIALUP
ADMIN" in the main html page.
I have tried to run the dialup_admin tool from other linux box (Red Hat
7.2,http-1.3.2,php-4.0) without freeradius and mysql,just to isolate the
problem. From this setup I was able to view completely the main page of
dialup_admin web link. Perhaps there could be a problem in the version of
php and the http that im using thats why can't run it in Red Hat 9 linux
box.
Anybody here can give me an idea on how to run the dialup_admin tool in diff
linux box? Or perhaps help me configure my http and php in Redhat9 in such a
way i can run the dialup_admin in the server together w/ my freeradius and
mysql?
Thanks a lot and more power to all!

Bernie



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

 

--
Guy Fraser
Network Administrator
The Internet Centre
780-450-6787 , 1-888-450-6787
There is a fine line between genius and lunacy, fear not, walk the
line with pride. Not all things will end up as you wanted, but you
will certainly discover things the meek and timid will miss out on.




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


Re: dialup_admin installation using PHP and HTTPD

2003-09-11 Thread Evren Yurtesen
Perhaps your web server is not processing PHP at all.
This was discussed in this list a few weeks ago. I am
not using redhat so I better not comment :) But you
surely can search from the mailing list archives.
Also the problem was with apache2, this is not a dialup_admin
issue.
But, to be sure, are you able to run any php scripts on your server?
You can do a simple php page and try, for example
phpinfo.php

inside


If this works then the problem might be that your server
doesnt recognise .php3 files as php files. If I remember
right dialup_admin had file extensions .php3, well, you can
easily fix this in apache config file also.
Evren

Evren

Bernie Liwanag wrote:
Hi to all!

I have configured freeradius, mysql and dialup_admin on the same machine
runing on Red Hat 9. I used the default httpd-2.0 and the php-4.2.My
freeradius and mysql are running.I followed the instructions on dialup_admin
installation guide but when I access  it in my web browser, i cant view the
buttons on left side portion of the web site and i can only see the php
commands for that portion. also I still can only see the title "DIALUP
ADMIN" in the main html page.
I have tried to run the dialup_admin tool from other linux box (Red Hat
7.2,http-1.3.2,php-4.0) without freeradius and mysql,just to isolate the
problem. From this setup I was able to view completely the main page of
dialup_admin web link. Perhaps there could be a problem in the version of
php and the http that im using thats why can't run it in Red Hat 9 linux
box.
Anybody here can give me an idea on how to run the dialup_admin tool in diff
linux box? Or perhaps help me configure my http and php in Redhat9 in such a
way i can run the dialup_admin in the server together w/ my freeradius and
mysql?
Thanks a lot and more power to all!

Bernie



- 
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: dialup_admin installation

2003-09-11 Thread Bernie Liwanag
I have changed the configuration of the admin.conf file of the dialup_admin
to adopt to my freeradius and mysql server, but when i tried to access it in
my web browser, i can't see any button on the frame portion , in the left
side of the page. I could only see the "DIALUP ADMIN" when i browsed the
~/dialup_admin/htdocs/index.html.

TIA!

Bernie

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 11, 2003 11:31 AM
Subject: Freeradius-Users digest, Vol 1 #2292 - 7 msgs


> Send Freeradius-Users mailing list submissions to
> [EMAIL PROTECTED]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.cistron.nl/mailman/listinfo/freeradius-users
> or, via email, send a message with subject or body 'help' to
> [EMAIL PROTECTED]
>
> You can reach the person managing the list at
> [EMAIL PROTECTED]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Freeradius-Users digest..."
>
>
> Today's Topics:
>
>1. Freeradius + mysql + minicom Test ([EMAIL PROTECTED])
>2. Question about 802.1x and Radius (kott m)
>3. Re: Freeradius + mysql + minicom Test (Nicolas Baradakis)
>4. src/lib/smbdes.c and src/modules/rlm_smb/smbdes.c (Nicolas
Baradakis)
>5. dialup_admin installation (Bernie Liwanag)
>6. Re: dialup_admin installation (Kostas Kalevras)
>7. Re: GPL headers (Nicolas Baradakis)
>
> --__--__--
>
> Message: 1
> Date: Thu, 11 Sep 2003 01:17:41 -0300 (BRT)
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Freeradius + mysql + minicom Test
> Reply-To: [EMAIL PROTECTED]
>
> --27597504.1063253861949.JavaMail.nobody.brtdata-mail.brturbo.com
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
>
> Hi list,
>
> sorry for my poor english (im Brasilian), well, i'm starting at freeradius
and mysql, i've installed freeradius + mysql following the
www.frontios.com/freeradius.html howto, seems all ok, localy with radtest
radius returns a message of OK using the table in mysql, but i want to test
the authentication and logging (radacct) with mysql. Well, i heard that this
test can be done with minicom + portslave localy, without the necessity of a
modem installed, it true? if .. someone that already have passed of this it
could help me?
>
> thanks! and sorry again...
>
> - Reinaldo Andrade
> Campo Grande - MS - Brasil
> --27597504.1063253861949.JavaMail.nobody.brtdata-mail.brturbo.com--
>
>
>
> --__--__--
>
> Message: 2
> Date: Thu, 11 Sep 2003 01:28:15 -0700 (PDT)
> From: kott m <[EMAIL PROTECTED]>
> Subject: Question about 802.1x and Radius
> To: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
>
> --0-914124184-1063268895=:22557
> Content-Type: text/plain; charset=us-ascii
>
>
>
> Hello -
>
> I have a  few basic questions about 802.1x and Radius
>
> 1.In 802.1x , is the user/password transmitted from the Supplicant to the
Authenticator ?
>
> 2.If so what is the messages used for the same? Is it sent in Request and
Response ,message or is it encrypted in the MD5-challenge Response from the
supplicant?
>
> any info would be appreciated.I am developing a 802.1x stack and Radius
client for a switch.
>
> Thanks
>
> Kott
>
>
> -
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> --0-914124184-1063268895=:22557
> Content-Type: text/html; charset=us-ascii
>
> 
> Hello -
> I have a  few basic questions about 802.1x and Radius 
> 1.In 802.1x , is the user/password transmitted from the Supplicant to
the Authenticator ?
> 2.If so what is the messages used for the same? Is it sent in Request
and Response ,message or is it encrypted in the MD5-challenge Response from
the supplicant?
> any info would be appreciated.I am developing a 802.1x stack and Radius
client for a switch.
> Thanks
> Kott
> Do you Yahoo!?
> http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com";>Yahoo!
SiteBuilder - Free, easy-to-use web site design software
> --0-914124184-1063268895=:22557--
>
>
> --__--__--
>
> Message: 3
> Date: Thu, 11 Sep 2003 10:51:58 +0200
> From: Nicolas Baradakis <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: Freeradius + mysql + minicom Test
> Reply-To: [EMAIL PROTECTED]
>
> En réponse à [EMAIL PROTECTED] :
>
> > sorry for my poor english (im Brasilian), well, i'm starting at
> > freeradius and mysql, i've installed freeradius + mysql following
> > the www.frontios.com/freeradius.html howto, seems all ok, localy
> > with radtest radius returns 

Re: dialup_admin installation

2003-09-11 Thread Kostas Kalevras
On Thu, 11 Sep 2003, Bernie Liwanag wrote:

> Good day to all! Im new to freeradius and dialup_admin tool. I would like to ask if 
> someone can tell me the proper or detailed installation guide and configuration of 
> dialup_admin tool? I have setup the freeradius and mysql on the same machine and 
> tested it.its working fine! However I can't configure the dialup_admin tool to run 
> in my radius and mysql server.Im using Red Hat 9, freeradius 0.8.1, mysql 4.

Take a look at the README file for dialupadmin and at
http://kstadler.ch/index.php?topgroupid=1&subgroupid=14&groupid=11


>
> TIA!
>
> ~Bernie

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

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


Re: dialup_admin with ldap server

2003-08-26 Thread Kostas Kalevras
On Thu, 21 Aug 2003, Annie Tong wrote:

> hi,
>
> I've installed dialup_admin and want to use it to monitor the activities of
> our radius server.  We're using ldap database for user authentication.  The
> FQA of dailup_admin mentions mySQL is needed as it's used to keep the radius
> accounting data.  I'm wondering is it possible to keep the data in flat
> files?  We aren't in favor of installing another database just for the
> purpose of radius accounting data storage, and we want to keep ldap for
> authentication use only.  Do you have any suggestions on how to implement
> that?  Also in the admin.conf, can we disable the use of sql database so the
> php scripts won't try to connect to sql database?

Not really. dialupadmin is designed to query an sql database for accounting data
and an ldap/sql server for authentication data.

>
> Any help will be greatly appreciated.
>
> thanks,
>
> Annie Tong
> MAE Engineering
> MCI
>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin and user password change ?

2003-08-15 Thread Truong Manh Cuong
No problem,

dialup_admin web page has a module for this. You can rewrite this file
(change_passwd.php3) and run it on apache server.
then user can connect to change passwd online.
If you don't know how to do, I can write a sample for you when I have free
time
Manh Cuong


- Original Message -
From: "Zoup" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 16, 2003 4:39 AM
Subject: dialup_admin and user password change ?


>
> Is there any way to make a webpage so users can change they password
online ?
>
> --
> Wish You Were Here ...
>
>
> -
> 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: dialup_admin and user password change ?

2003-08-15 Thread bmcmanus
It depends on your backend database, but usually I use ldap with a db3
database, or a MySQL backend...
If it is a password file it's fairly simple but I wouldn't rely on it...  
You could also use a pop3d script that changes the password..
But usually I write a php script that does LDAP calls and can change the
password.
Brian
>
> Is there any way to make a webpage so users can change they password
> online ?
>
> --
> Wish You Were Here ...
>
>
> -
> 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: dialup_admin - postgresql

2003-08-14 Thread Kostas Kalevras
On Wed, 6 Aug 2003, Truong Manh Cuong wrote:

> Hi all,
> I use PostgresSQL and I have problem with database:
> freeradius dies when user connects to server so I must change
> radacct::AcctStart/StopTime : datetime -> TIMESTAMP with time zone
>
> in Dialup_admin::user_finger.php3
> SELECT ... WHERE AcctStopTime = '0'
>
> And error report: query-error. AcctStopTime is NULL in database, not = 0. I
> don't know how to correct it.
> So at page online user page,  I can't show online user with
> SELECT ... WHERE AcctStopTime = '0'

Fixed in the user finger and user admin pages. Please do a cvs update on
dialupadmin and see if everything is working now. Thanks

>
> Please help me.
> Thanks and Regards
>
> ***
> Truong M?nh Cu?ng
> System Engineer - SE
> Research & Development Division - RDD
> Mobile: 84-90-8392986
> Work Phone: 84-08-9321001 - 664
> Email[EMAIL PROTECTED]
> EIS Service, Inc.
> http://www.globaleis.com
> Saigon Software Park, 2nd Floor.
> 123 Truong Dinh St., Dist. 3, HCM City, Vietnam.
> Tel 84-8-932 1001 Fax 84-8-932 1002
> ***
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin - postgresql

2003-08-14 Thread Peter Nixon
On Wed August 6 2003 14:21, Truong Manh Cuong wrote:
> Hi all,
> I use PostgresSQL and I have problem with database:
> freeradius dies when user connects to server so I must change
> radacct::AcctStart/StopTime : datetime -> TIMESTAMP with time zone
>
> in Dialup_admin::user_finger.php3
> SELECT ... WHERE AcctStopTime = '0'
>
> And error report: query-error. AcctStopTime is NULL in database, not = 0. I
> don't know how to correct it.
> So at page online user page,  I can't show online user with
> SELECT ... WHERE AcctStopTime = '0'

Hi Truong

I was the one who commited the changes in the default way that data is stored 
in Postgres. The changes regarding NULLs were discussed on the devel list but 
I guess whoever looks after dialup admin was not watching :-)

We will discuss and get back to you.

-- 

Peter Nixon
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc


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


RE: dialup_admin

2003-07-25 Thread Juan Carlos Ocasio
Not a problem, I had the same issue on a recent upgrade.

Juan Carlos Ocasio
CIO/Co-Founder
4UHost Inc.
303 Texas Ave. Suite 602&603
El Paso, Texas 79901
Phone: 915-838-1913
Fax: 915-838-1916


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Chen
Sent: Friday, July 25, 2003 3:18 PM
To: [EMAIL PROTECTED]
Subject: RE: dialup_admin

Thanks for the info, Juan.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of 
> Juan Carlos
> Oacasio
> Sent: Friday, July 25, 2003 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: dialup_admin
> 
> 
> In Apache 2.x php configuration is now in /etc/httpd/conf.d/php.conf
> 
> This file should contain the following:
> 
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
> 
> LoadModule php4_module modules/libphp4.so
> 
> #
> # Cause the PHP interpreter handle files with a .php extension.
> #
> 
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 524288
> 
> 
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
> 
> 
> And your /etc/httpd/conf/httpd.conf file should contain the following:
> #
> # Load config files from the config directory "/etc/httpd/conf.d".
> #
> Include conf.d/*.conf
> 
> 
> This way it includes the correct configurations.  As you can 
> see you now
> only use LoadModule.  By any chance, did you upgrade your box from a
> previous version?  If so, you will see in /etc/httpd/conf 
> that there is
> a new httpd.conf file which is the new Apache 2.x file, just move that
> guy over and add your specific configurations to make it work.
> 
> Hope this helps...
> 
> JC
> 
http://www.freeradius.org/list/users.html

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

2003-07-25 Thread Alex Chen
Thanks for the info, Juan.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of 
> Juan Carlos
> Oacasio
> Sent: Friday, July 25, 2003 1:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: dialup_admin
> 
> 
> In Apache 2.x php configuration is now in /etc/httpd/conf.d/php.conf
> 
> This file should contain the following:
> 
> #
> # PHP is an HTML-embedded scripting language which attempts to make it
> # easy for developers to write dynamically generated webpages.
> #
> 
> LoadModule php4_module modules/libphp4.so
> 
> #
> # Cause the PHP interpreter handle files with a .php extension.
> #
> 
> SetOutputFilter PHP
> SetInputFilter PHP
> LimitRequestBody 524288
> 
> 
> #
> # Add index.php to the list of files that will be served as directory
> # indexes.
> #
> DirectoryIndex index.php
> 
> 
> And your /etc/httpd/conf/httpd.conf file should contain the following:
> #
> # Load config files from the config directory "/etc/httpd/conf.d".
> #
> Include conf.d/*.conf
> 
> 
> This way it includes the correct configurations.  As you can 
> see you now
> only use LoadModule.  By any chance, did you upgrade your box from a
> previous version?  If so, you will see in /etc/httpd/conf 
> that there is
> a new httpd.conf file which is the new Apache 2.x file, just move that
> guy over and add your specific configurations to make it work.
> 
> Hope this helps...
> 
> JC
> 
http://www.freeradius.org/list/users.html

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


RE: dialup_admin

2003-07-25 Thread Juan Carlos Oacasio
In Apache 2.x php configuration is now in /etc/httpd/conf.d/php.conf

This file should contain the following:

#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#

LoadModule php4_module modules/libphp4.so

#
# Cause the PHP interpreter handle files with a .php extension.
#

SetOutputFilter PHP
SetInputFilter PHP
LimitRequestBody 524288


#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php


And your /etc/httpd/conf/httpd.conf file should contain the following:
#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf


This way it includes the correct configurations.  As you can see you now
only use LoadModule.  By any chance, did you upgrade your box from a
previous version?  If so, you will see in /etc/httpd/conf that there is
a new httpd.conf file which is the new Apache 2.x file, just move that
guy over and add your specific configurations to make it work.

Hope this helps...

JC

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Evren
Yurtesen
Sent: Friday, July 25, 2003 1:07 PM
To: [EMAIL PROTECTED]
Subject: RE: dialup_admin

You should really ask this to an Apache or PHP mailing list.

Also I use apache 1.3.x version. That must be the difference.
Make a search from google and use keywords
 how to configure php apache 2


Do you have these also in some of your conf files?
The important thing is that you should have .php3 otherwise you cant run
dialup admin

AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps


On Fri, 25 Jul 2003, Alex Chen wrote:

> Evren,
>   My system is Linux 8.0 running Apache httpd-2.0.40-8.  It is in
stock
> setting.
> I have not touched anything in it.
>
> If I have the following lines in /etc/httpd/conf.d/php.conf
>
> LoadModule php4_module modules/libphp4.so
> AddModule mod_php4.c
>
> I got the following errors when I stop and restart the httpd:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd stop
> Stopping httpd:[  OK  ]
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> Invalid command 'AddModule', perhaps mis-spelled or defined by a
module not
> included in the server configuration
>[FAILED]
>
>
> If I change 'AddModule' to 'AddModuleInfo', I got the following error:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> AddModuleInfo takes two arguments, a module name and additional
information
> on that module
>[FAILED]
>
> The file /etc/httpd/conf/httpd.conf does not have any 'AddModule'
> directives.
>
> What is your setting?
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > Yurtesen
> > Sent: Friday, July 25, 2003 1:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: dialup_admin
> >
> >
> > look pal, I am using FreeBSD and it can install php
> > automatically and make
> > it work! So I dont know also waht that does. I have searched
> > in my WORKING
> > httpd.conf file for php and found those, and concluded that for php
to
> > work, those must be set also! If you didnt of course set some
> > stuff about
> > your php after install
> >
> > Evren
> >
> > On Thu, 24 Jul 2003, Alex Chen wrote:
> >
> > > The LoadModule directive is already there.
> > >
> > > The AddModuleInfo needs two parameters.
> > > There is no 'AddModule' directive.  I do not see how this
> > > affects the web server.
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf Of
Evren
> > > > Yurtesen
> > > > Sent: Thursday, July 24, 2003 3:12 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: dialup_admin
> > > >
> > > >
> > > > I had similar problem.
> > > > You should also have
> > > >
> > > > LoadModule php4_module libexec/apache/libphp4.so
> > > >
> > > > AddModule mod_php4.c
> > > >
> > > > My problem was that these were under a IfDefine SSL clause
> > > > and I have started server without ssl (doh!)
> > > >
> > > > Evren
> > > >
>
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>

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

2003-07-25 Thread Evren Yurtesen
You should really ask this to an Apache or PHP mailing list.

Also I use apache 1.3.x version. That must be the difference.
Make a search from google and use keywords
 how to configure php apache 2


Do you have these also in some of your conf files?
The important thing is that you should have .php3 otherwise you cant run
dialup admin

AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps


On Fri, 25 Jul 2003, Alex Chen wrote:

> Evren,
>   My system is Linux 8.0 running Apache httpd-2.0.40-8.  It is in stock
> setting.
> I have not touched anything in it.
>
> If I have the following lines in /etc/httpd/conf.d/php.conf
>
> LoadModule php4_module modules/libphp4.so
> AddModule mod_php4.c
>
> I got the following errors when I stop and restart the httpd:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd stop
> Stopping httpd:[  OK  ]
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> Invalid command 'AddModule', perhaps mis-spelled or defined by a module not
> included in the server configuration
>[FAILED]
>
>
> If I change 'AddModule' to 'AddModuleInfo', I got the following error:
>
> [EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
> Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
> AddModuleInfo takes two arguments, a module name and additional information
> on that module
>[FAILED]
>
> The file /etc/httpd/conf/httpd.conf does not have any 'AddModule'
> directives.
>
> What is your setting?
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > Yurtesen
> > Sent: Friday, July 25, 2003 1:01 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: dialup_admin
> >
> >
> > look pal, I am using FreeBSD and it can install php
> > automatically and make
> > it work! So I dont know also waht that does. I have searched
> > in my WORKING
> > httpd.conf file for php and found those, and concluded that for php to
> > work, those must be set also! If you didnt of course set some
> > stuff about
> > your php after install
> >
> > Evren
> >
> > On Thu, 24 Jul 2003, Alex Chen wrote:
> >
> > > The LoadModule directive is already there.
> > >
> > > The AddModuleInfo needs two parameters.
> > > There is no 'AddModule' directive.  I do not see how this
> > > affects the web server.
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > > > Yurtesen
> > > > Sent: Thursday, July 24, 2003 3:12 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: RE: dialup_admin
> > > >
> > > >
> > > > I had similar problem.
> > > > You should also have
> > > >
> > > > LoadModule php4_module libexec/apache/libphp4.so
> > > >
> > > > AddModule mod_php4.c
> > > >
> > > > My problem was that these were under a IfDefine SSL clause
> > > > and I have started server without ssl (doh!)
> > > >
> > > > Evren
> > > >
>
>
> -
> 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: dialup_admin

2003-07-25 Thread Alex Chen
Evren,
  My system is Linux 8.0 running Apache httpd-2.0.40-8.  It is in stock
setting.
I have not touched anything in it.

If I have the following lines in /etc/httpd/conf.d/php.conf

LoadModule php4_module modules/libphp4.so
AddModule mod_php4.c

I got the following errors when I stop and restart the httpd:

[EMAIL PROTECTED] conf.d]# /etc/init.d/httpd stop
Stopping httpd:[  OK  ]
[EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a module not
included in the server configuration
   [FAILED]


If I change 'AddModule' to 'AddModuleInfo', I got the following error:

[EMAIL PROTECTED] conf.d]# /etc/init.d/httpd start
Starting httpd: Syntax error on line 8 of /etc/httpd/conf.d/php.conf:
AddModuleInfo takes two arguments, a module name and additional information
on that module
   [FAILED]

The file /etc/httpd/conf/httpd.conf does not have any 'AddModule'
directives.

What is your setting?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Evren
> Yurtesen
> Sent: Friday, July 25, 2003 1:01 AM
> To: [EMAIL PROTECTED]
> Subject: RE: dialup_admin
>
>
> look pal, I am using FreeBSD and it can install php
> automatically and make
> it work! So I dont know also waht that does. I have searched
> in my WORKING
> httpd.conf file for php and found those, and concluded that for php to
> work, those must be set also! If you didnt of course set some
> stuff about
> your php after install
>
> Evren
>
> On Thu, 24 Jul 2003, Alex Chen wrote:
>
> > The LoadModule directive is already there.
> >
> > The AddModuleInfo needs two parameters.
> > There is no 'AddModule' directive.  I do not see how this
> > affects the web server.
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > > Yurtesen
> > > Sent: Thursday, July 24, 2003 3:12 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: dialup_admin
> > >
> > >
> > > I had similar problem.
> > > You should also have
> > >
> > > LoadModule php4_module libexec/apache/libphp4.so
> > >
> > > AddModule mod_php4.c
> > >
> > > My problem was that these were under a IfDefine SSL clause
> > > and I have started server without ssl (doh!)
> > >
> > > Evren
> > >


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


RE: dialup_admin

2003-07-25 Thread Evren Yurtesen
look pal, I am using FreeBSD and it can install php automatically and make
it work! So I dont know also waht that does. I have searched in my WORKING
httpd.conf file for php and found those, and concluded that for php to
work, those must be set also! If you didnt of course set some stuff about
your php after install

Evren

On Thu, 24 Jul 2003, Alex Chen wrote:

> The LoadModule directive is already there.
>
> The AddModuleInfo needs two parameters.
> There is no 'AddModule' directive.  I do not see how this
> affects the web server.
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Evren
> > Yurtesen
> > Sent: Thursday, July 24, 2003 3:12 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: dialup_admin
> >
> >
> > I had similar problem.
> > You should also have
> >
> > LoadModule php4_module libexec/apache/libphp4.so
> >
> > AddModule mod_php4.c
> >
> > My problem was that these were under a IfDefine SSL clause
> > and I have started server without ssl (doh!)
> >
> > Evren
> >
> > On Thu, 24 Jul 2003, Alex Chen wrote:
> >
> > > Barry,
> > >   What kind of MIME type should it be?
> > >
> > > I added the following directive
> > >
> > > AddType application/x-httpd-php .php3
> > >
> > > in /etc/httpd/conf.d/php.conf
> > >
> > > Stop and re-started the httpd.
> > >
> > > The result is still the same, nothing on the left pane, except the
> > > " > > dialup_admin/htdocs.
> > >
> > > Am I starting from the wrong HTML file?
> > >
> > > If configuring the Apache still fails, I may have to go to
> > the extreme by
> > > changing all the reference to php3 and file suffix to php,
> > as suggested by
> > > Truong Manh.
> > >
> > >
> > > > -Original Message-
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] Behalf Of
> > > > [EMAIL PROTECTED]
> > > > Sent: Thursday, July 24, 2003 7:36 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: dialup_admin
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > > > -Original Message-
> > > > >
> > > > > > I copied the dialup_admin directory to
> > /var/www/html/dialup_admin
> > > > > > Which I type the following URL in the browser, I got an
> > > > dialup_admin
> > > > > > image on the right and some text bearing  > on the left.
> > > > >
> > > > > When I had this problem, it was due to permissions not
> > > > being set correctly
> > > > > on the server, IIRC
> > > > >
> > > > > Andrew
> > > > >
> > > > When you get php code displayed and not parsed, 9/10 times its the
> > > > mime-types that are not setup correctly.
> > > >
> > > >
> > > > -
> > > > List info/subscribe/unsubscribe? See
> > > > http://www.freeradius.org/list/users.html
> > >
> > >
> > > -
> > > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> >
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
> -
> 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: dialup_admin

2003-07-24 Thread Alex Chen
The LoadModule directive is already there.

The AddModuleInfo needs two parameters.
There is no 'AddModule' directive.  I do not see how this
affects the web server.


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Evren
> Yurtesen
> Sent: Thursday, July 24, 2003 3:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: dialup_admin
>
>
> I had similar problem.
> You should also have
>
> LoadModule php4_module libexec/apache/libphp4.so
>
> AddModule mod_php4.c
>
> My problem was that these were under a IfDefine SSL clause
> and I have started server without ssl (doh!)
>
> Evren
>
> On Thu, 24 Jul 2003, Alex Chen wrote:
>
> > Barry,
> >   What kind of MIME type should it be?
> >
> > I added the following directive
> >
> > AddType application/x-httpd-php .php3
> >
> > in /etc/httpd/conf.d/php.conf
> >
> > Stop and re-started the httpd.
> >
> > The result is still the same, nothing on the left pane, except the
> > " > dialup_admin/htdocs.
> >
> > Am I starting from the wrong HTML file?
> >
> > If configuring the Apache still fails, I may have to go to
> the extreme by
> > changing all the reference to php3 and file suffix to php,
> as suggested by
> > Truong Manh.
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of
> > > [EMAIL PROTECTED]
> > > Sent: Thursday, July 24, 2003 7:36 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: dialup_admin
> > >
> > >
> > >
> > >
> > >
> > > > > -Original Message-
> > > >
> > > > > I copied the dialup_admin directory to
> /var/www/html/dialup_admin
> > > > > Which I type the following URL in the browser, I got an
> > > dialup_admin
> > > > > image on the right and some text bearing  on the left.
> > > >
> > > > When I had this problem, it was due to permissions not
> > > being set correctly
> > > > on the server, IIRC
> > > >
> > > > Andrew
> > > >
> > > When you get php code displayed and not parsed, 9/10 times its the
> > > mime-types that are not setup correctly.
> > >
> > >
> > > -
> > > List info/subscribe/unsubscribe? See
> > > http://www.freeradius.org/list/users.html
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>

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

2003-07-24 Thread Evren Yurtesen
I had similar problem.
You should also have

LoadModule php4_module libexec/apache/libphp4.so

AddModule mod_php4.c

My problem was that these were under a IfDefine SSL clause
and I have started server without ssl (doh!)

Evren

On Thu, 24 Jul 2003, Alex Chen wrote:

> Barry,
>   What kind of MIME type should it be?
>
> I added the following directive
>
> AddType application/x-httpd-php .php3
>
> in /etc/httpd/conf.d/php.conf
>
> Stop and re-started the httpd.
>
> The result is still the same, nothing on the left pane, except the
> " dialup_admin/htdocs.
>
> Am I starting from the wrong HTML file?
>
> If configuring the Apache still fails, I may have to go to the extreme by
> changing all the reference to php3 and file suffix to php, as suggested by
> Truong Manh.
>
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of
> > [EMAIL PROTECTED]
> > Sent: Thursday, July 24, 2003 7:36 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: dialup_admin
> >
> >
> >
> >
> >
> > > > -Original Message-
> > >
> > > > I copied the dialup_admin directory to /var/www/html/dialup_admin
> > > > Which I type the following URL in the browser, I got an
> > dialup_admin
> > > > image on the right and some text bearing  > >
> > > When I had this problem, it was due to permissions not
> > being set correctly
> > > on the server, IIRC
> > >
> > > Andrew
> > >
> > When you get php code displayed and not parsed, 9/10 times its the
> > mime-types that are not setup correctly.
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
>
>
> -
> 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: dialup_admin

2003-07-24 Thread Alex Chen
Barry,
  What kind of MIME type should it be?

I added the following directive

AddType application/x-httpd-php .php3

in /etc/httpd/conf.d/php.conf

Stop and re-started the httpd.

The result is still the same, nothing on the left pane, except the
" -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, July 24, 2003 7:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: dialup_admin
>
>
>
>
>
> > > -Original Message-
> >
> > > I copied the dialup_admin directory to /var/www/html/dialup_admin
> > > Which I type the following URL in the browser, I got an
> dialup_admin
> > > image on the right and some text bearing  >
> > When I had this problem, it was due to permissions not
> being set correctly
> > on the server, IIRC
> >
> > Andrew
> >
> When you get php code displayed and not parsed, 9/10 times its the
> mime-types that are not setup correctly.
>
>
> -
> 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: dialup_admin

2003-07-24 Thread Alex Chen
Thanks for the information, Manh.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of 
> Truong Manh
> Cuong
> Sent: Thursday, July 24, 2003 12:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: dialup_admin
> 
> 
> I use dialup_admin and then, I must rewrite all the code of 
> PHP files, to
> fix my need.
> 
> But I know your problem, and I know why and how to correct it.
> you should open /etc/php.ini and change
> global_register Off -> On
> rename *.php3 -> php4, you don'n need to change files in 
> /conf, /lib...,
> just all files in /dialup_admin directory.
> open all file *.php to edit and modify the name having in any 
> line code that
> you renamed. for example, /html/buttons/default/buttons.php3
> href="accounting.php3"  -> href="accounting.php
> 
> My English is still bad, do you understand what I mean ?
> 
> If you don't want to rename php3 -> php, you need to modify 
> /etc/php.ini so
> that httpd can accept php3, I don't remember which option, 
> you can search in
> mailling list because this question was asked by me and  
> there is a person
> replyed to help me. thanks him.
> 
> Manh Cuong.
> 
> 
> - Original Message -
> From: "Alex Chen" <[EMAIL PROTECTED]>
> To: "FreeRADIUS Users (E-mail)" <[EMAIL PROTECTED]>
> Sent: Thursday, July 24, 2003 2:14 PM
> Subject: dialup_admin
> 
> 
> > This question is not directly related to RADIUS, but
> > a utility 'dialup_admin' that ships with FreeRadius.
> >
> > I tried to use dialup_admin in Linux, but the browser (Microsoft IE)
> > did not show the page correctly.
> >
> > I copied the dialup_admin directory to /var/www/html/dialup_admin
> > Which I type the following URL in the browser, I got an dialup_admin
> > image on the right and some text bearing  >
> > According to the FAQ in dialup_admin, the php needs to be 
> configured to
> > handle files with php3 suffix.  I have changed the
> >  directive in /etc/httpd/conf.d/php.conf to
> >
> > from
> > 
> > to
> > 
> >
> > and restarted the httpd daemon. It still did not work.
> >
> > I would appreciate any help from someone who has successfully used
> > dialup_admin
> > from IE.
> >
> > Thanks.
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> 
> - 
> 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: dialup_admin

2003-07-24 Thread barry



> > -Original Message-
>
> > I copied the dialup_admin directory to /var/www/html/dialup_admin
> > Which I type the following URL in the browser, I got an dialup_admin
> > image on the right and some text bearing 
> When I had this problem, it was due to permissions not being set correctly
> on the server, IIRC
>
> Andrew
>
When you get php code displayed and not parsed, 9/10 times its the
mime-types that are not setup correctly.


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


RE: dialup_admin

2003-07-24 Thread Andrew Staples
> -Original Message-

> I copied the dialup_admin directory to /var/www/html/dialup_admin
> Which I type the following URL in the browser, I got an dialup_admin
> image on the right and some text bearing http://www.freeradius.org/list/users.html


Re: dialup_admin

2003-07-24 Thread Oliver Graf
On Thu, Jul 24, 2003 at 03:01:19PM +0700, Truong Manh Cuong wrote:
> sorry, rename *.php3 -> *.php

You don't really need to rename all files and change all links.

Apache has all the power to do it with one line of config for you (see
other mails in this thread).

Oliver.


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


Re: dialup_admin

2003-07-24 Thread Oliver Graf
On Thu, Jul 24, 2003 at 02:51:33PM +0700, Truong Manh Cuong wrote:
> If you don't want to rename php3 -> php, you need to modify /etc/php.ini so
> that httpd can accept php3, I don't remember which option, you can search in

Huh? The php.ini does not know anything about file extensions.

But the register globals thing is a good hint. Perhaps dialup_admin
(if it uses the globals) should be changed to use the 'new' (it's php4
and php5 is just to be released as beta...) way of accesing them...

Oliver.


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


Re: dialup_admin

2003-07-24 Thread Truong Manh Cuong
sorry, rename *.php3 -> *.php

> global_register Off -> On
> rename *.php3 -> php4, you don'n need to change files in /conf, /lib...,
> just all files in /dialup_admin directory.
> open all file *.php to edit and modify the name having in any line code
that
> you renamed. for example, /html/buttons/default/buttons.php3
> href="accounting.php3"  -> href="accounting.php
>
> My English is still bad, do you understand what I mean ?
>
> If you don't want to rename php3 -> php, you need to modify /etc/php.ini
so
> that httpd can accept php3, I don't remember which option, you can search
in
> mailling list because this question was asked by me and  there is a person
> replyed to help me. thanks him.
>
> Manh Cuong.
>


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


Re: dialup_admin

2003-07-24 Thread Truong Manh Cuong
IE is independent to script language (PHP,ASP,JSP) because these language is
server side based language. httpd will read php file, see if there is any
line code is PHP script, it will interpret to html format (tag) and send to
web browser client.
hope that will help you.
Manh Cuong.

- Original Message -
From: "Alex Chen" <[EMAIL PROTECTED]>
To: "FreeRADIUS Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 2:14 PM
Subject: dialup_admin


> This question is not directly related to RADIUS, but
> a utility 'dialup_admin' that ships with FreeRadius.
>
> I tried to use dialup_admin in Linux, but the browser (Microsoft IE)
> did not show the page correctly.
>
> I copied the dialup_admin directory to /var/www/html/dialup_admin
> Which I type the following URL in the browser, I got an dialup_admin
> image on the right and some text bearing 
> According to the FAQ in dialup_admin, the php needs to be configured to
> handle files with php3 suffix.  I have changed the
>  directive in /etc/httpd/conf.d/php.conf to
>
> from
> 
> to
> 
>
> and restarted the httpd daemon. It still did not work.
>
> I would appreciate any help from someone who has successfully used
> dialup_admin
> from IE.
>
> Thanks.
>
>
> -
> 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: dialup_admin

2003-07-24 Thread Truong Manh Cuong
I use dialup_admin and then, I must rewrite all the code of PHP files, to
fix my need.

But I know your problem, and I know why and how to correct it.
you should open /etc/php.ini and change
global_register Off -> On
rename *.php3 -> php4, you don'n need to change files in /conf, /lib...,
just all files in /dialup_admin directory.
open all file *.php to edit and modify the name having in any line code that
you renamed. for example, /html/buttons/default/buttons.php3
href="accounting.php3"  -> href="accounting.php

My English is still bad, do you understand what I mean ?

If you don't want to rename php3 -> php, you need to modify /etc/php.ini so
that httpd can accept php3, I don't remember which option, you can search in
mailling list because this question was asked by me and  there is a person
replyed to help me. thanks him.

Manh Cuong.


- Original Message -
From: "Alex Chen" <[EMAIL PROTECTED]>
To: "FreeRADIUS Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 2:14 PM
Subject: dialup_admin


> This question is not directly related to RADIUS, but
> a utility 'dialup_admin' that ships with FreeRadius.
>
> I tried to use dialup_admin in Linux, but the browser (Microsoft IE)
> did not show the page correctly.
>
> I copied the dialup_admin directory to /var/www/html/dialup_admin
> Which I type the following URL in the browser, I got an dialup_admin
> image on the right and some text bearing 
> According to the FAQ in dialup_admin, the php needs to be configured to
> handle files with php3 suffix.  I have changed the
>  directive in /etc/httpd/conf.d/php.conf to
>
> from
> 
> to
> 
>
> and restarted the httpd daemon. It still did not work.
>
> I would appreciate any help from someone who has successfully used
> dialup_admin
> from IE.
>
> Thanks.
>
>
> -
> 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: dialup_admin

2003-07-24 Thread Oliver Graf
On Thu, Jul 24, 2003 at 12:33:40AM -0700, Alex Chen wrote:
> I think IE should support PHP, otherwise 80% of the browser will fail to
> display

think again. php is a server side scripting language. what should ie
possible have to do with it? short answer: nothing!

> PHP page.  That's why I suspect some configuration problem in the Apache.
> Unfortunately, I am not an Apache expert and do not know what configuration
> file
> to tune.

Read my last mail. Read apache docs. Read php docs.

And: reading apache logs won't hurt also.

Oliver.

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


RE: dialup_admin

2003-07-24 Thread Alex Chen


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Oliver Graf
> Sent: Thursday, July 24, 2003 12:21 AM
> To: FreeRADIUS Users (E-mail)
> Subject: Re: dialup_admin
>
>
> On Thu, Jul 24, 2003 at 12:14:57AM -0700, Alex Chen wrote:
> > This question is not directly related to RADIUS, but
> > a utility 'dialup_admin' that ships with FreeRadius.
> >
> > I tried to use dialup_admin in Linux, but the browser (Microsoft IE)
> > did not show the page correctly.
>
> Huh? IE for Linux?
>
No, I meant the dialup_admin runs on Linux, but I used IE browser to
view the 'index.html' under htdocs directory.

>From the IE, I could see two panes. The right pane is a dialup_admin image
file
and on the left pane, it shows the php script source text, not the
rendering.

I think IE should support PHP, otherwise 80% of the browser will fail to
display
PHP page.  That's why I suspect some configuration problem in the Apache.
Unfortunately, I am not an Apache expert and do not know what configuration
file
to tune.


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


Re: dialup_admin

2003-07-24 Thread Oliver Graf
On Thu, Jul 24, 2003 at 12:14:57AM -0700, Alex Chen wrote:
> This question is not directly related to RADIUS, but
> a utility 'dialup_admin' that ships with FreeRadius.
> 
> I tried to use dialup_admin in Linux, but the browser (Microsoft IE)
> did not show the page correctly.

Huh? IE for linux?

> I copied the dialup_admin directory to /var/www/html/dialup_admin
> Which I type the following URL in the browser, I got an dialup_admin
> image on the right and some text bearing  
> According to the FAQ in dialup_admin, the php needs to be configured to
> handle files with php3 suffix.  I have changed the
>  directive in /etc/httpd/conf.d/php.conf to
> 
> from
> 
> to
> 

> and restarted the httpd daemon. It still did not work.

does it work with mozilla, lynx, etc? if yes: it's an IE bug. If no:
you need to configure your apache to handle .php3 files.

The correct way (using php4) is:
AddType application/x-httpd-php .php3

The Files section probably only sets some mod_php params. Like this:
  
LimitRequestBody 524288
RequestHeader unset If-Modified-Since


Regards,
  Oliver.


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


Re: dialup_admin user_admin.php3

2003-07-16 Thread Kostas Kalevras
On Tue, 15 Jul 2003, alantu wrote:

> freeradius-users
>
> In the dialup_admin gui ,if anyone want to edit the user,he only need to input 
> the user name and do it.
> I find that in the user edit file "user_admin.php3" only need the username without 
> username passwd.
> Do anyone know how to chage when someone wants to edit user he should input the 
> username and the user passwd?
> i am fool with php

It's a little bit complicated.
In any case dialupadmin is an interface for admins. You are not supposed to
provide the user password to make changes.

>
>   Thanks
> alantu
> [EMAIL PROTECTED]
> 
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


RE: Dialup_admin problems

2003-06-30 Thread Rob Simkins
Hi Andrew/list,

Sorry I do not have a response to your question, I am developing
something very similar to your system.

I was wondering if you would mind me asking you questions when I get
stuck. This is my first SQL/RADIUS project and I was hoping to get some
direction from this list. I need to develop a hotspot management system
for wifipod (my new employer) so that we can authenticate and bill
users.

We were looking at FUNK SBR but we would obviously prefer to save money
and do it in-house. We want to use Colubris CN3000s at the hotspot
locations and use the "white pages" as web-portals to get the user info
to our MySQL database at our HQ. This can then be authenticated using
RADIUS.

It is the initial stage of the project so we are looking at feasibility
and timelines right now.

How long do you think it would take me to do assuming I can create
decent tables and I am new to FreeRADIUS development?

All the best,

Rob


[EMAIL PROTECTED]
www.wifipod.com

NuBlu Technologies
Gostin Building
32/36 Hanover St
Liverpool, UK
L1 4LN

T: +44 151 705 2074



> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Andrew Staples

> I'm trying to configure a backup radius server (the first one 
> is working
> well).   I've pretty much duplicated the first working 
> system, but having
> problems with dialup_admin.
> 
> Although there are users/groups in the mysql db, dialup_admin 
> can't find/display them.  Adding new users via dialup_admin 
> fails, as they are not written to the database.
> 
> Other things fail, such as "check server"...I get a user test 
> page, instead of radcheck.
> 
> I've tried using the root user in admin.conf, but that didn't 
> fix the problem.
> 
> I believe radius and rlm_sql  are fine; result of radtest:
> 
> Sending Access-Request of id 253 to 127.0.0.1:1812
> User-Name = "fred"
> User-Password = "\001\37o\327$\n\344\202\261\t\374\313\277a7"
> NAS-IP-Address = radius2.nwnetcom.com
> NAS-Port = 1812
> rad_recv: Access-Accept packet from host 127.0.0.1:1812, 
> id=253, length=44
> Framed-Compression = Van-Jacobson-TCP-IP
> Framed-Protocol = PPP
> Service-Type = Framed-User
> Framed-MTU = 1500
> 
> I've enabled sqltrace in sql.conf, but I can't locate that 
> file, so it probably isn't being written.
> 
> Can anyone point me in the right direction?  Is this a 
> permissions thing on the dialup_admin directory?
> 
> Thanks,
> Andrew
> 
> 
> - 
> 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: Dialup_admin problems

2003-06-27 Thread Andrew Staples
Found the problem, in case this helps anyone elsethis test box was
behind a firewall, and ServerName in httpd.conf was set to the internal
private ip address.

Andrew

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Andrew Staples
> Sent: Friday, June 27, 2003 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Dialup_admin problems
> 
> 
> I'm trying to configure a backup radius server (the first one 
> is working
> well).   I've pretty much duplicated the first working 
> system, but having
> problems with dialup_admin.
> 
> Although there are users/groups in the mysql db, dialup_admin 
> can't find/display them.  Adding new users via dialup_admin 
> fails, as they are not written to the database.
> 
> Other things fail, such as "check server"...I get a user test 
> page, instead of radcheck.
> 
> I've tried using the root user in admin.conf, but that didn't 
> fix the problem.
> 
> I believe radius and rlm_sql  are fine; result of radtest:
> 
> Sending Access-Request of id 253 to 127.0.0.1:1812
> User-Name = "fred"
> User-Password = "\001\37o\327$\n\344\202\261\t\374\313\277a7"
> NAS-IP-Address = radius2.nwnetcom.com
> NAS-Port = 1812
> rad_recv: Access-Accept packet from host 127.0.0.1:1812, 
> id=253, length=44
> Framed-Compression = Van-Jacobson-TCP-IP
> Framed-Protocol = PPP
> Service-Type = Framed-User
> Framed-MTU = 1500
> 
> I've enabled sqltrace in sql.conf, but I can't locate that 
> file, so it probably isn't being written.
> 
> Can anyone point me in the right direction?  Is this a 
> permissions thing on the dialup_admin directory?
> 
> Thanks,
> Andrew
> 
> 
> - 
> 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: dialup_admin w/ postgre..

2003-06-20 Thread Kostas Kalevras
On Wed, 18 Jun 2003, twomsman wrote:

>
> Hello Lister...
>
> any one has successfully deploy dialup_admin w/ postgre backend. I have
> problems when deploy it:
>
> 1. I tried  many times and when i create a user using dialup_admin  there is
> a message say "Could not connect to SQL database". FYI I have set the
> postgre to listen to TCP socket (with -i options). I set the
> user,password,host=localhost,table etc. The message always show up.

Do you see anything in your db log file?
Post the sql_* directives of admin.conf
Enable sql debug in dialupadmin

In general I haven't tested postgresql support for dialupadmin so I am not sure
how well it works.

>
> 2. I cannot use the sql command in /sql dir into postgre. Aways error. any
> one has the right sql command for postgre?

What's the error? Can't help you much on that though.

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

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

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


Re: dialup_admin user_finger.php3 can not display user ip addr

2003-06-05 Thread Kostas Kalevras
On Thu, 5 Jun 2003, alantu wrote:

> dialup_admin user_finger.php3 can not display user ip addr

So, check that the nas is sending the user ip in the accounting start. A lot of
times it will not (for instance in cisco access servers you either need to
enable accounting updates or delayed accounting starts).

>
>
> alantu
> [EMAIL PROTECTED]
>   2003-06-05
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin - User Statistics - Nothing displayed

2003-04-06 Thread tarvid
On Sunday 06 April 2003 09:50, Kostas Kalevras wrote:
> On Sun, 6 Apr 2003, tarvid wrote:
> > The CVS from today is starting to come up but selecting User Statistics
> > displays nothing.
> >
> > With SQL debug on
> >
> > DEBUG(SQL,MYSQL DRIVER): Query: SELECT * FROM WHERE AcctDate >=
> > '2003-03-30' AND AcctDate <= '2003-04-06' ORDER BY ConnNum desc LIMIT 10;
> >
> > The code from user_stats.php3:
> >
> >  "SELECT * FROM $config[sql_total_accounting_table]
> > WHERE AcctDate >= '$start' AND AcctDate <= '$stop' $server_str
> > ORDER BY $order_attr $order $limit;");
> >
> > But sql_total_accounting_table is not defined.
> >
> > [EMAIL PROTECTED] conf]# grep sql_total_accounting_table *
> > [EMAIL PROTECTED] conf]#
>
> Fixed, thanks
>
> > Even if it were, I have nothing in either totacct nor mtotacct.
>
> You will have to run tot_stats (for totacct) and monthly_tot_stats (for
> mtotacct).
>
> > Jim Tarvid
> >
I presume I should put tot-stats and monthly_tot_stats in cron somewhere.

Where should I get the patch fo sql_total_accounting_table?

Thanks,

Jim Tarvid


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


Re: dialup_admin - User Statistics - Nothing displayed

2003-04-06 Thread Kostas Kalevras
On Sun, 6 Apr 2003, tarvid wrote:

> The CVS from today is starting to come up but selecting User Statistics
> displays nothing.
>
> With SQL debug on
>
> DEBUG(SQL,MYSQL DRIVER): Query: SELECT * FROM WHERE AcctDate >= '2003-03-30'
> AND AcctDate <= '2003-04-06' ORDER BY ConnNum desc LIMIT 10;
>
> The code from user_stats.php3:
>
>  "SELECT * FROM $config[sql_total_accounting_table]
> WHERE AcctDate >= '$start' AND AcctDate <= '$stop' $server_str
> ORDER BY $order_attr $order $limit;");
>
> But sql_total_accounting_table is not defined.
>
> [EMAIL PROTECTED] conf]# grep sql_total_accounting_table *
> [EMAIL PROTECTED] conf]#

Fixed, thanks

>
> Even if it were, I have nothing in either totacct nor mtotacct.

You will have to run tot_stats (for totacct) and monthly_tot_stats (for
mtotacct).

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

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

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


Re: DialUp_Admin

2003-03-27 Thread Kostas Kalevras
On Thu, 27 Mar 2003, Travis Best wrote:

> I am using the dialup_admin but the online users option is not working i
> have it set to read the radacct per the instructions in the admin.conf
> anyone have any experiance with this?

Are you sure accounting is working correctly?
Try enabling sql debug and see what gets returned from the sql queries (sql
debug is available in the latest cvs).

>
> --
>
> Travis M. Best  "Systems Administrator"
> SunQwest Internet Services
> 1040 Walnut St
> Sunbury, PA 17801
> Phone: 866-344-9509
> Direct: 570-279-1746
>
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by SunQwest MailScanner, and
> is believed to be clean.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin and changing user groups

2003-03-24 Thread Kostas Kalevras
On Tue, 18 Mar 2003, Nick Lomonte wrote:

> When editing a users attributes, the "Member of" dropdown list only
> shows the group they are in, it doesn't show the other available groups
> in order to change their membership.

That's what the edit group page is for.

>
> --
> Nick Lomonte
> Network Engineer
> Eonet
> [EMAIL PROTECTED]
> 409.833.1700
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin and large groups

2003-03-11 Thread Kostas Kalevras
On Tue, 11 Mar 2003, Nick Lomonte wrote:

> My main group has about 3800 users in it. From the web interface if I
> click on 'show groups' and then click on that group, it just sits there
> and eventually times out.  Running the latest CVS on a redhat 7.3
> machine.  The other groups with fewer members work fine.  I'm assuming
> this has something to do with the fact that it displays all the group
> members on the group edit page (why?).

Because I 'm using ldap and sql support was added just to make dialup_admin more
useful.

>  Is there any way to work around
> this?

Without source code patches, no.

>
>
> --
> Nick Lomonte
> Network Engineer
> Eonet
> [EMAIL PROTECTED]
> 409.833.1700
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


Re: dialup_admin and large groups

2003-03-11 Thread twebster

Nick,

Sounds like the php page is timing out.  Default is 30 seconds.  Try to up
the max_execution_time in your php.ini file

good luck,

Tony


|-+--->
| |   Nick Lomonte|
| |   <[EMAIL PROTECTED]>|
| |   Sent by:|
| |   [EMAIL PROTECTED]|
| |   .cistron.nl |
| |   |
| |   |
| |   03/11/2003 09:14 AM |
| |   Please respond to   |
| |   freeradius-users|
| |   |
|-+--->
  
>--|
  |
  |
  |   To:   [EMAIL PROTECTED]  
  |
  |   cc:  
  |
  |   Subject:  dialup_admin and large groups  
  |
  
>--|




My main group has about 3800 users in it. From the web interface if I
click on 'show groups' and then click on that group, it just sits there
and eventually times out.  Running the latest CVS on a redhat 7.3
machine.  The other groups with fewer members work fine.  I'm assuming
this has something to do with the fact that it displays all the group
members on the group edit page (why?).  Is there any way to work around
this?


--
Nick Lomonte
Network Engineer
Eonet
[EMAIL PROTECTED]
409.833.1700


-
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: Dialup_admin (...or smth else) not working properly

2003-03-11 Thread Redi Tela
Hello,

It still doesn't work. Those php scripts wont talk to mysql database. I
guess there should smth wrong with my apache server, or php support,
probably I will have to reinstall itthat's a big headache.

Anyway, thanks a lot for your help

Redi

Redi Tela
Systems Administrator
Mail [EMAIL PROTECTED]
Phone: +355-4-256-001
Fax: +355-4-256-002
Mob: +355-69-20-80-710



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kostas
Kalevras
Sent: Monday, March 10, 2003 11:26 PM
To: [EMAIL PROTECTED]
Subject: RE: Dialup_admin (...or smth else) not working properly


On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
>
> Safe_mode was already off and register_globals was on. I tried 
> dialup_admin from freeradius-snapshot-20030310 but now looks even 
> worse: now I get a blank frame when I click over 'New Group'. I set 
> sql_debug = true, but where can I see the output of this?

If you get a blank frame there's probably something wrong with your
directories. My suggestion is to put dialup_admin in something like
/usr/local/dialupadmin and make a link from your htdocs directory to
dialup_admin/htdocs: ln -s /usr/local/dialupadmin/htdocs
/htdocs/dialupadmin

The output of sql debugging will show in the dialup_admin pages.

>
> Best Regards
>
> Redi
>
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kostas 
> Kalevras
> Sent: Monday, March 10, 2003 3:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Dialup_admin (...or smth else) not working properly
>
>
> On Mon, 10 Mar 2003, Redi Tela wrote:
>
> > Hello,
> >
> > I'm using v0.81. Here is what I changed under ../conf/admin.conf
> >
> > general_base_dir: /path/to/www/radius
> > general_radiusd_base_dir: /usr/local/sbin/radiusd
> > general_domain: somedomain.org.al
> >
> >
> > sql_type: mysql
> > sql_server: localhost
> > sql_port: 3306
> > sql_username: root
> > 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
> > sql_groupcheck_table: radgroupcheck
> > sql_groupreply_table: radgroupreply
> > sql_usergroup_table: usergroup
> >
> > But if there is a problem, I guess I should see some message under 
> > httpd/error_log. How can I set safe mode off in the phpserver? I'm 
> > using apache-1.3.22 and php4.1.2.
>
> You can set safe_mode to Off by changing the corresponding directive 
> in your php.ini file. Also check that register_globals is set to on.
>
> I would suggest using the dialup_admin included in the latest cvs. It 
> has a lot of bug fixes and new features and you can also enable 
> sql_debug and see exactly what is happening.
>
> >
> > Till now I'm using Icradius, but it will be great if I make this 
> > work,
>
> > as it has some more neat features.
> >
> > Best Regards,
> >
> > Redi
> >
> >
> >
> > Redi Tela
> > Systems Administrator
> > Mail [EMAIL PROTECTED]
> > Phone: +355-4-256-001
> > Fax: +355-4-256-002
> > Mob: +355-69-20-80-710
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Evren 
> > Yurtesen
> > Sent: Monday, March 10, 2003 11:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Dialup_admin (...or smth else) not working properly
> >
> >
> > Well if you dont see any error messages then perhaps you might try 
> > to set safe mode off in your php server although it is not safe if 
> > you have your customers accessing the same server for web hosting 
> > etc. But
>
> > little earlier version of dialup_admin had this problem. But the one

> > with 0.81 must have the fixed one though. Did you set the conf files

> > etc. of dialup admin?
> >
> > Evren
> >
> > On Mon, 10 Mar 2003, Redi Tela wrote:
> >
> > > Hello,
> > >
> > > I just installed freeradius 0.81 with mysql on a Redhat 7.1 
> > > machine.
>
> > > Everything seems to be working properly except for the web 
> > > interface. Dialup_admin doesn't interact properly with freeradius 
> > > and mysql, ex. When I try to add a new group, it doesn't show 
> > > anything, or when I try
> >
> > 

RE: Dialup_admin (...or smth else) not working properly

2003-03-10 Thread Kostas Kalevras
On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
>
> Safe_mode was already off and register_globals was on. I tried
> dialup_admin from freeradius-snapshot-20030310 but now looks even worse:
> now I get a blank frame when I click over 'New Group'. I set sql_debug =
> true, but where can I see the output of this?

If you get a blank frame there's probably something wrong with your directories.
My suggestion is to put dialup_admin in something like
/usr/local/dialupadmin
and make a link from your htdocs directory to dialup_admin/htdocs:
ln -s /usr/local/dialupadmin/htdocs /htdocs/dialupadmin

The output of sql debugging will show in the dialup_admin pages.

>
> Best Regards
>
> Redi
>
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Kostas
> Kalevras
> Sent: Monday, March 10, 2003 3:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Dialup_admin (...or smth else) not working properly
>
>
> On Mon, 10 Mar 2003, Redi Tela wrote:
>
> > Hello,
> >
> > I'm using v0.81. Here is what I changed under ../conf/admin.conf
> >
> > general_base_dir: /path/to/www/radius
> > general_radiusd_base_dir: /usr/local/sbin/radiusd
> > general_domain: somedomain.org.al
> >
> >
> > sql_type: mysql
> > sql_server: localhost
> > sql_port: 3306
> > sql_username: root
> > 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
> > sql_groupcheck_table: radgroupcheck
> > sql_groupreply_table: radgroupreply
> > sql_usergroup_table: usergroup
> >
> > But if there is a problem, I guess I should see some message under
> > httpd/error_log. How can I set safe mode off in the phpserver? I'm
> > using apache-1.3.22 and php4.1.2.
>
> You can set safe_mode to Off by changing the corresponding directive in
> your php.ini file. Also check that register_globals is set to on.
>
> I would suggest using the dialup_admin included in the latest cvs. It
> has a lot of bug fixes and new features and you can also enable
> sql_debug and see exactly what is happening.
>
> >
> > Till now I'm using Icradius, but it will be great if I make this work,
>
> > as it has some more neat features.
> >
> > Best Regards,
> >
> > Redi
> >
> >
> >
> > Redi Tela
> > Systems Administrator
> > Mail [EMAIL PROTECTED]
> > Phone: +355-4-256-001
> > Fax: +355-4-256-002
> > Mob: +355-69-20-80-710
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Evren
> > Yurtesen
> > Sent: Monday, March 10, 2003 11:41 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Dialup_admin (...or smth else) not working properly
> >
> >
> > Well if you dont see any error messages then perhaps you might try to
> > set safe mode off in your php server although it is not safe if you
> > have your customers accessing the same server for web hosting etc. But
>
> > little earlier version of dialup_admin had this problem. But the one
> > with 0.81 must have the fixed one though. Did you set the conf files
> > etc. of dialup admin?
> >
> > Evren
> >
> > On Mon, 10 Mar 2003, Redi Tela wrote:
> >
> > > Hello,
> > >
> > > I just installed freeradius 0.81 with mysql on a Redhat 7.1 machine.
>
> > > Everything seems to be working properly except for the web
> > > interface. Dialup_admin doesn't interact properly with freeradius
> > > and mysql, ex. When I try to add a new group, it doesn't show
> > > anything, or when I try
> >
> > > to add a new user, it doesn't add anything to the mysql database. In
>
> > > the archive I read somewhere to use the latest CVS, but when I click
>
> > > that link on the freeradius.org, it shows an error.
> > >
> > > Any help will be much appreciated,
> > >
> > > Best Regards,
> > >
> > > Redi
> > >
> > > Redi Tela
> > > Systems Administrator
> > > Mail [EMAIL PROTECTED]
> > > Phone: +355-4-256-001
> > > Fax: +355-4-256-002
> > > Mob: +355-69-20-80-710
> > >
> > >
> > >
> > >
> > > -
> &

RE: Dialup_admin (...or smth else) not working properly

2003-03-10 Thread Redi Tela
Hello,

Safe_mode was already off and register_globals was on. I tried
dialup_admin from freeradius-snapshot-20030310 but now looks even worse:
now I get a blank frame when I click over 'New Group'. I set sql_debug =
true, but where can I see the output of this?

Best Regards

Redi

Redi Tela
Systems Administrator
Mail [EMAIL PROTECTED]
Phone: +355-4-256-001
Fax: +355-4-256-002
Mob: +355-69-20-80-710



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kostas
Kalevras
Sent: Monday, March 10, 2003 3:55 PM
To: [EMAIL PROTECTED]
Subject: RE: Dialup_admin (...or smth else) not working properly


On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
>
> I'm using v0.81. Here is what I changed under ../conf/admin.conf
>
> general_base_dir: /path/to/www/radius
> general_radiusd_base_dir: /usr/local/sbin/radiusd
> general_domain: somedomain.org.al
>
>
> sql_type: mysql
> sql_server: localhost
> sql_port: 3306
> sql_username: root
> 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
> sql_groupcheck_table: radgroupcheck
> sql_groupreply_table: radgroupreply
> sql_usergroup_table: usergroup
>
> But if there is a problem, I guess I should see some message under 
> httpd/error_log. How can I set safe mode off in the phpserver? I'm 
> using apache-1.3.22 and php4.1.2.

You can set safe_mode to Off by changing the corresponding directive in
your php.ini file. Also check that register_globals is set to on.

I would suggest using the dialup_admin included in the latest cvs. It
has a lot of bug fixes and new features and you can also enable
sql_debug and see exactly what is happening.

>
> Till now I'm using Icradius, but it will be great if I make this work,

> as it has some more neat features.
>
> Best Regards,
>
> Redi
>
>
>
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
>
>
>
> -Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Evren 
> Yurtesen
> Sent: Monday, March 10, 2003 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Dialup_admin (...or smth else) not working properly
>
>
> Well if you dont see any error messages then perhaps you might try to 
> set safe mode off in your php server although it is not safe if you 
> have your customers accessing the same server for web hosting etc. But

> little earlier version of dialup_admin had this problem. But the one 
> with 0.81 must have the fixed one though. Did you set the conf files 
> etc. of dialup admin?
>
> Evren
>
> On Mon, 10 Mar 2003, Redi Tela wrote:
>
> > Hello,
> >
> > I just installed freeradius 0.81 with mysql on a Redhat 7.1 machine.

> > Everything seems to be working properly except for the web 
> > interface. Dialup_admin doesn't interact properly with freeradius 
> > and mysql, ex. When I try to add a new group, it doesn't show 
> > anything, or when I try
>
> > to add a new user, it doesn't add anything to the mysql database. In

> > the archive I read somewhere to use the latest CVS, but when I click

> > that link on the freeradius.org, it shows an error.
> >
> > Any help will be much appreciated,
> >
> > Best Regards,
> >
> > Redi
> >
> > Redi Tela
> > Systems Administrator
> > Mail [EMAIL PROTECTED]
> > Phone: +355-4-256-001
> > Fax: +355-4-256-002
> > Mob: +355-69-20-80-710
> >
> >
> >
> >
> > -
> > List info/subscribe/unsubscribe? See 
> > http://www.freeradius.org/list/users.html
> >
>
>
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
>
>
>
>
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]   National Technical University of Athens, Greece
Work Phone: +30 210 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


RE: Dialup_admin (...or smth else) not working properly

2003-03-10 Thread Kostas Kalevras
On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
>
> I'm using v0.81. Here is what I changed under ../conf/admin.conf
>
> general_base_dir: /path/to/www/radius
> general_radiusd_base_dir: /usr/local/sbin/radiusd
> general_domain: somedomain.org.al
>
>
> sql_type: mysql
> sql_server: localhost
> sql_port: 3306
> sql_username: root
> 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
> sql_groupcheck_table: radgroupcheck
> sql_groupreply_table: radgroupreply
> sql_usergroup_table: usergroup
>
> But if there is a problem, I guess I should see some message under
> httpd/error_log. How can I set safe mode off in the phpserver? I'm using
> apache-1.3.22 and php4.1.2.

You can set safe_mode to Off by changing the corresponding directive in your
php.ini file.
Also check that register_globals is set to on.

I would suggest using the dialup_admin included in the latest cvs. It has a lot
of bug fixes and new features and you can also enable sql_debug and see exactly
what is happening.

>
> Till now I'm using Icradius, but it will be great if I make this work,
> as it has some more neat features.
>
> Best Regards,
>
> Redi
>
>
>
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Evren
> Yurtesen
> Sent: Monday, March 10, 2003 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Dialup_admin (...or smth else) not working properly
>
>
> Well if you dont see any error messages then perhaps you might try to
> set safe mode off in your php server although it is not safe if you have
> your customers accessing the same server for web hosting etc. But little
> earlier version of dialup_admin had this problem. But the one with 0.81
> must have the fixed one though. Did you set the conf files etc. of
> dialup admin?
>
> Evren
>
> On Mon, 10 Mar 2003, Redi Tela wrote:
>
> > Hello,
> >
> > I just installed freeradius 0.81 with mysql on a Redhat 7.1 machine.
> > Everything seems to be working properly except for the web interface.
> > Dialup_admin doesn't interact properly with freeradius and mysql, ex.
> > When I try to add a new group, it doesn't show anything, or when I try
>
> > to add a new user, it doesn't add anything to the mysql database. In
> > the archive I read somewhere to use the latest CVS, but when I click
> > that link on the freeradius.org, it shows an error.
> >
> > Any help will be much appreciated,
> >
> > Best Regards,
> >
> > Redi
> >
> > Redi Tela
> > Systems Administrator
> > Mail [EMAIL PROTECTED]
> > Phone: +355-4-256-001
> > Fax: +355-4-256-002
> > Mob: +355-69-20-80-710
> >
> >
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> >
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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


RE: Dialup_admin (...or smth else) not working properly

2003-03-10 Thread Redi Tela
Hello,

I'm using v0.81. Here is what I changed under ../conf/admin.conf

general_base_dir: /path/to/www/radius
general_radiusd_base_dir: /usr/local/sbin/radiusd
general_domain: somedomain.org.al


sql_type: mysql
sql_server: localhost
sql_port: 3306
sql_username: root
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
sql_groupcheck_table: radgroupcheck
sql_groupreply_table: radgroupreply
sql_usergroup_table: usergroup

But if there is a problem, I guess I should see some message under
httpd/error_log. How can I set safe mode off in the phpserver? I'm using
apache-1.3.22 and php4.1.2.

Till now I'm using Icradius, but it will be great if I make this work,
as it has some more neat features.

Best Regards,

Redi



Redi Tela
Systems Administrator
Mail [EMAIL PROTECTED]
Phone: +355-4-256-001
Fax: +355-4-256-002
Mob: +355-69-20-80-710



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Evren
Yurtesen
Sent: Monday, March 10, 2003 11:41 AM
To: [EMAIL PROTECTED]
Subject: Re: Dialup_admin (...or smth else) not working properly


Well if you dont see any error messages then perhaps you might try to
set safe mode off in your php server although it is not safe if you have
your customers accessing the same server for web hosting etc. But little
earlier version of dialup_admin had this problem. But the one with 0.81
must have the fixed one though. Did you set the conf files etc. of
dialup admin?

Evren

On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
> 
> I just installed freeradius 0.81 with mysql on a Redhat 7.1 machine.
> Everything seems to be working properly except for the web interface. 
> Dialup_admin doesn't interact properly with freeradius and mysql, ex. 
> When I try to add a new group, it doesn't show anything, or when I try

> to add a new user, it doesn't add anything to the mysql database. In 
> the archive I read somewhere to use the latest CVS, but when I click 
> that link on the freeradius.org, it shows an error.
> 
> Any help will be much appreciated,
> 
> Best Regards,
> 
> Redi
> 
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
> 
> 
> 
> 
> -
> List info/subscribe/unsubscribe? See 
> http://www.freeradius.org/list/users.html
> 


- 
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: Dialup_admin (...or smth else) not working properly

2003-03-10 Thread Evren Yurtesen
Well if you dont see any error messages then perhaps you might try to set
safe mode off in your php server although it is not safe if you have your
customers accessing the same server for web hosting etc. But little
earlier version of dialup_admin had this problem. But the one with 0.81
must have the fixed one though. Did you set the conf files etc. of dialup
admin?

Evren

On Mon, 10 Mar 2003, Redi Tela wrote:

> Hello,
> 
> I just installed freeradius 0.81 with mysql on a Redhat 7.1 machine.
> Everything seems to be working properly except for the web interface.
> Dialup_admin doesn't interact properly with freeradius and mysql, ex.
> When I try to add a new group, it doesn't show anything, or when I try
> to add a new user, it doesn't add anything to the mysql database. In the
> archive I read somewhere to use the latest CVS, but when I click that
> link on the freeradius.org, it shows an error.
> 
> Any help will be much appreciated,
> 
> Best Regards,
> 
> Redi 
> 
> Redi Tela
> Systems Administrator
> Mail [EMAIL PROTECTED]
> Phone: +355-4-256-001
> Fax: +355-4-256-002
> Mob: +355-69-20-80-710
> 
> 
> 
> 
> - 
> 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: Dialup_admin questions

2003-02-05 Thread Kostas Kalevras
On Wed, 5 Feb 2003, Andrew Staples wrote:

>
>
> > -Original Message-
> > Kostas Kalevras
> >
> > Dialup-Access is an attribute used by the ldap module. It is
> > not implemented in the sql module, that's why the mapping is
> > set to none. You could set Auth-Type to Reject instead.
>
> [snip]
> >
> > So, the badusers table is used to keep bad account history,
> > not to disable user accounts.
>
> Thanks, Kostas,  for the info.  Setting to reject caused the field to
> appear.
>
>
> Also, just wondering why the personal information fields show multiple
> entries for attributes like name, department, etc:
> name
> name ()  -
> department  -
> department ()
> title  -
> title ()
>
> I see that both these attributes are for ldap only, although changing their
> settings does affect the display:
> general_prefered_lang:
> general_prefered_lang_name:
>
> Is there a way to remove the duplicate fields in the display?

Set general_prefered_lang to en

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

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

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



RE: Dialup_admin questions

2003-02-05 Thread Andrew Staples


> -Original Message-
> Kostas Kalevras
> 
> Dialup-Access is an attribute used by the ldap module. It is 
> not implemented in the sql module, that's why the mapping is 
> set to none. You could set Auth-Type to Reject instead.

[snip]
> 
> So, the badusers table is used to keep bad account history, 
> not to disable user accounts.

Thanks, Kostas,  for the info.  Setting to reject caused the field to
appear. 


Also, just wondering why the personal information fields show multiple
entries for attributes like name, department, etc:
name  
name ()  -  
department  -  
department ()  
title  -  
title ()  

I see that both these attributes are for ldap only, although changing their
settings does affect the display:
general_prefered_lang:
general_prefered_lang_name:

Is there a way to remove the duplicate fields in the display?


Thanks again 
Andrew


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



Re: Dialup_admin questions

2003-02-05 Thread Kostas Kalevras
On Wed, 5 Feb 2003, Andrew Staples wrote:

> Admitted newbie to radius/freeradius, the book is on order.
>
> Freeradius is installed and working with mysql.  However:
>
> 1.  Even though I have uncommented Dialup-Access in user_edits.attrs, when
> editing a user, that field is not available.  Is this because in sql.attrmap
> I have:
>
> checkItem Dialup-Access   none
>
> What should the attribute be?

Dialup-Access is an attribute used by the ldap module. It is not implemented in
the sql module, that's why the mapping is set to none.
You could set Auth-Type to Reject instead.

>
> 2. Since the dialup-access isn't working for me, I thought that I could
> easily disable an account by moving a user to the badusers table.  This
> seems to be one-way, i.e. once the user is in badusers is there a way to
> move them back via dialup_admin?

>From the dialup_admin/README file (which is included in the dialup_admin help
page):

* sql/badusers.sql: It will create a table named badusers which can be used to
  hold the history for badusers (date,action)

So, the badusers table is used to keep bad account history, not to disable user
accounts.

>
> 3.  Testing the software with ntradping (v1.2) connects to the server on
> port 1812, but any requests (such as server status) return a "no response
> from server (time out)" message.  I know the server is responding, since
> changing the port gives me a completely different error.

Run the radius server in debug mode: radiusd -X

>
> If these answers are documented, I need to be bitch-slapped.  I've seached
> the mailing-list archives, and the docs.
>
>
> Thanks,
>
> Andrew Staples
>
>
> A great many people think they are thinking when they are merely rearranging
>
> their prejudices. -- William James
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

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



[OT] Re: Dialup_admin

2003-01-21 Thread Simon White
20-Jan-03 at 16:55, System Administrator ([EMAIL PROTECTED]) wrote :
> using apache 2.0   seems to be different setup
> then what I am used to

Apache2 + PHP is still in experimental IIRC

It may not work as expected.

-- 
|-Simon White, Internet Services Manager, Certified Check Point CCSA.
|-MTDS  Internet, Security, Anti-Virus, Linux and Hosting Solutions.
|-MTDS  14, rue du 16 novembre, Agdal, Rabat, Morocco.
|-MTDS  tel +212.3.767.4861 - fax +212.3.767.4863

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



Re: Dialup_admin

2003-01-20 Thread System Administrator
using apache 2.0   seems to be different setup
then what I am used to

thanks for the tip though
- Original Message -
From: "Duane Barnes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 20, 2003 3:02 PM
Subject: RE: Dialup_admin


> Do you have .php3 enabled as a proper extension in your httpd.conf file?
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]] On Behalf Of System
> Administrator
> Sent: Monday, January 20, 2003 2:46 PM
> To: [EMAIL PROTECTED]
> Subject: Dialup_admin
>
> can anyone tell me why I get this on the left frame of my dialup admin
> install?
>
>  $auth_user = $HTTP_SERVER_VARS["PHP_AUTH_USER"];
> if ($auth_user){
>  if (is_file("../html/buttons/$auth_user/buttons.html.php3"))
>   include("../html/buttons/$auth_user/buttons.html.php3");
>  else{
>   if (is_file("../html/buttons/default/buttons.html.php3"))
>include("../html/buttons/default/buttons.html.php3");
>  }
> }
> else{
>  if (is_file("../html/buttons/default/buttons.html.php3"))
>   include("../html/buttons/default/buttons.html.php3");
> }
> ?>
>
> the example on freeradius.org seems to have the same problem
> Redhat 8.0
> freeradius .8.1
>
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
> -
> 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: Dialup_admin

2003-01-20 Thread Duane Barnes
Do you have .php3 enabled as a proper extension in your httpd.conf file?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of System
Administrator
Sent: Monday, January 20, 2003 2:46 PM
To: [EMAIL PROTECTED]
Subject: Dialup_admin

can anyone tell me why I get this on the left frame of my dialup admin
install?



the example on freeradius.org seems to have the same problem
Redhat 8.0
freeradius .8.1



- 
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: Dialup_Admin problems

2003-01-11 Thread Don O'Neil
Kostas,
  Thanks for the hint The latest CVS works fine, didn't have to enable the
SQL debug or anything. I just grabbed the dist, installed it, configured and
whammo! it worked.

Don

> Read the dialup_admin FAQ. Do a cvs update on dialup_admin (or at least on the
> lib/sql/drivers/mysql/functions.php3 and conf/admin.conf file) and
> set sql_debug
> to yes. That will show you all the sql queries performed by dialup_admin
>



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



Re: Dialup_Admin problems

2003-01-11 Thread Kostas Kalevras
On Sat, 11 Jan 2003, Don O'Neil wrote:

> Well, I fixed my my_sql issues... it was all about the library locations, and
> the fact that the latest mysql bin install doesn't include all the libraries...
> After correcting the configure program to eliminate the extra /mysql in the
> path, everything compiled
>
> but now, I can't get Dialup_Admin to work
>
> I can manually add users to the tables with phpmyadmin, so I know php, mysql and
> radiusd are working (even tested the users with sucess!!)... but when I try to
> add users/find users with dialup admin, nothing happens. Nothing is added,
> nothing is found, etc My config is correct, because when I change the
> username or password for mysql it says it can't connect to the db
>
> Any ideas??

Read the dialup_admin FAQ. Do a cvs update on dialup_admin (or at least on the
lib/sql/drivers/mysql/functions.php3 and conf/admin.conf file) and set sql_debug
to yes. That will show you all the sql queries performed by dialup_admin

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

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

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



RE: Dialup_admin in Freeradius 0.8 problem

2002-11-28 Thread Evren Yurtesen
So if it is there then there might be a problem with your radius server
settings? Why dont you run radius with radiusd -sxx and then send the
output of the server when you try radtest

Evren

On Thu, 28 Nov 2002, Peter Santiago wrote:

> It's there alright.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Evren
> Yurtesen
> Sent: Thursday, November 28, 2002 7:44 PM
> To: Freeradius-Users
> Subject: Re: Dialup_admin in Freeradius 0.8 problem
> 
> 
> did you check the mysql server(if you are using mysql) that the user is
> there?
> 
> On Thu, 28 Nov 2002, Peter Santiago wrote:
> 
> > Users created with dialup admin is being rejected using radtestAfter
> > creating user test with passwd testpass... check server doesn't return any
> > results...
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> >
> 
> 
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
> 
> 
> - 
> 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: Dialup_admin in Freeradius 0.8 problem

2002-11-28 Thread Peter Santiago
It's there alright.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Evren
Yurtesen
Sent: Thursday, November 28, 2002 7:44 PM
To: Freeradius-Users
Subject: Re: Dialup_admin in Freeradius 0.8 problem


did you check the mysql server(if you are using mysql) that the user is
there?

On Thu, 28 Nov 2002, Peter Santiago wrote:

> Users created with dialup admin is being rejected using radtestAfter
> creating user test with passwd testpass... check server doesn't return any
> results...
>
>
> -
> List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
>


-
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: Dialup_admin in Freeradius 0.8 problem

2002-11-28 Thread Evren Yurtesen
did you check the mysql server(if you are using mysql) that the user is
there?

On Thu, 28 Nov 2002, Peter Santiago wrote:

> Users created with dialup admin is being rejected using radtestAfter
> creating user test with passwd testpass... check server doesn't return any
> results...
> 
> 
> - 
> 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: dialup_admin error

2002-11-24 Thread Chhai Thach
Have you configured the config files properly? They are all in /dialup_admin/conf/

Chhai

-Original Message-
From: Leandro Machado [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, 23 November 2002 4:34 AM
To: [EMAIL PROTECTED]
Subject: dialup_admin error

I´m running Apache 1.3.20 + PHP4 to support dialup_admin.

When I try to execute i have the following: "Could not include SQL library
functions. Aborting. "

I cant find any reference to it on mail list, suggestions?


- 
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: dialup_admin error

2002-11-24 Thread Kostas Kalevras
On Fri, 22 Nov 2002, Leandro Machado wrote:

> I´m running Apache 1.3.20 + PHP4 to support dialup_admin.
>
> When I try to execute i have the following: "Could not include SQL library
> functions. Aborting. "
>
> I cant find any reference to it on mail list, suggestions?
>

Make sure you have set the correct sql_type in your admin.conf. It can only be
mysql or pg.

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


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



Re: dialup_admin

2002-11-24 Thread Kostas Kalevras
On Fri, 22 Nov 2002, Gillou wrote:

> What do I need to configure to make dialup_admin working ?

the admin.conf file

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

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


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



Re: dialup_admin, Acct-Terminate-Cause

2002-11-21 Thread Kostas Kalevras
On Thu, 21 Nov 2002, Svetlana Vyslanko wrote:

> Hello,
>
> failed_logins.php3 from dialup_admin:
>
> "SELECT
> AcctStopTime,UserName,NASIPAddress,NASPortId,AcctTerminateCause,CallingStationId
>   FROM $config[sql_accounting_table]
>   WHERE AcctStopTime <= '$now_str' AND AcctStopTime >= '$prev_str'
>   AND (AcctTerminateCause LIKE 'Login-Incorrect%' OR
>   AcctTerminateCause LIKE 'Invalid-User%' OR
>   AcctTerminateCause LIKE 'Multiple-Logins%') $callerid_str
>   ORDER BY AcctStopTime $order $limit;");
>
> In my radacct table the field AcctTerminateCause is empty. How can I resolve
> this problem?

bin/log_badlogins should be left runing and examining radius.log for failed
logins (something like: ./log_badlogins /var/radiusd/log/radius.log &)

>
> Thank you,
> Svetlana
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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


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



Re: dialup_admin, Acct-Terminate-Cause

2002-11-21 Thread Alan DeKok
Svetlana Vyslanko <[EMAIL PROTECTED]> wrote:
> In my radacct table the field AcctTerminateCause is empty. How can I resolve
> this problem?

  Fix your NAS to send the attribute.  It's in the FAQ.

  Alan DeKok.

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



Re: dialup_admin question

2002-09-05 Thread Kostas Kalevras

On Fri, 6 Sep 2002, John Morgan wrote:

> Hi everyone,
> I have a question in the module "New User" of dialup_admin:
> When I finished the items in the "New User" web page and clicked the button
> "Create" to submit, It doesn't work and have no error message. I don't know
> why. Someone could help me?
> My system is configured with:
> RedHat Linux 7.2
> Mysql 3.23.45
> Freeradius 0.7
> Apache 1.3.24
> Php 4.2.1
> The connection to database mysql radius is ok and radiusd operate
> correctly. My admin.conf file is:

If you enable logging in the mysql server do you get anything in the logs? Also
try out the dialup_admin in the latest cvs snapshots. It contains a lot of bug
fixes and new features and hopefully more error messages.

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

2002-07-04 Thread Kostas Kalevras

On Wed, 3 Jul 2002, Aldo Maruffi wrote:

> Hi all,
> I have an error in the module "edit user" of dialup_admin:
>
> Warning: stat failed for ../lib/sql/defaults.php3 (errno=2 - No such file or
> directory) in /usr/local/dialup_admin/lib/defaults.php3 on line 10
>
> Warning: Address is not in a.b.c.d form in
> /usr/local/dialup_admin/htdocs/user_admin.php3 on line 201
> My authentication use MySQL.
>
> Thanks
>
> ALdo

Those are just harmless warnings. is_file() function should not give out
warnings but unfortunately it does. Try changing line 10 of lib/defaults.php3 to
read
if (@is_file("../lib/$config[general_lib_type]/defaults.php3"))

and report what happens.

As for the a.b.c.d warning you probably have an entry in your accounting without
the FramedIPAddress field. The latest cvs should work better on that.


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

2002-06-27 Thread Kostas Kalevras

On Wed, 26 Jun 2002, George Costell wrote:

> Hello list,
>
> Looks great FreeRadius, I installed the last version
> on a FreeBSD test it and working at least in test
> /text mode.
> The only problem is to make the Dialup_admin working.
>
> When I try to access whatever Accounting, Statistics,
> .. etc from the home page I get the message:
>
> ¨Fatal error: Call to unsupported or undefined
> function foreach() in ../conf/config.php3 on line 3¨

The files may have php3 extension but they are actually php4.
Just make sure that php4 handles them instead of php3.

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

>
> Yet, I have mod_PHP3, PHP4 on Apache and ofcourse
> MySQL.
>
> Otherwise, my main interest is to use FreeRadius for
> VoIP AAA in a Cisco environment.
> Anyone have such experience?
>
> Thanks in advance for your help,
>
> George


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



Re: dialup_admin bug(s)(fixes)

2002-04-28 Thread Kostas Kalevras

On Thu, 18 Apr 2002, Timophey wrote:

> Hello all.
>
> I have a problem with dialup_admin: I just can't get it working correctly
> with databses. :)
> PostgreSQL, PHP 4.1.2
> I have created all databases and granted all permissions. But I still can't
> get it working.
>
> I hope the problem is in  ~/dialup_admin/lib/sql/drivers/pg/functions.php3
> file.
> there is a link to $config variable "tmp_pg_array_num" in the function
> "da_sql_fetch_array
>
> function da_sql_fetch_array($result,$config)
> {
> $row =
> @pg_fetch_array($result,$config[tmp_pg_array_num][$result]++,PGSQL_ASSOC);
> if (!$row)
> $config[tmp_pg_array_num][$result] = 0;
> return $row;
> }
>
> in the default "admin.conf"  file there are no such variable.
> What value of "tmp_pg_array_num" should I put in the amdin.conf file?

This is just an array used internally by the functions to implement a static
counter. You don't need to set it.

>
> I have rewritten this function, but in this case I should rewrite almost all
> dialup_admin. I would not rather do that.

How have you rewritten the function? Will dialup_admin now work with postgresql?
Unfortunately I don't have postgresql so i just wrote the necessary functions
and waited for someone to post some bug reports. :-)

> What would you advise me?
>
> Also there is a small bug in ~/dialup_admin/lib/functions.php3, in function
> "time2strclock":
> in "Online Users" page, seconds of connection duration are not shown if
> second's amount is more than 9
> I propose to comment out last 2 lines of  least "if" - condition.

Fixed, thanks. The fix was to add a {} block.

--
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 bug(s)(fixes)

2002-04-18 Thread ju bin

Hi,

I use postgresql 7.1.3 and 7.2, just change that function like below, it
will be ok.

function da_sql_fetch_array($result,$config)
{
/*  $row =
@pg_fetch_array($result,$config[tmp_pg_array_num][$result]++,PGSQL_ASSOC);
if (!$row)
$config[tmp_pg_array_num][$result] = 0;
return $row;*/
return @pg_fetch_array($result);
}

and for that time2strclock, change to below

if ($time){
if ($time < 10)
$time = "0" . $time;
}
else
$time = "00";
$str["sec"] = "$time";

not just comment those two lines.

Ju Bin

- Original Message -
From: "Timophey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 18, 2002 9:20 PM
Subject: dialup_admin bug(s)(fixes)


> Hello all.
>
> I have a problem with dialup_admin: I just can't get it working correctly
> with databses. :)
> PostgreSQL, PHP 4.1.2
> I have created all databases and granted all permissions. But I still
can't
> get it working.
>
> I hope the problem is in  ~/dialup_admin/lib/sql/drivers/pg/functions.php3
> file.
> there is a link to $config variable "tmp_pg_array_num" in the function
> "da_sql_fetch_array
>
> function da_sql_fetch_array($result,$config)
> {
> $row =
> @pg_fetch_array($result,$config[tmp_pg_array_num][$result]++,PGSQL_ASSOC);
> if (!$row)
> $config[tmp_pg_array_num][$result] = 0;
> return $row;
> }
>
> in the default "admin.conf"  file there are no such variable.
> What value of "tmp_pg_array_num" should I put in the amdin.conf file?
>
> I have rewritten this function, but in this case I should rewrite almost
all
> dialup_admin. I would not rather do that.
> What would you advise me?
>
> Also there is a small bug in ~/dialup_admin/lib/functions.php3, in
function
> "time2strclock":
> in "Online Users" page, seconds of connection duration are not shown if
> second's amount is more than 9
> I propose to comment out last 2 lines of  least "if" - condition.
>
> function time2strclock($time)
> {
> 
>
> if ($time)
> if ($time < 10)
> $time = "0" . $time;
> #else
> #   $time = "00";
> $str["sec"] = "$time";
> $ret = "$str[hour]:$str[min]:$str[sec]";
>
> return $ret;
> }
>
>
> Thanx in advance,
> Timophey.
>
>
>
>
>


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



Re: dialup_admin help

2002-04-15 Thread Kostas Kalevras

On Mon, 15 Apr 2002, Armando Poyaoan wrote:

> Hello to everybody,
>
> I’m having a problem regarding some of the functionalities of dialup_admin
> which are the “Online Users”, “Edit User”, “New User” and “Check Server”,
> when I select this functions it gives  a
> pop-up output with the following message (Netscape:Error  The document
> contained no data) ,
> but with the explorer browser it gives a blank output. For the rest of the
> dialup_admin functionalities (Accounting, Statistics, and Bad Users) are
> working very fine. Any hint
> regarding the problem?

Call the individual pages directly. They are user_new.php3,user_finger.php3 etc.
Check the apache server log files.

>
>
> Thanks in Advance,
> Armando
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

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

2002-03-04 Thread Kostas Kalevras

On Mon, 4 Mar 2002, Nick Davis wrote:

> Gents,
>  I was wondering why some dialup_admin pages are written in php3 and not
> php4? Is it just a time issue? Or is there some other reason?

Well, actually all of the dialup_admin pages are php4. When I started writing
the pages I used the php3 extension and somehow it didn't change.

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



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



  1   2   >