mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
885f4f9379
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
|
||
---|---|---|
.. | ||
.cvsignore | ||
hp_nss_common.h | ||
hp_nss_dbdefs.h | ||
nss.h | ||
pam_winbind.c | ||
pam_winbind.h | ||
README | ||
wb_client.c | ||
wb_common.c | ||
wbinfo.c | ||
winbind_nss_config.h | ||
winbind_nss_solaris.c | ||
winbind_nss.c | ||
winbindd_ads.c | ||
winbindd_cache.c | ||
winbindd_cm.c | ||
winbindd_dual.c | ||
winbindd_group.c | ||
winbindd_idmap.c | ||
winbindd_misc.c | ||
winbindd_nss.h | ||
winbindd_pam.c | ||
winbindd_rpc.c | ||
winbindd_sid.c | ||
winbindd_user.c | ||
winbindd_util.c | ||
winbindd_wins.c | ||
winbindd.c | ||
winbindd.h | ||
wins.c |
This extension provides a "wins" module for NSS on glibc2/Linux. This allows you to use a WINS entry in /etc/nsswitch.conf for hostname resolution, allowing you to resolve netbios names via start unix gethostbyname() calls. The end result is that you can use netbios names as host names in unix apps. 1) run configure 2) run "make nsswitch" 3) cp nsswitch/libnss_wins.so /lib/libnss_wins.so.2 4) add a wins entry to the hosts line in /etc/nsswitch.conf 5) use it tridge@linuxcare.com