Re: cannot connect to sql databse

2008-01-28 Thread Liran Tal
Hey Devinder,

On Jan 28, 2008 8:44 AM, Devinder Singh [EMAIL PROTECTED] wrote:

 Hi  Liran



 I amd using MySQL would daloradius work with MySQL


Yes, daloradius has native support for mysql.
You check on dialupadmin for configuring errors - what is the
error message that you get?

It is also very useful to turn on mysql logging to see if there's
even a connection attempt and if there is, what is causing
the error.

Regards,
Liran Tal.





 On 28/01/2008, liran tal [EMAIL PROTECTED] wrote:

 
  Hey Devinder,
 
  On Jan 28, 2008 4:35 AM, Devinder Singh [EMAIL PROTECTED] wrote:
 
  
   Hi
  
   I am using Dial Up Admin on Free radius
  
  
   Free Radius is Running but when i acccess Dial Up admin page i get
   cannot connect to sql databse
  
   I have done most of the configuration settings and followed the wiki
   tutorial on Free Radius.
  
 
  Did you check that your sql server is actually running?
  Did you import the radius database schema into the sql server?
  Did you configure all the required settings to connect to the
  sql server in dialupadmin?
 
 
  You also might want to take a look at daloRADIUS for easy web management
  of freeradius with sql servers:
  http://sourceforge.net/projects/daloradius/
 
 
  Regards,
  Liran.
 
 
 
  -
  List info/subscribe/unsubscribe? See
  http://www.freeradius.org/list/users.html
 



 --
 Devinder
 -
 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: UserName, Password + MAC authentication using Cisco's BBSM 5.3

2008-01-28 Thread javkhlanbaatar
Thanks,
I've just installed new version 2.0.1 and it was some kind of different.
But now it's OK. Still I didn't find any clues of MAC authentication with
username and password. Could you give some advices? Also I used to enter
Login-Time to my radreply table but there isn't anything changed. Due to
the lack of FreeRadius books and still continues to introduce newer
versions, I have to ask about these, apologize for that. Still waiting for
the book. Also don't say READ THE DOCS. You know, all the books are
older. And all the mailers aren't PRO as like you.

Thanks for paying attention.




 1. Use Cleartext-Password with =: as stated in the server documentation.

 2. Post the output of radiusd -X. It's likely that the format for the
 MAC address is wrong. It can have : for delimiters or no delimiters at
 all.

 3. That's not how you end user sessions on any device, Cisco or
 otherwise. Putting your head in the sand will not make it go away.

 4. You use Login-Time not Expiration for that.

 Ivan Kalik
 Kalik Informatika ISP


 Dana 25/1/2008, [EMAIL PROTECTED]
 [EMAIL PROTECTED] pi¹e:

Hello,

I'm using Freeradius 1.1.17 version with Cisco's BBSM. With MySqL
 database
too. I've storing username, passwords in mysql db. For now,
 authentication
is OK. I want to check MAC address of users while they are
 authenticating.
Inmy radcheck table:

| id | UserName| Attribute  | op | Value |
++-+++---+
|  3 | java| Password   | == | password  |
| 18 | java| Calling-Station-Id | == | aa-bb-cc-dd-ee-ff |

Also, BBSM's snmp is enabled. So I can get users' MAC addresses. I want
Radius server checks username, password and MAC addresses at the same
 time
when the user authenticate. Without Calling-Station-Id, authentication is
OK. When I add Calling-Station-Id, the user cannot authenticate. In which
table, do I enter this attribute?

Also i cannot close or deactivate user session when I want to. When i
removing from BBSM Mysql db, session is still open. Or can I put
expiration time at every 03 o'clock?

Could someone help me abt these?

-
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


Fixed time single use logins? (mailing list submission)

2008-01-28 Thread michalp

(I apologise for duplicates)
Hi,
Is it possible to configure a set of temporary accounts supporting the
scenario, where a user gets login, allowing him to be authorised for a fixed
amount of time?

I mean here of a service, (wireless access) where one buys a $5 card for 1hr
of access. No matter how many times he logins to the network, he is allowed
until 1 hr from first login with this particular login/password. After 1 hr
he will be disconnected...

Thanks,

Michal
-- 
View this message in context: 
http://www.nabble.com/Fixed-time-%22single-use%22-logins--%28mailing-list-submission%29-tp15131741p15131741.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.

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


Re: Fixed time single use logins? (mailing list submission)

2008-01-28 Thread orion
you can use
Max-All-Session := 3600

3600 are the seconds = 1hr.

On 28/01/2008, michalp [EMAIL PROTECTED] wrote:

 (I apologise for duplicates)
 Hi,
 Is it possible to configure a set of temporary accounts supporting the
 scenario, where a user gets login, allowing him to be authorised for a fixed
 amount of time?

 I mean here of a service, (wireless access) where one buys a $5 card for 1hr
 of access. No matter how many times he logins to the network, he is allowed
 until 1 hr from first login with this particular login/password. After 1 hr
 he will be disconnected...

 Thanks,

 Michal
 --
 View this message in context: 
 http://www.nabble.com/Fixed-time-%22single-use%22-logins--%28mailing-list-submission%29-tp15131741p15131741.html
 Sent from the FreeRadius - User mailing list archive at Nabble.com.

 -
 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: cannot connect to sql databse

2008-01-28 Thread Devinder Singh
Hi Liran

Are the a lot of changes to be made on Dial Up Admin admin.conf file


Could you suggest any specific changes as well in etc/raddb/sql.conf


Regards
Devinder


