What configuration file does ocserv read for PAM settings?

Tony Zhou tonytzhou at gmail.com
Thu Nov 14 08:02:50 EST 2013

OK I found where is the problem. I have a space in the password so 
somehow either PAM or ocserv has problem parsing this, and does NOT send 
it to RADIUS. Removing the space and authentication works.

Now it's the problem to get VPN connections working...I'll open another 


On 11/14/2013 7:33 AM, Nikos Mavrogiannopoulos wrote:
> On Thu, Nov 14, 2013 at 1:13 PM, Tony Zhou <tonytzhou at gmail.com> wrote:
>> Hi Nikos,
>> pam_unix works for authentication. I suppose it could be an issue with the
>> PAM module of RADIUS... Here's the log when I am trying to connect from
>> Android client.
> Do you see any relevant PAM messages in the log of your system? I'd
> also suggest to edit pam.c and increase PAM_STACK_SIZE to 512*1024. It
> may be that pam_radius uses more stack size than the other pam modules
> (although I don't think you're in that case).
> If nothing of the above helps and you're interested in debugging the
> issue, I'll send you a pam.c with more debugging information enable to
> see what's going wrong.
> regards,
> Nikos

More information about the openconnect-devel mailing list