Re: Is this Install Guide Complete?

2010-05-01 Thread Johan Meiring

On 2010/04/30 11:02 PM, Huckle Berry wrote:



I don't see how having newer versions of perl/python could be an issue.
As far as SSL is concerned, see below, as this server will be wiped soon.



The problem is that newer versions could have bugs.
Stable distributions are much better.

The problem is now IMHO an 'invalid guide' to install a later version is out 
there.


I realize that you might your server soon, but others (that may not wipe 
their server soon), may try this.


The backports route is still better.


--


Johan Meiring
Cape PC Services CC
Tel: (021) 883-8271
Fax: (021) 886-7782

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


Re: Is this Install Guide Complete?

2010-05-01 Thread Huckle Berry
OK so one last question before I go and install Lucid on the machine. I set
up SQL authorization and it works fine when I radtest it from several
clients.

SELECT * FROM radcheck WHERE UserName='04:1e:64:d4:3a:11';
++---+---++--+
| id | UserName  | Attribute | op | Value|
++---+---++--+
|  4 | 04:1e:64:d4:3a:11 | Password  | == | asdfasdf |

I then start freeradius -X and it reports it's ready to process requests.

$radtest 04:1e:64:d4:3a:11 asdfasdf 192.168.1.3 1812 testing123
Sending Access-Request of id 56 to 192.168.1.3 port 1812
User-Name = 04:1e:64:d4:3a:11
User-Password = asdfasdf
NAS-IP-Address = 127.0.1.1
NAS-Port = 1812
rad_recv: Access-Accept packet from host 192.168.1.3 port 1812, id=56,
length=20

Yet when I attempt to connect for real, freeradius never receives the
Access-Request. This seems like a NAS issue to me, since FR never even gets
the packet. Currently I have DD-WRT v24 (micro) installed on my WRT54Gv5
router. Under Wireless  Radius I have the option of turning the 'MAC
Radius Client' on. When on, I set it to the following values:

MAC Format: aa:bb:cc:dd:ee:ff
RADIUS Server Address: 192.168.1.3
RADIUS Server Port: 1812
Maximum Unauthenticated Users: 0
Password Format: (*) Shared Key ( ) MAC Address
RADIUS Shared Secret: testing123
Override if RADIUS is unavailable: [ ]

Not sure if anyone uses DD-WRT here. All the guides over at their site
require the use of chillispot or some other AAA service. I've played around
with the values but regardless of the configuration, FR never receives any
packets.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Is this Install Guide Complete?

2010-04-30 Thread Josip Rodin
On Thu, Apr 29, 2010 at 08:11:15PM +, Huckle Berry wrote:
 I added the lenny-backport repo and updated. I then ran
 $sudo apt-get install freeradius
 I cannot copy and paste the output because I'm sshing on my mobile but
 apt essentially reports that libltd13 (1.5.2-2+) is a dependency but
 it cannot be found.

Ah, karmic moved on from LTDL 3. Then you can try moving to the freeradius
package in Debian squeeze which depends on libltdl7. Try using a squeeze
sources.list line, for example:

deb http://ftp.us.debian.org/debian squeeze main

But do remember to comment that out after installing FR! Leaving it in
could easily make it pollute the Ubuntu system with random other packages
later (because unlike lenny-backports, squeeze is marked as suite testing
and will make APT behave differently).

-- 
 2. That which causes joy or happiness.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-30 Thread Huckle Berry
I replaced the apt source, ran apt-get update and let it rip. It updated the
following:

  freeradius-common freeradius-utils libdb4.5 libfreeradius2 libltdl-dev
  libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0 libssl-dev
  libssl0.9.8 perl perl-base perl-modules python2.5 python2.5-minimal
  freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5
  libtool-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
  python2.5-doc python-profiler binfmt-support
  freeradius freeradius-common freeradius-utils libdb4.5 libfreeradius2
  python2.5 python2.5-minimal
  libltdl-dev libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0
  libssl-dev libssl0.9.8 perl perl-base perl-modules

installation worked like a charm, so for future reference the correct
procedure is:
1) edit /etc/apt/sources.list to include deb
http://ftp.us.debian.org/debian squeeze main
2) sudo apt-get install freeradius
3) sudo apt-get install (suggestions from prior command)
4) edit /etc/apt/sources.list to remove deb
http://ftp.us.debian.org/debiansqueeze main

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