On 28/01/2008, Liran Tal [EMAIL PROTECTED] wrote:

 Hey Devinder,

 On Jan 28, 2008 8:44 AM, Devinder Singh [EMAIL PROTECTED] wrote:

  Hi  Liran
 
 
 
  I amd using MySQL would daloradius work with MySQL
 

 Yes, daloradius has native support for mysql.
 You check on dialupadmin for configuring errors - what is the
 error message that you get?

 It is also very useful to turn on mysql logging to see if there's
 even a connection attempt and if there is, what is causing
 the error.

 Regards,
 Liran Tal.




 
   On 28/01/2008, liran tal [EMAIL PROTECTED] wrote:
 
  
   Hey Devinder,
  
   On Jan 28, 2008 4:35 AM, Devinder Singh [EMAIL PROTECTED]
   wrote:
  
   
Hi
   
I am using Dial Up Admin on Free radius
   
   
Free Radius is Running but when i acccess Dial Up admin page i get
cannot connect to sql databse
   
I have done most of the configuration settings and followed the wiki
tutorial on Free Radius.
   
  
   Did you check that your sql server is actually running?
   Did you import the radius database schema into the sql server?
   Did you configure all the required settings to connect to the
   sql server in dialupadmin?
  
  
   You also might want to take a look at daloRADIUS for easy web
   management
   of freeradius with sql servers:
   http://sourceforge.net/projects/daloradius/
  
  
   Regards,
   Liran.
  
  
  
  
   -
   List info/subscribe/unsubscribe? See
   http://www.freeradius.org/list/users.html
  
  
 
 
 
  --
  Devinder
  -
  List info/subscribe/unsubscribe? See
  http://www.freeradius.org/list/users.html
 


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




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

Re: UserName, Password + MAC authentication using Cisco's BBSM 5.3

2008-01-28 Thread Alan DeKok
[EMAIL PROTECTED] wrote:
 Thanks,
 I've just installed new version 2.0.1 and it was some kind of different.
 But now it's OK. Still I didn't find any clues of MAC authentication with
 username and password. Could you give some advices?

  Run the server in debugging mode, and see what the NAS sends in an
Access-Request.  Different NAS vendors (and models) send different
packets as MAC authentication.  There is NO common method.

 Also I used to enter
 Login-Time to my radreply table but there isn't anything changed.

  As always, run the server in debugging mode.

 Due to
 the lack of FreeRadius books and still continues to introduce newer
 versions, I have to ask about these, apologize for that. Still waiting for
 the book. Also don't say READ THE DOCS. You know, all the books are
 older. And all the mailers aren't PRO as like you.

  Of course.  But the docs *do* explain what we need for us to be able
to help you: run the server in debugging mode, and post the output here.

  The documentation says this in about 5 places.  The message you are
responding to told you to do this.  You still haven't done it.

  You have a choice: follow the instructions and maybe get the problem
solved, OR ignore the instructions, and have everyone on this list
ignore you as a result.

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


Re: SNMP error

2008-01-28 Thread Amr el-Saeed

Dear Alan,

i build from the source file that i downloaded from freeradius.org

i suspected the 64-bit

i made several trials , and here is the result

freeradius-1.1.7  ,   snmp-5.0.9-2.30E.20  , RHEL3  , 32-bitworking
freeradius-1.1.7  ,   snmp-5.0.9-2.30E.20  , RHEL5  , 32-bitworking
freeradius-1.1.7  ,   snmp-5.0.9-2.30E.20  , RHEL5  , 64-bitNOT working
freeradius-1.1.7  ,   snmp-5.3.1-19.el5   , RHEL5  , 32-bitNOT 
working
freeradius-1.1.7  ,   snmp-5.3.1-19.el5   , RHEL5  , 64-bitNOT 
working



any comments ??


[EMAIL PROTECTED] wrote:

Hi,
  

i have OS RHEL5



it looks like it didnt build with the required debug parts - once
again, as you are using the SPEC for your distro they could have other
things that mess it up - I can only help if you build
from the source and leave package management stuff alone.

alan
-
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: Administering with MySQL DB

2008-01-28 Thread Dashamir Hoxha

Hi,

I have tested a bit daloradius and I have seen that there bugs/problems
with it. Some other alternatives (which also do have problems) are these:

http://cakeforge.org/projects/hotcakes/
http://sourceforge.net/projects/phpmyprepaid/
http://sourceforge.net/projects/phpradmin/
http://sourceforge.net/projects/freeradiusadmin/
http://sourceforge.net/projects/easyhotpsot/
http://sourceforge.net/projects/wifiroute/

If you have success with any of them, please let me know as well.

Regards,
Dashamir

liran tal wrote:


Hey Andy,

There are other alternatives to dialup admin in terms of web management
for freeradius. One of which is daloRADIUS (and yes it supports managing
the nas entries for the database as well).

Web: http://sourceforge.net/projects/daloradius/
Wiki: http://daloradius.wiki.sourceforge.net/

There's also an online demo of the latest development from SVN (trunk)
which users can play around with to check out the new features
Demo: http://daloradius.xdsl.by
Username and Password: are administrator/radius

Ofcourse the demo isn't fully functional and is only there for
presentational reasons.

Everyone else are ofcourse welcome to look around.
Please be kind and share some feedback :-)


Regards,
Liran Tal.

On Jan 18, 2008 8:18 PM, Andy Smith  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,
 
  thanks, Ive looked at this and its a good guide to initial

install but doesnt seem to provide any detailed info on how to
administer the data in the tables. IE there is a sample of some
data from a test system but this doesnt even mention the NAS
table, how are other people administering their systems?
 
thanks! Andy.
 


/ FreeRadius Wiki is a good starting point. SQL Howto/


-
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: rpmbuld errors 2.0.1

2008-01-28 Thread Andrew Long
OK, can you give me the explicit code here. Here is the file as it exists:

$ cat .rpmmacros
%_topdir %(echo $HOME)/rpmbuild

- Andrew


