artaxerxe | 1 Feb 2012 13:06
Picon

Test failure after I installed successfully freeradius

Hello!

I installed FreeRADIUS 2.1.10 on CentOS 6.2 via yum. The problem is that
when I try to make a test, I get the following message:

# radtest "John Doe" hello 127.0.0.1 0 radiussecret
radclient:: Failed to find IP address for artaxerxe
radclient: Nothing to send.

artaxerxe is my hostname.

So, can anybody explain me why it doesn't work?

Thanks!

N.B.

the /etc/raddb/users file:

...

"John Doe"	Auth-Type := Local, User-Password == "hello"
                Reply-Message = "Hello, %{User-Name}"

...

When I run radius in debug mode:

# radiusd -XXX
Wed Feb  1 13:58:13 2012 : Info: FreeRADIUS Version 2.1.10, for host
(Continue reading)

Alan DeKok | 1 Feb 2012 14:30
Favicon
Gravatar

Re: Test failure after I installed successfully freeradius

artaxerxe wrote:
> I installed FreeRADIUS 2.1.10 on CentOS 6.2 via yum. The problem is that
> when I try to make a test, I get the following message:
> 
> # radtest "John Doe" hello 127.0.0.1 0 radiussecret
> radclient:: Failed to find IP address for artaxerxe
> radclient: Nothing to send.
> 
> artaxerxe is my hostname.

  No, it's not.  You don't have DNS set up.

> So, can anybody explain me why it doesn't work?

  Edit radtest to use something else for the NAS name.

> the /etc/raddb/users file:
> 
> ...
> 
> "John Doe"	Auth-Type := Local, User-Password == "hello"

  That's wrong.  Very, very wrong.

  Delete the "Auth-Type := Local".  It's useless.

  Change "User-Password ==" to "Cleartext-Password :=".  This is in the FAQ.

  Alan DeKok.
-
(Continue reading)

giusva | 1 Feb 2012 20:46
Favicon

CHAP in freeradius-client

Hi,

I noticed that the case PW_CHAP_PASSWORD is disabled in
sendserver.c:rc_pack_list(), any idea what state CHAP support is in (and
if/what needs fixing)?

Thanks,
Giuseppe

--
View this message in context: http://freeradius.1045715.n5.nabble.com/CHAP-in-freeradius-client-tp5448550p5448550.html
Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

Alan DeKok | 2 Feb 2012 08:10
Favicon
Gravatar

Re: CHAP in freeradius-client

giusva wrote:
> I noticed that the case PW_CHAP_PASSWORD is disabled in
> sendserver.c:rc_pack_list(), any idea what state CHAP support is in (and
> if/what needs fixing)?

  You probably shouldn't be using CHAP for any new deployments.

  The CHAP code in freeradius-client doesn't work.  I don't know what it
would take to fix it.

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

artaxerxe | 2 Feb 2012 08:35
Picon

How to install freeradius-postgresql and freeradius-utils from source.

Hello!

I installed freeradius 2.1.10 on my centos 6.2 from source. But I need to
install the freeradius-postgresql and freeradius-utils also from source. Can
anybody give me some hints on how to achieve this? 

Thanks.

--
View this message in context: http://freeradius.1045715.n5.nabble.com/How-to-install-freeradius-postgresql-and-freeradius-utils-from-source-tp5449886p5449886.html
Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

artaxerxe | 2 Feb 2012 10:41
Picon

Need help on installing FR with postgresql.

Hello!

I installed FR in my CentOS 6.2 from source. Doing a radtest on it, works
good with files authentication. I try to change the authentication to sql
mode, and I get the following error when I start FR:

Thu Feb  2 11:30:36 2012 : Error: Could not link driver rlm_sql_postgresql:
rlm_sql_postgresql.so: cannot open shared object file: No such file or
directory
Thu Feb  2 11:30:36 2012 : Error: Make sure it (and all its dependent
libraries!) are in the search path of your system's ld.
Thu Feb  2 11:30:36 2012 : Error:
/netnfork/radius-server//etc/raddb/sql.conf[22]: Instantiation failed for
module "sql"
Thu Feb  2 11:30:36 2012 : Error:
/netnfork/radius-server//etc/raddb/sites-enabled/default[177]: Failed to
load module "sql".
Thu Feb  2 11:30:36 2012 : Error:
/netnfork/radius-server//etc/raddb/sites-enabled/default[69]: Errors parsing
authorize section.

When I installed the FR, I put a --prefix=/my/path to the ./configure
command. The resulted warnings, that are related to my problem, are: 

...
configure: WARNING: silently not building rlm_sql_postgresql.
configure: WARNING: FAILURE: rlm_sql_postgresql requires:  libpq-fe.h libpq.
...

I want to use FR with postgresql, and I have postgresql installed on my
(Continue reading)

Fajar A. Nugraha | 2 Feb 2012 10:53

Re: Need help on installing FR with postgresql.

On Thu, Feb 2, 2012 at 4:41 PM, artaxerxe <mapandrei <at> gmail.com> wrote:
> Hello!
>
> I installed FR in my CentOS 6.2 from source.

Why?

The package works just fine. You CAN rebuild it to 2.1.12 (or wait
until 2.2.0), but really, the bundled version should work fine for
most purposes.

> configure: WARNING: FAILURE: rlm_sql_postgresql requires:  libpq-fe.h libpq.

Do you have those two files?

> I also tried to run the following:
> # ./configure --prefix=/my/path/
> --with-postgresql-include-dir=/usr/pgsql-9.1/lib/ | grep -i WARNING
> but with the same WARNING.
>
> Can anybody help me on this?

I don't have access to RH's spec file right now, but here's what's
used on debian/rules:

                --with-rlm_sql_postgresql_lib_dir=`pg_config --libdir` \
                --with-rlm_sql_postgresql_include_dir=`pg_config --includedir` \

--

-- 
Fajar
(Continue reading)

artaxerxe | 2 Feb 2012 11:01
Picon

Re: Need help on installing FR with postgresql.

I want to install it from source because I want to have it installed under a
specific directory. That's why I try to install it from source.

--
View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-installing-FR-with-postgresql-tp5450161p5450194.html
Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html

Alan Buxey | 2 Feb 2012 11:13
Picon
Favicon

Re: Need help on installing FR with postgresql.

Hi,

> Thu Feb  2 11:30:36 2012 : Error: Could not link driver rlm_sql_postgresql:
> rlm_sql_postgresql.so: cannot open shared object file: No such file or
> directory

not built with psql support - install the psql-devel package then re-run
configure and rebuild

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

artaxerxe | 2 Feb 2012 11:45
Picon

Re: Need help on installing FR with postgresql.

Thanks Alan for reply.

I installed postgresql91-devel, restart the system, but  get the same
errors.

--
View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-installing-FR-with-postgresql-tp5450161p5450304.html
Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html


Gmane