summaryrefslogtreecommitdiff
path: root/source3/nsswitch/wbinfo.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-04-25 05:47:50 +0000
committerAndrew Tridgell <tridge@samba.org>2001-04-25 05:47:50 +0000
commit5f9dca64daea8bf910a66e1178ad0336628fdc9f (patch)
tree16e3da57db7ae142a68559ff1031bfcede85ac85 /source3/nsswitch/wbinfo.c
parent77076b01d286ad296930cd83cafc3a4bf0ae5db6 (diff)
downloadsamba-5f9dca64daea8bf910a66e1178ad0336628fdc9f.tar.gz
samba-5f9dca64daea8bf910a66e1178ad0336628fdc9f.tar.bz2
samba-5f9dca64daea8bf910a66e1178ad0336628fdc9f.zip
merge some of the nsswitch code from tng to head
the libnss_winbind.so from head now works with the winbindd from tng (This used to be commit 67ccfd2826548a6ca22562f9fb3ae156a57bd7db)
Diffstat (limited to 'source3/nsswitch/wbinfo.c')
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index cff2b8b69a..1a51a5b610 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -101,10 +101,11 @@ static BOOL wbinfo_check_secret(void)
if (result) {
- if (response.data.num_entries) {
+ if (response.data.num_entries == 0) {
printf("Secret is good\n");
} else {
- printf("Secret is bad\n");
+ printf("Secret is bad\n0x%08x\n",
+ response.data.num_entries);
}
return True;
@@ -447,8 +448,8 @@ int main(int argc, char **argv)
return 1;
}
break;
-
- /* Invalid option */
+
+ /* Invalid option */
default:
usage();