Re: Is this Install Guide Complete?

2010-04-30 Thread Jonathan Hutchins
On Friday 30 April 2010 01:21:47 pm Huckle Berry wrote:

 installation worked like a charm, so for future reference the correct
 procedure is:
 1) edit /etc/apt/sources.list to include deb
 http://ftp.us.debian.org/debian squeeze main
 2) sudo apt-get install freeradius
 3) sudo apt-get install (suggestions from prior command)
 4) edit /etc/apt/sources.list to remove deb
 http://ftp.us.debian.org/debiansqueeze main

This goes against recommended package management procedures in Debian.  Mixing 
two different distributions can have unpredictable consequences.  Is there a 
reason for not using the Backports distribution?  Installing from backports 
may not bring in as many new libraries, dependencies, and installs, but the 
system will work with the existing versions.  You should also look into the 
documentation on apt pinning if you insist on mixing releases.

I am running 2.1.8 from lenny backports and it works well for me.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-30 Thread Josip Rodin
On Fri, Apr 30, 2010 at 02:21:47PM -0400, Huckle Berry wrote:
 I replaced the apt source, ran apt-get update and let it rip. It updated the
 following:
 
   freeradius-common freeradius-utils libdb4.5 libfreeradius2 libltdl-dev
   libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0 libssl-dev
   libssl0.9.8 perl perl-base perl-modules python2.5 python2.5-minimal
   freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5
   libtool-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl
   python2.5-doc python-profiler binfmt-support
   freeradius freeradius-common freeradius-utils libdb4.5 libfreeradius2
   python2.5 python2.5-minimal
   libltdl-dev libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0
   libssl-dev libssl0.9.8 perl perl-base perl-modules
 
 installation worked like a charm,

Ah, but you got too much. Now you have Perl, Python, the SSL library and all
those other things with a newer version than those in karmic. That is all
right now, but it means that if e.g. a security update comes out for the
versions in karmic, you won't get it automatically because the version of
the package you have is higher than that of the update. I advised you to
avoid this situation... but now that you've already done it, it would be a
good idea to restore the squeeze sources.list line at least as a comment and
occasionally uncomment it and apt-get install the above package list - which
will pick up any upgrades - and the comment it back. A switch to newer
Ubuntu (lucid) could get all those packages to an upgradable situation, too.

-- 
 2. That which causes joy or happiness.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-30 Thread Jonathan Hutchins
On Friday 30 April 2010 02:33:01 pm Josip Rodin wrote:

 Ah, but you got too much. Now you have Perl, Python, the SSL library and
 all those other things with a newer version than those in karmic.

Josip's explanation and advice remain true for Debian Lenny (and Squeeze).
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-30 Thread Huckle Berry
On Fri, Apr 30, 2010 at 3:33 PM, Josip Rodin j...@entuzijast.net wrote:

 On Fri, Apr 30, 2010 at 02:21:47PM -0400, Huckle Berry wrote:
  I replaced the apt source, ran apt-get update and let it rip. It updated
 the
  following:
 
freeradius-common freeradius-utils libdb4.5 libfreeradius2 libltdl-dev
libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0 libssl-dev
libssl0.9.8 perl perl-base perl-modules python2.5 python2.5-minimal
freeradius-ldap freeradius-postgresql freeradius-mysql freeradius-krb5
libtool-doc perl-doc libterm-readline-gnu-perl
 libterm-readline-perl-perl
python2.5-doc python-profiler binfmt-support
freeradius freeradius-common freeradius-utils libdb4.5 libfreeradius2
python2.5 python2.5-minimal
libltdl-dev libltdl7 libncursesw5 libperl-dev libperl5.10 libsqlite3-0
libssl-dev libssl0.9.8 perl perl-base perl-modules
 
  installation worked like a charm,

 Ah, but you got too much. Now you have Perl, Python, the SSL library and
 all
 those other things with a newer version than those in karmic. That is all


I don't see how having newer versions of perl/python could be an issue. As
far as SSL is concerned, see below, as this server will be wiped soon.


 right now, but it means that if e.g. a security update comes out for the
 versions in karmic, you won't get it automatically because the version of
 the package you have is higher than that of the update. I advised you to
 avoid this situation... but now that you've already done it, it would be a
 good idea to restore the squeeze sources.list line at least as a comment
 and
 occasionally uncomment it and apt-get install the above package list -
 which
 will pick up any upgrades - and the comment it back. A switch to newer
 Ubuntu (lucid) could get all those packages to an upgradable situation,
 too.


