Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-29 Thread Cumali Ceylan
I was debugging nginx with pam configuration for a while. I built libpam with debug option and investigated logs of it in order to find out overhead of it. My system is an embedded Linux system with NXP/Freescale Vybrid VF6x processor. if a http request takes a 100-200 ms from the browser side

Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-23 Thread Cumali Ceylan
I built libpam --with-debug configuration and collect logs while logging with nginx and saw that libpam opens configurations and parses them at each single request. I think this is the problem. Is there anyone how to solve this issue ? Kind regards, Cumali Ceylan On 05/12/2017 05:22 PM, Cu

Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-12 Thread Cumali Ceylan
No it seems good to me. In addition, I tried to install nscd upon a suggestion but it didn't make a difference. I can see that the nscd cahces the user in its log file. On 05/12/2017 05:13 PM, Jared Mulder wrote: are your shell logins slow as well? sometimes PAM behaves like this. Live long

Re: Page loading is very slow with ngx_http_auth_pam_module

2017-05-12 Thread Jared Mulder
are your shell logins slow as well? sometimes PAM behaves like this. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Thu, May 11, 2017 at 1:48 PM, Cumali Ceylan wrote: > Hello, > > I built nginx with ngx_

Page loading is very slow with ngx_http_auth_pam_module

2017-05-11 Thread Cumali Ceylan
Hello, I built nginx with ngx_http_auth_pam_module, setup linux-pam for local passwords with pam_unix module and setup nginx to use this pam config. Linux-pam config file is below: authsufficient pam_unix.so nullok account required pam_unix.so When I did this, loading of page is ve