Hi, The socket which is opened in write_sock() from wb_common.c is never closed in pam_winbind.c. The attached patch fixes the problem for me in the pam winbind module. -timo