I have a feeling that this server will eventually be wiped anyway, it's more
of an experiment right now than anything. Initial tests using radtest showed
positive results, however even after reinstalling with libmysqlclient-dev,
freeradius still fails to start with the error

/etc/freeradius/sites-enabled/default[159]: Failed to find module sql.
/etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.

Which may or may not be related to the versions of the installed packages
and the configuration script's ability to determine what is and is not
installed. I'm assuming at this point that the difference between freeradius
with sql and w/o sql is determined by whether certian header packages are
installed on the system at the time freeradius is complied?

~Matthew Berry


 --
 2. That which causes joy or happiness.
 -
 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: Is this Install Guide Complete?

2010-04-30 Thread Josip Rodin
On Fri, Apr 30, 2010 at 05:02:48PM -0400, Huckle Berry wrote:
  Ah, but you got too much. Now you have Perl, Python, the SSL library and
  all those other things with a newer version than those in karmic.
 
 I don't see how having newer versions of perl/python could be an issue. As
 far as SSL is concerned, see below, as this server will be wiped soon.

Practically any package could need security updates in the future.

For reference,
http://security-tracker.debian.org/tracker/source-package/perl
http://security-tracker.debian.org/tracker/source-package/python2.5

 I have a feeling that this server will eventually be wiped anyway, it's more
 of an experiment right now than anything.

OK, then you should be reasonably safe. Just remember not to do this
in production. :)

 Initial tests using radtest showed positive results, however even after
 reinstalling with libmysqlclient-dev, freeradius still fails to start with
 the error
 
 /etc/freeradius/sites-enabled/default[159]: Failed to find module sql.
 /etc/freeradius/sites-enabled/default[62]: Errors parsing authorize section.
 
 Which may or may not be related to the versions of the installed packages
 and the configuration script's ability to determine what is and is not
 installed. I'm assuming at this point that the difference between freeradius
 with sql and w/o sql is determined by whether certian header packages are
 installed on the system at the time freeradius is complied?

No, assuming you installed a freeradius-*sql package you want, this is
simply a configuration issue - you need to define a sql module, which is
usually done by adding $INCLUDE sql.conf to the modules section of the
configuration, which is done for example by adding an
/etc/freeradius/modules/local-sql.conf file with something like that inside.

-- 
 2. That which causes joy or happiness.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-30 Thread Huckle Berry
On Fri, Apr 30, 2010 at 5:52 PM, Josip Rodin j...@entuzijast.net wrote:

 On Fri, Apr 30, 2010 at 05:02:48PM -0400, Huckle Berry wrote:
   Ah, but you got too much. Now you have Perl, Python, the SSL library
 and
   all those other things with a newer version than those in karmic.
 
  I don't see how having newer versions of perl/python could be an issue.
 As
  far as SSL is concerned, see below, as this server will be wiped soon.

 Practically any package could need security updates in the future.

 For reference,
 http://security-tracker.debian.org/tracker/source-package/perl
 http://security-tracker.debian.org/tracker/source-package/python2.5

  I have a feeling that this server will eventually be wiped anyway, it's
 more
  of an experiment right now than anything.

 OK, then you should be reasonably safe. Just remember not to do this
 in production. :)

  Initial tests using radtest showed positive results, however even after
  reinstalling with libmysqlclient-dev, freeradius still fails to start
 with
  the error
 
  /etc/freeradius/sites-enabled/default[159]: Failed to find module sql.
  /etc/freeradius/sites-enabled/default[62]: Errors parsing authorize
 section.
 
  Which may or may not be related to the versions of the installed packages
  and the configuration script's ability to determine what is and is not
  installed. I'm assuming at this point that the difference between
 freeradius
  with sql and w/o sql is determined by whether certian header packages are
  installed on the system at the time freeradius is complied?

 No, assuming you installed a freeradius-*sql package you want, this is
 simply a configuration issue - you need to define a sql module, which is
 usually done by adding $INCLUDE sql.conf to the modules section of the
 configuration, which is done for example by adding an
 /etc/freeradius/modules/local-sql.conf file with something like that
 inside.