On Jan 28, 2008 9:13 AM, Joe Vieira [EMAIL PROTECTED] wrote:
 that's why i sent my second email telling you to make sure $_incdir is
 defined in your .rpmmacros file. =)


 Joe Vieira
 UNIX Systems Administrator
 Clark University - ITS



 Andrew Long wrote:
  Well, not so lucky after all. Looks like the build get 99% completed
  and we get an error:
 
  + RADDB=/var/tmp/freeradius-root/etc/raddb
  + perl -i -pe 's/^#user =.*$/user = radiusd/'
  /var/tmp/freeradius-root/etc/raddb/radiusd.conf
  + perl -i -pe 's/^#group =.*$/group = radiusd/'
  /var/tmp/freeradius-root/etc/raddb/radiusd.conf
  + perl -i -pe 's/#  shadow =/shadow =/'
  /var/tmp/freeradius-root/etc/raddb/radiusd.conf
  + rm -f /var/tmp/freeradius-root/usr/share/man/man8/builddbm.8
  + rm -f /var/tmp/freeradius-root/usr/sbin/rc.radiusd
  + install -m 0644 CREDITS
  /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
  + install -m 0644 COPYRIGHT
  /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
  + install -m 0644 LICENSE
  /var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
  + cd redhat
  + install -m 755 rc.radiusd-redhat
  /var/tmp/freeradius-root/etc/rc.d/init.d/radiusd
  + install -m 644 radiusd-logrotate
  /var/tmp/freeradius-root/etc/logrotate.d/radiusd
  + install -m 644 radiusd-pam /var/tmp/freeradius-root/etc/pam.d/radius
  + cd ..
  + /usr/lib/rpm/brp-compress
  + /usr/lib/rpm/brp-strip
  + /usr/lib/rpm/brp-strip-static-archive
  strip: Unable to recognise the format of the input file
  `/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)'
  strip: Unable to recognise the format of the input file
  `/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)'
  + /usr/lib/rpm/brp-strip-comment-note
  Processing files: freeradius-2.0.1-0
  error: File must begin with /: %{_incdir}/freeradius/*
 
 
  RPM build errors:
  File must begin with /: %{_incdir}/freeradius/*
 
  Any hints?
 
  - Andrew
 
  On Jan 28, 2008 8:55 AM, Joe Vieira [EMAIL PROTECTED] wrote:
 
  you'll need to either rename everything in the spec file to be
  freeradius-server
  or just open the tar.gz rename the directory INSIDE IT (which is also
  freeradius-server) to freeradius-2.0.1... then zip it all back up and
  run your spec again and it will work.
 
  Joe Vieira
  UNIX Systems Administrator
  Clark University - ITS
 
 
 
 
  Andrew Long wrote:
 
  Hello:
  I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
  is that the source now comes as freeradius-server-2.0.1.tar.gz;
  starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
  error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
  renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
  and now the build starts, but it always ends with the following error:
 
  + STATUS=0
  + '[' 0 -ne 0 ']'
  + cd freeradius-2.0.1
  /var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or 
  directory
  error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)
 
  Here is the block from the rpm-tmp file:
set -x
umask 022
cd /home/along/rpmbuild/BUILD
  cd /home/along/rpmbuild/BUILD
  rm -rf freeradius-2.0.1
  /bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar 
  -xvvf -
  STATUS=$?
  if [ $STATUS -ne 0 ]; then
exit $STATUS
  fi
  cd freeradius-2.0.1 --LINE 29
  [ `/usr/bin/id -u` = '0' ]  /bin/chown -Rhf root .
  [ `/usr/bin/id -u` = '0' ]  /bin/chgrp -Rhf root .
  /bin/chmod -Rf a+rX,u+w,g-w,o-w .
 
  I am not an expert with rpmbuild, so I apologize if this is a bit
  off-topic. I preceded the build with
  $ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
  the same host.
 
  - 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
 
 
  -
  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: Administering with MySQL DB

2008-01-28 Thread liran tal
Glad to hear that Andy.
I'll be happy to assist you with whatever daloradius questions
you have, including feature requests and bug fixes :)

Regards,
Liran Tal.


On Jan 20, 2008 8:15 PM, Andy Smith [EMAIL PROTECTED] wrote:

  Hi All,

   thanks for the assistance from everyone on this. My prob was not even
 knowing which nas table field you were meant
 to put the IP address of the device in due to the naming standard.
 I've installed daloradius, which was very quick and easy to install on a
 system already configured for mysql, apache and php
 and I can add nas entries via the GUI and now see the correct formatting
 for adding others via SQL commands if I should
 need to.

 cheers Andy.

 -
 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: Administering with MySQL DB

2008-01-28 Thread liran tal
Hey Dashmir,

On Jan 28, 2008 1:28 PM, Dashamir Hoxha [EMAIL PROTECTED] wrote:

 Hi,

 I have tested a bit daloradius and I have seen that there bugs/problems
 with it. Some other alternatives (which also do have problems) are these:


It's upsetting to hear that, I don't remember ever getting any feedback
from you regarding any bugs. It's upsetting because every user of daloradius
can testify that I reply on emails almost instantly (almost never longer
than a
couple of hours (sleep time)) and every bugs I was made aware of were
also fixed no more than a couple of hours away if not immediately which
is why it's very sad to me to hear that you have tried it and gave up.

Well whatever version you have tried, I'll be happy if you can give it
another shot with the latest version and keep me informed.

There's also a demo page up which is almost always the recent version
of svn so you can see new features: http://daloradius.xdsl.by
User: administrator Pass: radius



Regards,
Liran Tal.





 http://cakeforge.org/projects/hotcakes/
 http://sourceforge.net/projects/phpmyprepaid/
 http://sourceforge.net/projects/phpradmin/
 http://sourceforge.net/projects/freeradiusadmin/
 http://sourceforge.net/projects/easyhotpsot/
 http://sourceforge.net/projects/wifiroute/

 If you have success with any of them, please let me know as well.

 Regards,
 Dashamir

 liran tal wrote:
 
  Hey Andy,
 
  There are other alternatives to dialup admin in terms of web management
  for freeradius. One of which is daloRADIUS (and yes it supports managing
  the nas entries for the database as well).
 
  Web: http://sourceforge.net/projects/daloradius/
  Wiki: http://daloradius.wiki.sourceforge.net/
 
  There's also an online demo of the latest development from SVN (trunk)
  which users can play around with to check out the new features
  Demo: http://daloradius.xdsl.by
  Username and Password: are administrator/radius
 
  Ofcourse the demo isn't fully functional and is only there for
  presentational reasons.
 
  Everyone else are ofcourse welcome to look around.
  Please be kind and share some feedback :-)
 
 
  Regards,
  Liran Tal.
 
  On Jan 18, 2008 8:18 PM, Andy Smith  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
thanks, Ive looked at this and its a good guide to initial
  install but doesnt seem to provide any detailed info on how to
  administer the data in the tables. IE there is a sample of some
  data from a test system but this doesnt even mention the NAS
  table, how are other people administering their systems?
 
  thanks! Andy.
 
 
  / FreeRadius Wiki is a good starting point. SQL Howto/
 
 
  -
  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: rpmbuld errors 2.0.1

2008-01-28 Thread Andrew Long
Well, not so lucky after all. Looks like the build get 99% completed
and we get an error:

+ RADDB=/var/tmp/freeradius-root/etc/raddb
+ perl -i -pe 's/^#user =.*$/user = radiusd/'
/var/tmp/freeradius-root/etc/raddb/radiusd.conf
+ perl -i -pe 's/^#group =.*$/group = radiusd/'
/var/tmp/freeradius-root/etc/raddb/radiusd.conf
+ perl -i -pe 's/#  shadow =/shadow =/'
/var/tmp/freeradius-root/etc/raddb/radiusd.conf
+ rm -f /var/tmp/freeradius-root/usr/share/man/man8/builddbm.8
+ rm -f /var/tmp/freeradius-root/usr/sbin/rc.radiusd
+ install -m 0644 CREDITS
/var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
+ install -m 0644 COPYRIGHT
/var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
+ install -m 0644 LICENSE
/var/tmp/freeradius-root/usr/share/doc/freeradius-2.0.1
+ cd redhat
+ install -m 755 rc.radiusd-redhat
/var/tmp/freeradius-root/etc/rc.d/init.d/radiusd
+ install -m 644 radiusd-logrotate
/var/tmp/freeradius-root/etc/logrotate.d/radiusd
+ install -m 644 radiusd-pam /var/tmp/freeradius-root/etc/pam.d/radius
+ cd ..
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
+ /usr/lib/rpm/brp-strip-static-archive
strip: Unable to recognise the format of the input file
`/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)'
strip: Unable to recognise the format of the input file
`/var/tmp/freeradius-root/usr/lib/rlm_perl.a(DynaLoader.a)'
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: freeradius-2.0.1-0
error: File must begin with /: %{_incdir}/freeradius/*


RPM build errors:
File must begin with /: %{_incdir}/freeradius/*

Any hints?

- Andrew

On Jan 28, 2008 8:55 AM, Joe Vieira [EMAIL PROTECTED] wrote:
 you'll need to either rename everything in the spec file to be
 freeradius-server
 or just open the tar.gz rename the directory INSIDE IT (which is also
 freeradius-server) to freeradius-2.0.1... then zip it all back up and
 run your spec again and it will work.

 Joe Vieira
 UNIX Systems Administrator
 Clark University - ITS




 Andrew Long wrote:
  Hello:
  I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
  is that the source now comes as freeradius-server-2.0.1.tar.gz;
  starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
  error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
  renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
  and now the build starts, but it always ends with the following error:
 
  + STATUS=0
  + '[' 0 -ne 0 ']'
  + cd freeradius-2.0.1
  /var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or 
  directory
  error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)
 
  Here is the block from the rpm-tmp file:
set -x
umask 022
cd /home/along/rpmbuild/BUILD
  cd /home/along/rpmbuild/BUILD
  rm -rf freeradius-2.0.1
  /bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar 
  -xvvf -
  STATUS=$?
  if [ $STATUS -ne 0 ]; then
exit $STATUS
  fi
  cd freeradius-2.0.1 --LINE 29
  [ `/usr/bin/id -u` = '0' ]  /bin/chown -Rhf root .
  [ `/usr/bin/id -u` = '0' ]  /bin/chgrp -Rhf root .
  /bin/chmod -Rf a+rX,u+w,g-w,o-w .
 
  I am not an expert with rpmbuild, so I apologize if this is a bit
  off-topic. I preceded the build with
  $ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
  the same host.
 
  - 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

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


Re: radclient from xtradius always fail?

2008-01-28 Thread Alan DeKok
Stephane Bortzmeyer wrote:
 I configured a FreeRadius server and tested it with FreeRadius'
 radclient. It works.
 
 However, when I try the radclient from xtradius, I always get an
 access denied. I think that FreeRadius is supposed to work with other
 Radius implementations :-) so there is something strange.

  You could also try another client: ntradping, or a python radius
client (pyrad).  If those work and xtradius doesn't, then xtradius is
broken.

  xtradius is also unsupported, as it hasn't had a new release in 6
years.  So I wouldn't be very surprised if it has 64-bit issues.

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


Re: Administering with MySQL DB

2008-01-28 Thread Dashamir Hoxha

liran tal wrote:

Let's indeed move on, I'd appreciate it if you can give the svn
version a try, it might be buggy just because it's SVN and by
definition I try new stuff on it but I also commit fixes straight away
so you really enjoy the latest.

I hope to hear from you again,

OK, Liran. Let me test it again and I will let you know.
Its really great that you are so committed to fixing it
and to support the users.

Regards,
Dashamir


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


Re: rpmbuld errors 2.0.1

2008-01-28 Thread Joe Vieira

also make sure $_incdir is defined in your .rpmmacros

Joe Vieira
UNIX Systems Administrator
Clark University - ITS



Joe Vieira wrote:

you'll need to either rename everything in the spec file to be
freeradius-server
or just open the tar.gz rename the directory INSIDE IT (which is also
freeradius-server) to freeradius-2.0.1... then zip it all back up and
run your spec again and it will work.

Joe Vieira
UNIX Systems Administrator
Clark University - ITS



Andrew Long wrote:
  

Hello:
I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
is that the source now comes as freeradius-server-2.0.1.tar.gz;
starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
and now the build starts, but it always ends with the following error:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd freeradius-2.0.1
/var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)

Here is the block from the rpm-tmp file:
  set -x
  umask 022
  cd /home/along/rpmbuild/BUILD
cd /home/along/rpmbuild/BUILD
rm -rf freeradius-2.0.1
/bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd freeradius-2.0.1 --LINE 29
[ `/usr/bin/id -u` = '0' ]  /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ]  /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

I am not an expert with rpmbuild, so I apologize if this is a bit
off-topic. I preceded the build with
$ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
the same host.

- 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
  

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


Re: Administering with MySQL DB

2008-01-28 Thread liran tal
Hey Dashmir,

On Jan 28, 2008 2:49 PM, Dashamir Hoxha [EMAIL PROTECTED] wrote:

 Hi Liran,

 Please don't get upset. I just tested it out of curiosity and I didn't
 try to make it work at all costs. Maybe the problem was because
 I tested it with freeradius-2,


I get upset because I'm dedicating alot of time to be online and help
users than I actually spend on writing new features and improvements
just because I want users to know that I am here for them and there's
really alot of other users who help just as well, there's the mailing
list or the channel on freenode (#daloradius) which you are welcome
to join and ask away.


 and I renamed the table usergroup
 to radusergroup.


Well obviously if you change things like that which are in the core
of the program you will break things but even still I have thought about
these stuff and the table names are configurable so you can rename
it to whatever you want as long as you keep this synced with daloradius.


 Also I noticed that the interface (menus, left
 pane, etc.) is a bit confusing. Trying to insert new attributes and
 values almost never worked for me.


I use daloradius daily as well as other users and saying almost never
worked for me is vague - what didn't work? maybe you did something
wrong? maybe this was a bug which got fixed, etc...


 Anyway, if you claim that the latest SVN version is better,
 then I will try to test this one as well, when I have time.
 Thanks for your readiness to fix the bugs and to support it.
 I will let you know about any problems.


Let's indeed move on, I'd appreciate it if you can give the svn
version a try, it might be buggy just because it's SVN and by
definition I try new stuff on it but I also commit fixes straight away
so you really enjoy the latest.


I hope to hear from you again,

Regards,
Liran Tal.




 liran tal wrote:
  Hey Dashmir,
 
  On Jan 28, 2008 1:28 PM, Dashamir Hoxha [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Hi,
 
  I have tested a bit daloradius and I have seen that there
  bugs/problems
  with it. Some other alternatives (which also do have problems) are
  these:
 
 
  It's upsetting to hear that, I don't remember ever getting any feedback
  from you regarding any bugs. It's upsetting because every user of
  daloradius
  can testify that I reply on emails almost instantly (almost never
  longer than a
  couple of hours (sleep time)) and every bugs I was made aware of were
  also fixed no more than a couple of hours away if not immediately which
  is why it's very sad to me to hear that you have tried it and gave up.
 
  Well whatever version you have tried, I'll be happy if you can give it
  another shot with the latest version and keep me informed.
 
  There's also a demo page up which is almost always the recent version
  of svn so you can see new features: http://daloradius.xdsl.by
  User: administrator Pass: radius
 
 
 
  Regards,
  Liran Tal.
 
 
 
 
 
  http://cakeforge.org/projects/hotcakes/
  http://sourceforge.net/projects/phpmyprepaid/
  http://sourceforge.net/projects/phpradmin/
  http://sourceforge.net/projects/freeradiusadmin/
  http://sourceforge.net/projects/easyhotpsot/
  http://sourceforge.net/projects/wifiroute/
 
  If you have success with any of them, please let me know as well.
 
  Regards,
  Dashamir
 
  liran tal wrote:
  
   Hey Andy,
  
   There are other alternatives to dialup admin in terms of web
  management
   for freeradius. One of which is daloRADIUS (and yes it supports
  managing
   the nas entries for the database as well).
  
   Web: http://sourceforge.net/projects/daloradius/
   Wiki: http://daloradius.wiki.sourceforge.net/
  
   There's also an online demo of the latest development from SVN
  (trunk)
   which users can play around with to check out the new features
   Demo: http://daloradius.xdsl.by
   Username and Password: are administrator/radius
  
   Ofcourse the demo isn't fully functional and is only there for
   presentational reasons.
  
   Everyone else are ofcourse welcome to look around.
   Please be kind and share some feedback :-)
  
  
   Regards,
   Liran Tal.
  
   On Jan 18, 2008 8:18 PM, Andy Smith  [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED]
   mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
  
   Hi,
  
 thanks, Ive looked at this and its a good guide to initial
   install but doesnt seem to provide any detailed info on how to
   administer the data in the tables. IE there is a sample of
 some
   data from a test system but this doesnt even mention the NAS
   table, how are other people administering their systems?
  
   thanks! Andy.
  
  
   / FreeRadius Wiki is a good starting point. SQL Howto/
  
  
   -
   List 

Re: Detailed logging on 1.1.7 [fixed]

2008-01-28 Thread Mother

Hi all,

Since I hate when people write No problem, I fixed it and then 
disappear into the ether without giving details that could be useful to 
others, here is what I did:


1. Install screen (not by default installed in FreeBSD).
2. Run a new screen, name it something convenient (# screen -S radiusd)
3. Hit Ctrl+A-H, this will log all console output to file.
4. Start radiusd with -X or -x
5. Detach from the screen with Ctrl+A-d

FreeRADIUS is now running in this screen, and everything is being stored 
to log file. At any time, you can reattach to the screen (both from 
local and over SSH) to see what is going on in real time.


Cheers,

Mike

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


Re: radclient from xtradius always fail?

2008-01-28 Thread Alan DeKok
Stephane Bortzmeyer wrote:
 However, when I try the radclient from xtradius, I always get an
 access denied. I think that FreeRadius is supposed to work with other
 Radius implementations :-) so there is something strange.

  My guess is that it's a 64-bit machine, and the xtradius source code
isn't 64-bit clean.

  It wouldn't hurt to have some regression tests in the server
(src/tests) with well known packets that will catch this kind of error.

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


Re: rpmbuld errors 2.0.1

2008-01-28 Thread Joe Vieira

Andrew Long wrote:

OK, can you give me the explicit code here. Here is the file as it exists:

$ cat .rpmmacros
%_topdir %(echo $HOME)/rpmbuild

  

yea, add this line.
%_incdir /usr/include

or whatever directory you want ...
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: rpmbuld errors 2.0.1

2008-01-28 Thread Andrew Long
Bingo!

Thank You.

- Andrew

On Jan 28, 2008 8:55 AM, Joe Vieira [EMAIL PROTECTED] wrote:
 you'll need to either rename everything in the spec file to be
 freeradius-server
 or just open the tar.gz rename the directory INSIDE IT (which is also
 freeradius-server) to freeradius-2.0.1... then zip it all back up and
 run your spec again and it will work.

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


Re: Fixed time single use logins? (mailing list submission)

2008-01-28 Thread Michal Przybylski

THX!

It helped.

Best,

Michal
orion wrote:

you can use
Max-All-Session := 3600

3600 are the seconds = 1hr.

On 28/01/2008, michalp [EMAIL PROTECTED] wrote:
  

(I apologise for duplicates)
Hi,
Is it possible to configure a set of temporary accounts supporting the
scenario, where a user gets login, allowing him to be authorised for a fixed
amount of time?

I mean here of a service, (wireless access) where one buys a $5 card for 1hr
of access. No matter how many times he logins to the network, he is allowed
until 1 hr from first login with this particular login/password. After 1 hr
he will be disconnected...

Thanks,

Michal
--
View this message in context: 
http://www.nabble.com/Fixed-time-%22single-use%22-logins--%28mailing-list-submission%29-tp15131741p15131741.html
Sent from the FreeRadius - User mailing list archive at Nabble.com.

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



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

  




smime.p7s
Description: S/MIME Cryptographic Signature
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Question about forum

2008-01-28 Thread Peter Nixon
On Fri 25 Jan 2008, JB wrote:
 Peter Nixon wrote:
  We have a wiki. You are welcome to contribute...

 Account creation/free editing seems to be deactivated...

Yep. Send me a private email with the account name you prefer and I will 
create the account for you :-)

Cheers

-- 

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


RE: Creating rpm problem

2008-01-28 Thread Laurent RAYSSIGUIER
Ok, with the explainations of Joe I do this :

tar xvfz freeradius-server-2.0.1.tar.gz
mv freeradius-server-2.0.1 freeradius-2.0.1
tar cvfz freeradius-2.0.1.tar.gz freeradius-2.0.1
cp freeradius-2.0.1.tar.gz /usr/src/redhat/SOURCES
echo %_incdir /usr/include .rpmmacros
rpmbuild -ta freeradius-2.0.1.tar.gz

And Now, the rpm will be created correctly.

Thank You Joe, and anyone who has try to answer :-)

Bye

Laurent


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


radclient from xtradius always fail?

2008-01-28 Thread Stephane Bortzmeyer
I configured a FreeRadius server and tested it with FreeRadius'
radclient. It works.

However, when I try the radclient from xtradius, I always get an
access denied. I think that FreeRadius is supposed to work with other
Radius implementations :-) so there is something strange.

With FreeRadius's radclient:

% echo User-Name = bortzmeyer\nUser-Password = theuserpassword | radclient 
jezabel auth mysharedsecret
Received response ID 181, code 2, length = 44
Service-Type = Framed-User
Framed-Protocol = PPP
...

With xtradius' radclient, same client machine:

% echo User-Name = bortzmeyer\nUser-Password = theuserpassword | radclient 
jezabel auth mysharedsecret
Sending request to server jezabel, port 1812.
Warning: Received invalid reply digest from server
radrecv: Packet from host 10.1.82.2 code=3, id=13, length=20
Access denied.

And, on the FreeRadius server, when it fails:

rad_recv: Access-Request packet from host 10.1.82.1:32774, id=13, length=50
User-Name = bortzmeyer
User-Password = \274\016N\002\363\206\206a.P06\270\363\335
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modcall[authorize]: module preprocess returns ok for request 0
  modcall[authorize]: module chap returns noop for request 0
  modcall[authorize]: module mschap returns noop for request 0
rlm_realm: No '@' in User-Name = bortzmeyer, looking up realm NULL
rlm_realm: No such realm NULL
  modcall[authorize]: module suffix returns noop for request 0
  rlm_eap: No EAP-Message, not doing EAP
  modcall[authorize]: module eap returns noop for request 0
users: Matched entry bortzmeyer at line 52
  modcall[authorize]: module files returns ok for request 0
  modcall[authorize]: module pap returns updated for request 0
modcall: leaving group authorize (returns updated) for request 0
  rad_check_password:  Found Auth-Type pap
auth: type PAP
  Processing the authenticate section of radiusd.conf
modcall: entering group PAP for request 0
rlm_pap: login attempt with password ¼?N?ó??a.P06¸óÝ
rlm_pap: Using clear text password theuserpassword.
rlm_pap: Passwords don't match
  modcall[authenticate]: module pap returns reject for request 0
modcall: leaving group PAP (returns reject) for request 0
auth: Failed to validate the user.
  WARNING: Unprintable characters in the password. ?  Double-check the shared 
secret on the server and the NAS!

The clients.conf config:

client lilith.generic-nic.net {
secret = mysharedsecret
shortname = lilith
nastype = other
}
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Administering with MySQL DB

2008-01-28 Thread Dashamir Hoxha

Hi Liran,

Please don't get upset. I just tested it out of curiosity and I didn't
try to make it work at all costs. Maybe the problem was because
I tested it with freeradius-2, and I renamed the table usergroup
to radusergroup. Also I noticed that the interface (menus, left
pane, etc.) is a bit confusing. Trying to insert new attributes and
values almost never worked for me.

Anyway, if you claim that the latest SVN version is better,
then I will try to test this one as well, when I have time.
Thanks for your readiness to fix the bugs and to support it.
I will let you know about any problems.

Regards,
Dashamir


liran tal wrote:

Hey Dashmir,

On Jan 28, 2008 1:28 PM, Dashamir Hoxha [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED] wrote:


Hi,

I have tested a bit daloradius and I have seen that there
bugs/problems
with it. Some other alternatives (which also do have problems) are
these:


It's upsetting to hear that, I don't remember ever getting any feedback
from you regarding any bugs. It's upsetting because every user of 
daloradius
can testify that I reply on emails almost instantly (almost never 
longer than a

couple of hours (sleep time)) and every bugs I was made aware of were
also fixed no more than a couple of hours away if not immediately which
is why it's very sad to me to hear that you have tried it and gave up.

Well whatever version you have tried, I'll be happy if you can give it
another shot with the latest version and keep me informed.

There's also a demo page up which is almost always the recent version
of svn so you can see new features: http://daloradius.xdsl.by
User: administrator Pass: radius



Regards,
Liran Tal.


 



http://cakeforge.org/projects/hotcakes/
http://sourceforge.net/projects/phpmyprepaid/
http://sourceforge.net/projects/phpradmin/
http://sourceforge.net/projects/freeradiusadmin/
http://sourceforge.net/projects/easyhotpsot/
http://sourceforge.net/projects/wifiroute/

If you have success with any of them, please let me know as well.

Regards,
Dashamir

liran tal wrote:

 Hey Andy,

 There are other alternatives to dialup admin in terms of web
management
 for freeradius. One of which is daloRADIUS (and yes it supports
managing
 the nas entries for the database as well).

 Web: http://sourceforge.net/projects/daloradius/
 Wiki: http://daloradius.wiki.sourceforge.net/

 There's also an online demo of the latest development from SVN
(trunk)
 which users can play around with to check out the new features
 Demo: http://daloradius.xdsl.by
 Username and Password: are administrator/radius

 Ofcourse the demo isn't fully functional and is only there for
 presentational reasons.

 Everyone else are ofcourse welcome to look around.
 Please be kind and share some feedback :-)


 Regards,
 Liran Tal.

 On Jan 18, 2008 8:18 PM, Andy Smith  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:

 Hi,

   thanks, Ive looked at this and its a good guide to initial
 install but doesnt seem to provide any detailed info on how to
 administer the data in the tables. IE there is a sample of some
 data from a test system but this doesnt even mention the NAS
 table, how are other people administering their systems?

 thanks! Andy.


 / FreeRadius Wiki is a good starting point. SQL Howto/


 -
 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: radclient from xtradius always fail?

2008-01-28 Thread Stephane Bortzmeyer
On Mon, Jan 28, 2008 at 05:11:30PM +0100,
 Alan DeKok [EMAIL PROTECTED] wrote 
 a message of 14 lines which said:

 My guess is that it's a 64-bit machine, and the xtradius source code
 isn't 64-bit clean.

It is indeed two Dell machines, with AMD Opteron 64-bits processors (I
forgot to say that and the fact they run Debian lenny with Linux
kernel 2.6.22 and FreeRadius 1.1.7).


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


Re: rpmbuld errors 2.0.1

2008-01-28 Thread Joe Vieira
you'll need to either rename everything in the spec file to be 
freeradius-server
or just open the tar.gz rename the directory INSIDE IT (which is also 
freeradius-server) to freeradius-2.0.1... then zip it all back up and 
run your spec again and it will work.


Joe Vieira
UNIX Systems Administrator
Clark University - ITS



Andrew Long wrote:

Hello:
I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
is that the source now comes as freeradius-server-2.0.1.tar.gz;
starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
and now the build starts, but it always ends with the following error:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd freeradius-2.0.1
/var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)

Here is the block from the rpm-tmp file:
  set -x
  umask 022
  cd /home/along/rpmbuild/BUILD
cd /home/along/rpmbuild/BUILD
rm -rf freeradius-2.0.1
/bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd freeradius-2.0.1 --LINE 29
[ `/usr/bin/id -u` = '0' ]  /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ]  /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

I am not an expert with rpmbuild, so I apologize if this is a bit
off-topic. I preceded the build with
$ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
the same host.

- 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: radclient from xtradius always fail?

2008-01-28 Thread Stephane Bortzmeyer
On Mon, Jan 28, 2008 at 05:17:57PM +0100,
 Alan DeKok [EMAIL PROTECTED] wrote 
 a message of 18 lines which said:

 You could also try another client: ntradping, or a python radius
 client (pyrad).

pyrad worked fine, so, yes, it seems xtradius is wrong. Many thanks
for your help.

% python test-pyrad.py  
access accepted
Attributes returned by server:
Framed-IP-Address: ['172.16.3.33']
Framed-IP-Netmask: ['255.255.255.0']
Service-Type: ['Framed-User']
Framed-Protocol: ['PPP']
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: rpmbuld errors 2.0.1

2008-01-28 Thread Richard Siddall

Andrew Long wrote:

OK, can you give me the explicit code here. Here is the file as it exists:

$ cat .rpmmacros
%_topdir %(echo $HOME)/rpmbuild

- Andrew



Try changing _incdir in the spec file to _includedir.  The latter is
predefined (at least on CentOS).

Regards,

Richard Siddall

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


Re: Detailed logging on 1.1.7 [fixed]

2008-01-28 Thread Peter Nixon
On Mon 28 Jan 2008, Mother wrote:
 1. Install screen (not by default installed in FreeBSD).
 2. Run a new screen, name it something convenient (# screen -S radiusd)
 3. Hit Ctrl+A-H, this will log all console output to file.
 4. Start radiusd with -X or -x
 5. Detach from the screen with Ctrl+A-d

 FreeRADIUS is now running in this screen, and everything is being stored
 to log file. At any time, you can reattach to the screen (both from
 local and over SSH) to see what is going on in real time.

Thanks. Nice instructions. I have added them to the wiki (slightly modified)

Cheers

-- 

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


rpmbuld errors 2.0.1

2008-01-28 Thread Andrew Long
Hello:
I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
is that the source now comes as freeradius-server-2.0.1.tar.gz;
starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
and now the build starts, but it always ends with the following error:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd freeradius-2.0.1
/var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)

Here is the block from the rpm-tmp file:
  set -x
  umask 022
  cd /home/along/rpmbuild/BUILD
cd /home/along/rpmbuild/BUILD
rm -rf freeradius-2.0.1
/bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd freeradius-2.0.1 --LINE 29
[ `/usr/bin/id -u` = '0' ]  /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ]  /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

I am not an expert with rpmbuild, so I apologize if this is a bit
off-topic. I preceded the build with
$ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
the same host.

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


cannot connect to sql databse

2008-01-28 Thread Devinder Singh
Dear Liran

this is my dialup_admin.conf file
sql_type: mysql
sql_server: localhost
sql_port: 3306
sql_username: freeradius
sql_password: mysuperpassword
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

and this is the /usr/raddb/sql.conf confihguration

sql {
# Database type
# Current supported are: rlm_sql_mysql, rlm_sql_postgresql,
# rlm_sql_iodbc, rlm_sql_oracle, rlm_sql_unixodbc, rlm_sql_freetds
driver = rlm_sql_mysql

# Connect info
server = localhost
login = freeradius
password = mysuperpassword

# Database table configuration
radius_db = radius

# If you want both stop and start records logged to the
# same SQL table, leave this as is.  If you want them in
# different tables, put the start table in acct_table1
# and stop table in acct_table2
acct_table1 = radacct
acct_table2 = radacct

# Allow for storing data after authentication
postauth_table = radpostauth

Is there anything that i as missing pls advise.


Regards
Devinder


On 28/01/2008, Devinder Singh [EMAIL PROTECTED] wrote:

 Hi Liran

 Are the a lot of changes to be made on Dial Up Admin admin.conf file


 Could you suggest any specific changes as well in etc/raddb/sql.conf


 Regards
 Devinder


 On 28/01/2008, Liran Tal [EMAIL PROTECTED] wrote:
 
  Hey Devinder,
 
  On Jan 28, 2008 8:44 AM, Devinder Singh [EMAIL PROTECTED] wrote:
 
   Hi  Liran
  
  
  
   I amd using MySQL would daloradius work with MySQL
  
 
  Yes, daloradius has native support for mysql.
  You check on dialupadmin for configuring errors - what is the
  error message that you get?
 
  It is also very useful to turn on mysql logging to see if there's
  even a connection attempt and if there is, what is causing
  the error.
 
  Regards,
  Liran Tal.
 
 
 
 
  
On 28/01/2008, liran tal [EMAIL PROTECTED] wrote:
  
   
Hey Devinder,
   
On Jan 28, 2008 4:35 AM, Devinder Singh [EMAIL PROTECTED]
wrote:
   

 Hi

 I am using Dial Up Admin on Free radius


 Free Radius is Running but when i acccess Dial Up admin page i get
 cannot connect to sql databse

 I have done most of the configuration settings and followed the
 wiki tutorial on Free Radius.

   
Did you check that your sql server is actually running?
Did you import the radius database schema into the sql server?
Did you configure all the required settings to connect to the
sql server in dialupadmin?
   
   
You also might want to take a look at daloRADIUS for easy web
management
of freeradius with sql servers:
http://sourceforge.net/projects/daloradius/
   
   
Regards,
Liran.
   
   
   
   
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
   
   
  
  
  
   --
   Devinder
   -
   List info/subscribe/unsubscribe? See
   http://www.freeradius.org/list/users.html
  
 
 
  -
  List info/subscribe/unsubscribe? See
  http://www.freeradius.org/list/users.html
 



 --
 Devinder




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

Logging from another PC

2008-01-28 Thread javkhlanbaatar
Hi,

I have a question.
When the user logs using own username and password into Radius server (ie,
using 192.168.160.5), it is OK. When someone change IP address statically
into logged IP (to 192.168.160.5), he can use the logged account. I mean
he can use another one's account. How can I block another PC? And I don't
want the user logs often in one day. User must logs once in a day. That's
why I don't want to put Idle-Timeout attribute.


I'm using FreeRadius 2.0.1 with Cisco'BBSM 5.3. Could you give some
clarfication for this?

Thanks


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


Re: Thank you and Diameter question

2008-01-28 Thread Stefan Winter
Hi,

 Well, Diameter seems to be being used as a general purpose messaging
 protocol between IMS network elements these days...

Funny, I thought it is an *authentication, authorisation and accounting* 
protocol. Who would have thought it is abused to do machine-to-machine 
jabbering. This stuff is getting more weird by the hour...

Stefan

-- 
Stefan WINTER

Stiftung RESTENA - Réseau Téléinformatique de l'Education Nationale et de 
la Recherche
Ingenieur Forschung  Entwicklung

6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg
E-Mail: [EMAIL PROTECTED]     Tel.:     +352 424409-1
http://www.restena.lu                Fax:      +352 422473


signature.asc
Description: This is a digitally signed message part.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html