libwbclient: Make source4/ use nsswitch/libwbclient
commit2b26522e349803067bae004e4d37d2bca1a1b319
authorVolker Lendecke <vl@samba.org>
Tue, 9 Feb 2016 08:30:09 +0000 (9 09:30 +0100)
committerRalph Boehme <slow@samba.org>
Mon, 22 Feb 2016 19:29:16 +0000 (22 20:29 +0100)
tree217d049fe82207fe999161dff8bbc826c5b95bb6
parent148452b446e020537ac52e96f13a176f2e1c99d2
libwbclient: Make source4/ use nsswitch/libwbclient

Right now there's no async user of this, so I think it's okay to use the
sync libwbclient. If we really get async libwbclient users, we need to
put it there instead of calling the struct protocol directly.

The code before this patch did not look at the _NO_WINBIND environment
variable. So ignore it here too.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source4/libcli/wbclient/wbclient.c
source4/libcli/wbclient/wscript_build