diff options
author | Andrew Bartlett <abartlet@samba.org> | 2007-03-07 04:20:10 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:49:20 -0500 |
commit | 847102c6ca17f7b7d665863b8caa1d85baef46ad (patch) | |
tree | 13515b11aa4db066bc013c9a5a484ae06eff54f3 /source4/lib/ldb | |
parent | b0b31f52f7614a910dda5c227fa478d6dc5d8841 (diff) | |
download | samba-847102c6ca17f7b7d665863b8caa1d85baef46ad.tar.gz samba-847102c6ca17f7b7d665863b8caa1d85baef46ad.tar.bz2 samba-847102c6ca17f7b7d665863b8caa1d85baef46ad.zip |
r21736: Fix the smbclient test to do something more interesting with the last
few authentication tests. Now that the tests correctly 'fail', I was
able to fix the credentials subsystem to honour USER and PASSWD.
To get --machine-pass working, I needed ldb to always load it's static
modules, so I put this in ldb_connect().
Andrew Bartlett
(This used to be commit 3430d8c072407a1c33c32229095fc9db2142b6fa)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c index 268756dc93..5b3520766d 100644 --- a/source4/lib/ldb/common/ldb.c +++ b/source4/lib/ldb/common/ldb.c @@ -232,6 +232,9 @@ int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, co { int ret; + /* We seem to need to do this here, or else some utilities don't get ldb backends */ + ldb_global_init(); + ldb->flags = flags; ret = ldb_connect_backend(ldb, url, options, &ldb->modules); |