1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source3/nsswitch
Christopher R. Hertel 3c9e410c34 Instead of handing back a string (which might be a DNS name or an IP
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 73aa188320)
2000-07-19 05:32:43 +00:00
..
pam_winbind.c in head as well ... 2000-05-10 14:17:21 +00:00
README added basic nsswitch support - this allows you to use a "wins" entry 1999-12-17 06:11:25 +00:00
wb_client.c Add local fallback for name lookup if no winbindd running... 2000-07-11 01:04:09 +00:00
wb_common.c Renamed a parameter in init_request() function. 2000-07-17 02:37:11 +00:00
wbinfo.c Merge of wbinfo program from TNG. 2000-07-05 11:24:26 +00:00
winbind_nss_config.h Fixes for IRIX kernel oplocks and systems that don't have nss.h 2000-06-20 00:32:32 +00:00
winbind_nss.c - changed smb_getpwnam() to use winbind style usernames 2000-05-10 14:48:33 +00:00
winbindd_cache.c While we're all making incompatible tdb changes, I changed the implementation 2000-05-12 06:27:35 +00:00
winbindd_group.c use "winbind separator" in tng as well 2000-05-12 06:27:34 +00:00
winbindd_idmap.c While we're all making incompatible tdb changes, I changed the implementation 2000-05-12 06:27:35 +00:00
winbindd_nss.h Merge of wbinfo program from TNG. 2000-07-05 11:24:26 +00:00
winbindd_pam.c moved secrets handling into secrets.c 2000-06-03 06:16:11 +00:00
winbindd_proto.h brought the winbindd code into head 2000-05-09 11:43:00 +00:00
winbindd_user.c use "winbind separator" in tng as well 2000-05-12 06:27:34 +00:00
winbindd_util.c Moved winbind client functions from various odd locations to 2000-07-10 05:40:43 +00:00
winbindd.c brought the winbindd code into head 2000-05-09 11:43:00 +00:00
winbindd.h in head as well ... 2000-05-10 14:17:21 +00:00
wins.c Instead of handing back a string (which might be a DNS name or an IP 2000-07-19 05:32:43 +00:00

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