Looking back I did miss that step in the guide.  Overall this process has
been much more straight forward than my last attempt at freeradius. With the
proper documentation i shouldn't have any problem reproducing this on the
new server (less the debian bits)


 --
  2. That which causes joy or happiness.
 -
 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: Is this Install Guide Complete?

2010-04-29 Thread Alan DeKok
Huckle Berry wrote:
 I have a server that is running a relatively clean install of Ubuntu
 9.10 Server. Due to the known licensing issue restrictions I cannot
 simply use the debian freeradius package.

  This was fixed in 2.1.8.

 I would like to know if the
 following outline would install freeradius with support for SSL on my
 server. Comments from those who actually run freeradius on Ubuntu 9.10
 server would be appreciated.

http://wiki.freeradius.org/Build

  Has instructions for building on debian  ubuntu.

  I've updated the Wiki to reflect this.

 These have been the instructions that I have garnered from the Internet
 at large, yet I doubt they are complete. Is there anything the
 freeradius community would like to add?

  Please check out the wiki type ubuntu, and the second or third
page is build, with text about building debian packages.

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


Re: Is this Install Guide Complete?

2010-04-29 Thread Josip Rodin
On Thu, Apr 29, 2010 at 07:55:25AM +0200, Alan DeKok wrote:
 Huckle Berry wrote:
  I have a server that is running a relatively clean install of Ubuntu
  9.10 Server. Due to the known licensing issue restrictions I cannot
  simply use the debian freeradius package.
 
   This was fixed in 2.1.8.
 
  I would like to know if the
  following outline would install freeradius with support for SSL on my
  server. Comments from those who actually run freeradius on Ubuntu 9.10
  server would be appreciated.
 
 http://wiki.freeradius.org/Build
 
   Has instructions for building on debian  ubuntu.
 
   I've updated the Wiki to reflect this.

When someone searches e.g. http://www.google.com/search?q=freeradius+debian
the first result is building from source.

I think you really need to put a link to
http://packages.debian.org/freeradius right at the top of that section.

The text currently there says that building packages with dpkg-buildpackage
is best, but it's actually now second best to installing working packages
from the official repositories.

Also, http://wiki.freeradius.org/Binary_packages is obsolete, but has
some content still, probably confusing to the users. It would be good for
this page to have an explicit pointer to http://freeradius.org/download.html
where there is a section Binary packages (maybe make a HTML anchor too).

-- 
 2. That which causes joy or happiness.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-29 Thread Huckle Berry
On Thu, Apr 29, 2010 at 6:52 AM, Josip Rodin j...@entuzijast.net wrote:

 On Thu, Apr 29, 2010 at 07:55:25AM +0200, Alan DeKok wrote:
  Huckle Berry wrote:
   I have a server that is running a relatively clean install of Ubuntu
   9.10 Server. Due to the known licensing issue restrictions I cannot
   simply use the debian freeradius package.
 
This was fixed in 2.1.8.


 As of this morning, the latest version of freeradius in the (karmic 9.10)
repos is 2.1.0. Although 2.1.8 is availible as a lenny backport for debian,
I get the feeling that your suggestion is to stick with distribution
packages whenever possible. Supposing I wanted to use the debian package to
install 2.1.8 onto my ubuntu system the following (taken from
http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html) should do the trick,
correct?

$dpkg-source -x foo_version-revision.dsc
$cd foo-version
$dpkg-buildpackage -rfakeroot -b
$dpkg -i ../foo_version-revision_arch.deb


 
   I would like to know if the
   following outline would install freeradius with support for SSL on my
   server. Comments from those who actually run freeradius on Ubuntu 9.10
   server would be appreciated.
 
  http://wiki.freeradius.org/Build
 
Has instructions for building on debian  ubuntu.
 
I've updated the Wiki to reflect this.



 The text currently there says that building packages with dpkg-buildpackage
 is best, but it's actually now second best to installing working packages
 from the official repositories.

 Version 2.1.8 is available for the lucid lynx (10.04) which just released
(non-beta) this morning. I'm not a firm believer in 'version 1' software and
generally avoid getting new distro-upgrades the day they come out. However
since 10.04 is a long-term-support I may consider installing it. Do you
think that re-installing the OS is worth it in this case, or will I be fine
running the above and building it from source?


  -
 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: Is this Install Guide Complete?

