summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-05-13 00:23:49 +0000
committerTim Potter <tpot@samba.org>2002-05-13 00:23:49 +0000
commit7f92954145400801a25557eda64d09ba51ffc212 (patch)
treeb93bfa2b2b74f17359b174e48948bbf225ecc7f5 /source3
parent7f807117d782b81e83a9181d337275a36eeeb301 (diff)
downloadsamba-7f92954145400801a25557eda64d09ba51ffc212.tar.gz
samba-7f92954145400801a25557eda64d09ba51ffc212.tar.bz2
samba-7f92954145400801a25557eda64d09ba51ffc212.zip
Merge of secrets_init() paranoia fix from 2.2
(This used to be commit e24f6288b63b950d7e8fee80759a94d6acd8cfa6)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index e9ee2a7693..4f64790236 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -785,7 +785,12 @@ int main(int argc, char **argv)
load_interfaces();
- secrets_init();
+ if (!secrets_init()) {
+
+ DEBUG(0,("Could not initialize domain trust account secrets. Giving up\n"));
+ return 1;
+
+ }
/* Get list of domains we look up requests for. This includes the
domain which we are a member of as well as any trusted