Winbind client-side cleanups.
authorAndrew Bartlett <abartlet@samba.org>
Sat, 7 Sep 2002 05:41:23 +0000 (05:41 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 7 Sep 2002 05:41:23 +0000 (05:41 +0000)
commit885f4f9379b48e74de132d6e6c24f11e8b06ce26
tree295d933dd14a3a0d0a79fb86da5a30589ee1a7dd
parentec4f2af04a09a50e87a95c0ad494a581b0364f03
Winbind client-side cleanups.

The global winbind file descriptor can cause havoc in some situations -
particulary when it becomes 0, 1 or 2.  This patch (based on some very nice
work by Hannes Schmidt <mail@schmidt-net.via.t-online.de>) starts to recitfy
the problem by ensuring that the close-on-exec flag is set, and that we move
above 3 in the file descriptor table.

I've also decided that the PAM module can close it's pipe handle on every
request - this isn't performance-critical code.

The next step is to do the same for nss_winbind.  (But things like getent()
might get in our way there).

This also cleans up some function prototypes, puts them in just one place.

Andrew Bartlett
(This used to be commit 442eb39657b98f67cd229ed3110b63aae8bf4e3c)
source3/include/includes.h
source3/include/smb.h
source3/nsswitch/pam_winbind.c
source3/nsswitch/pam_winbind.h
source3/nsswitch/wb_common.c
source3/nsswitch/wbinfo.c
source3/nsswitch/winbind_nss.c
source3/nsswitch/winbind_nss_config.h