mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
9a872fb616
when looking up the WINS server address.
Please *don't* use lp_wins_server() any more!
The wins_srv_ip() function has the following features:
- If the WINS server was entered as a DNS name then the translation to an
IP address will already have taken place. We used to do this every time
a call to the WINS server was made. Ick.
- The return value of wins_srv_ip() is a struct in_addr. Ready to go.
- When WINS failover is fully implemented, you'll be able to enter a colon-
separated list of WINS servers via the WINS SERVER parameter. Using
lp_wins_server() directly will fail if this syntax is used.
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