mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
3c9e410c34
string), the wins_srv module now hands back a struct in_addr when it's
called. It caches the IP address once it has been looked up. The IP
is cleared (and must be looked up again) if the 'wins server' parameter
is reread, or if the node is marked 'dead'. A dead node will not be
re-tried for 10 minutes (per a #define in wins_srv.c).
As it was, the code was reading the WINS server name or IP directly from
lp_wins_server. That's okay, except that if the value was expressed as
a name, then a DNS lookup would be done every time the client wanted to
talk to the server.
I still need to work out the implications of failover regarding the
'unicast subnet' list.
Chris -)-----
(This used to be commit
|
||
---|---|---|
.. | ||
pam_winbind.c | ||
README | ||
wb_client.c | ||
wb_common.c | ||
wbinfo.c | ||
winbind_nss_config.h | ||
winbind_nss.c | ||
winbindd_cache.c | ||
winbindd_group.c | ||
winbindd_idmap.c | ||
winbindd_nss.h | ||
winbindd_pam.c | ||
winbindd_proto.h | ||
winbindd_user.c | ||
winbindd_util.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