2010-04-29 Thread Josip Rodin
On Thu, Apr 29, 2010 at 02:07:50PM -0400, Huckle Berry wrote:
I have a server that is running a relatively clean install of Ubuntu
9.10 Server. Due to the known licensing issue restrictions I cannot
simply use the debian freeradius package.
  
 This was fixed in 2.1.8.
 
  As of this morning, the latest version of freeradius in the (karmic 9.10)
 repos is 2.1.0. Although 2.1.8 is availible as a lenny backport for debian,
 I get the feeling that your suggestion is to stick with distribution
 packages whenever possible. Supposing I wanted to use the debian package to
 install 2.1.8 onto my ubuntu system [...]

You shouldn't have to recompile anything in order to use Debian's lenny
packages on Ubuntu's karmic - the latter is just a bit newer base, but there
should be no differences so critical that you couldn't share packages that
are relatively standalone, such as FreeRADIUS packages. You probably can't
share something major like glibc, or something huge like gnome, but FR
should be relatively fine.

Try adding a Debian lenny-backports repository to your sources.list,
for example:

deb http://www.backports.org/debian lenny-backports main

Then update the package list (apt-get update) and then just try installing
the main FreeRADIUS package from there, for example with:

apt-get install -t lenny-backports freeradius

If it errors out or tries to add more than a dozen packages, especially
something that doesn't seem related to FR, abort and paste the output here
for examination.

-- 
 2. That which causes joy or happiness.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Is this Install Guide Complete?

2010-04-29 Thread Huckle Berry
I added the lenny-backport repo and updated. I then ran
$sudo apt-get install freeradius
I cannot copy and paste the output because I'm sshing on my mobile but
apt essentially reports that libltd13 (1.5.2-2+) is a dependency but
it cannot be found.

On 4/29/10, Josip Rodin j...@entuzijast.net wrote:
 On Thu, Apr 29, 2010 at 02:07:50PM -0400, Huckle Berry wrote:
I have a server that is running a relatively clean install of Ubuntu
9.10 Server. Due to the known licensing issue restrictions I cannot
simply use the debian freeradius package.
  
 This was fixed in 2.1.8.

  As of this morning, the latest version of freeradius in the (karmic 9.10)
 repos is 2.1.0. Although 2.1.8 is availible as a lenny backport for
 debian,
 I get the feeling that your suggestion is to stick with distribution
 packages whenever possible. Supposing I wanted to use the debian package
 to
 install 2.1.8 onto my ubuntu system [...]

 You shouldn't have to recompile anything in order to use Debian's lenny
 packages on Ubuntu's karmic - the latter is just a bit newer base, but there
 should be no differences so critical that you couldn't share packages that
 are relatively standalone, such as FreeRADIUS packages. You probably can't
 share something major like glibc, or something huge like gnome, but FR
 should be relatively fine.

 Try adding a Debian lenny-backports repository to your sources.list,
 for example:

   deb http://www.backports.org/debian lenny-backports main

 Then update the package list (apt-get update) and then just try installing
 the main FreeRADIUS package from there, for example with:

   apt-get install -t lenny-backports freeradius

 If it errors out or tries to add more than a dozen packages, especially
 something that doesn't seem related to FR, abort and paste the output here
 for examination.

 --
  2. That which causes joy or happiness.
 -
 List info/subscribe/unsubscribe? See
 http://www.freeradius.org/list/users.html

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


Is this Install Guide Complete?

2010-04-28 Thread Huckle Berry
I have a server that is running a relatively clean install of Ubuntu 9.10
Server. Due to the known licensing issue restrictions I cannot simply use
the debian freeradius package. I would like to know if the following outline
would install freeradius with support for SSL on my server. Comments from
those who actually run freeradius on Ubuntu 9.10 server would be
appreciated.

$cd ~
$apt-get source freeradius
$cd ./freeradius-2.1.0+dfsg
[change ./debian/rules as follows:

change --without-rlm_eap_tls \
--without-rlm_eap_ttls \
--without-rlm_eap_peap \
to --with-rlm_eap_tls \
--with-rlm_eap_ttls \
--with-rlm_eap_peap \

change --without-openssl \
to --with-openssl \
]

[change ./debian/control
add 'libssl-dev' to the end of the line that starts 'Build-Depends:'
]

$fakeroot dpkg-buildpackage -b -uc
$sudo dpkg -i ../freeradius_2.1.0-0_i386.deb

These have been the instructions that I have garnered from the Internet at
large, yet I doubt they are complete. Is there anything the freeradius
community would like to add?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html