On 08/17/2012 04:23 AM, Бедняков Алексей wrote:
Maybe FreeRADIUS enviroment variables work different in debugging and service modes? Or I miss something else?
Well, I'm not too sure what your actually doing because what you posted appears to be an apache log but to answer your question concerning environment variables, yes of course the handling of environment variables are different when run from init. Generally whatever launches daemons (there are different mechanisms) will not pass environment variables to the daemon. This is for security reasons. If memory serves me correctly there are a handful of special environment variables that do get passed, but in general the answer is system daemons with root privileges execute in a clean environment. John -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
Hello Aleksey I think this is permission problem. radiusd is running under non-root UNIX user when launched by Ubuntu-provided init script. Check that /var/www/html/radius-client.php is readable by this user. Бедняков Алексей wrote:
Hi,
I'm trying to configure Freeradius with MOTP <http://motp.sourceforge.net/> by MOTP-AS <http://motp-as.network-cube.de/index.php/project/features-information> authentication framework as shown in documentation <http://motp-as.network-cube.de/index.php/documentation/installation>. In debugging mode this works perfectly. Here is complete output <http://paste.ubuntu.com/1150699/> of radiusd -X (client 192.168.1.132 with secret word "12345" successfully authenticates with name "a.bednyakov" and password "929450" provided by MOTP).
But starting with `service radiusd start` I get this <http://paste.ubuntu.com/1150663/> error message in radius.log. Script that getting client's secret word still works:
[root@motp-a radius]# php /var/www/html/radius-client.php secret 192.168.1.132 12345[root@motp-a radius]#
Maybe FreeRADIUS enviroment variables work different in debugging and service modes? Or I miss something else?
------------------------------------------------------------------------
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (3)
-
Iliya Peregoudov -
John Dennis -
Бедняков Алексей