Thanks for spotting the missing "realm" section that helped with my first
problem.
I am trying to get the tls connection between the two radsecproxy endpoints. As soon as I
get that going I will be testing the work around for the pthread_stack_size
Regards,
Sandeep K V
________________________________
From: Fabian Mauchle <fabian.mauchle(a)switch.ch>
Sent: Tuesday, January 23, 2018 12:01:02 AM
To: Sandeep Vadiraj; radsecproxy(a)lists.nordu.net
Subject: Re: [radsecproxy] Fw: radsecproxy v1.6.9 on mips
Hi Sandeep,
On 22.01.18 23:56, Sandeep Vadiraj wrote:
We are trying to build the radsecproxy for a mips
platform. We are
successfully able to make a cross platform build of 1.6.6 and install
on the device. But when I try to make a connection to the server at
the other end running 1.6.9 proxy it fails. Are these two versions
compatible? [Encl. radsecproxy_ap.conf and radsecproxy_server.conf]
Generally yes,
they are compatible. The RADIUS protocol hasn't changed.
BTW. your radsecproxy_ap.conf doesn't include any realm config. This config
shouldn't even start.
Another question is when we make a crossplatform build
of 1.6.9 the build is successful but when we try to start the service on the mips device.
It actually fails with the following error message
# /usr/sbin/radsecproxy
pthread_attr_setstacksize failed.
Looking at the discussions in the mailing list tried adding the code below to
radsecproxy.h:
#define PTHREAD_STACK_SIZE 32768
+#if defined(PTHREAD_STACK_MIN)
+#if PTHREAD_STACK_MIN > PTHREAD_STACK_SIZE
+#undef PTHREAD_STACK_SIZE
+#define PTHREAD_STACK_SIZE PTHREAD_STACK_MIN
+#endif
+#endif
Still I could not get it working as it fails with the same error message. Is there any
work around for this issue?
This highly depends on your platform. Your pthread
implementation doesn't like the given values for the stack size.
You have 2 options: one, find a suitable/compatible value for PTHRAD_STACK_SIZE and put
that in the header. Or second, remove the call to pthread_attr_setstacksize at the
beginning of radsecproxy_main() (in radsecproxy.c).
HTH.
Best regards,
Fabian
--
SWITCH
Fabian Mauchle, Network Engineer
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 30, direct +41 44 268 15 39
fabian.mauchle(a)switch.ch,
www.switch.ch<http://www.switch.ch>