Apache + PAM + Winbind缓慢login

由于将我们旧的Debian Lenny服务器升级到了Ubuntu 12.04,我们注意到间歇性的访问Apache速度缓慢或失败。 许多或大多数Web请求都能正常工作,但偶尔,Subversion客户端会在等待回复时有效locking,Firefox将加载很长时间,然后重新请求密码等。

这在使用Subversion客户端时非常明显,大概是因为Subversion客户端发出的所有WebDAV请求,但偶尔会发生访问Web服务器托pipe的其他页面的情况。

这是一个标准的Apache + mod_auth_pam设置:

<Location /software> AuthType Basic AuthName "Subversion" AuthBasicAuthoritative off AuthPam_Enabled on require group engineering </Location> 

这是一个标准的PAM和Winbind设置。 我已经将www-data添加到winbindd_priv组,因为(据我所知),这有助于Apache进行Winbind身份validation。

我们还没有看到任何其他的Winbind问题。 例如,SSHlogin工作得很好(虽然,因为我们经常使用公钥authentication,也许我们只是没有遇到问题)。

打开Winbind和Apache的日志级别,可以发现一些偶然的通信问题,但是为什么没有解释:

/var/log/samba/log.winbindd:

 [2014/04/02 11:41:36.837645, 3] winbindd/winbindd_misc.c:384(winbindd_interface_version) [32654]: request interface version [2014/04/02 11:41:36.837720, 2] winbindd/winbindd.c:732(winbind_client_response_written) Could not write response[32654:INTERFACE_VERSION] to client: Broken pipe [2014/04/02 11:41:36.837789, 3] winbindd/winbindd_getpwnam.c:56(winbindd_getpwnam_send) getpwnam jkelley [2014/04/02 11:41:36.837984, 3] winbindd/winbindd_misc.c:384(winbindd_interface_version) [32655]: request interface version [2014/04/02 11:41:36.838057, 2] winbindd/winbindd.c:732(winbind_client_response_written) Could not write response[32655:INTERFACE_VERSION] to client: Broken pipe 

/var/log/apache2/error.log:

 [Wed Apr 02 11:41:38 2014] [error] [client 10.75.20.168] PAM: user 'jkelley' - not authenticated: Authentication failure [Wed Apr 02 11:41:38 2014] [error] [client 10.75.20.168] PAM: user 'jkelley' - not authenticated: Authentication failure 

任何想法,以什么是错的? 任何关于下一个问题的build议?