summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-06-30 15:30:13 +1000
committerAndrew Bartlett <abartlet@samba.org>2009-06-30 15:30:13 +1000
commit4e58c7881e2730c2c6c2917d22b475fb289668ac (patch)
tree7013574600bb56745a9f77a211460c1256cd5541
parent49e5b83aa93176ed1c942d2bb55258be816fe983 (diff)
downloadsamba-4e58c7881e2730c2c6c2917d22b475fb289668ac.tar.gz
samba-4e58c7881e2730c2c6c2917d22b475fb289668ac.tar.bz2
samba-4e58c7881e2730c2c6c2917d22b475fb289668ac.zip
s4:ldb Allow rootdse module to build without ldb_private.h
It seems quite reasonable to allow modules to re-initialise the set of cached DNs on the ldb context. Andrew Bartlett
-rw-r--r--source4/dsdb/samdb/ldb_modules/rootdse.c3
-rw-r--r--source4/lib/ldb/include/ldb_module.h2
-rw-r--r--source4/lib/ldb/include/ldb_private.h1
3 files changed, 4 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c
index a02a12e397..29c4f5958f 100644
--- a/source4/dsdb/samdb/ldb_modules/rootdse.c
+++ b/source4/dsdb/samdb/ldb_modules/rootdse.c
@@ -21,7 +21,8 @@
*/
#include "includes.h"
-#include "lib/ldb/include/ldb_private.h"
+#include "lib/ldb/include/ldb.h"
+#include "lib/ldb/include/ldb_module.h"
#include "system/time.h"
#include "dsdb/samdb/samdb.h"
#include "version.h"
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index d9950d6649..cc24d8a6c0 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -166,4 +166,6 @@ int ldb_module_done(struct ldb_request *req,
int ldb_mod_register_control(struct ldb_module *module, const char *oid);
+void ldb_set_default_dns(struct ldb_context *ldb);
+
#endif
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h
index 6946ca2182..3cda9a3e33 100644
--- a/source4/lib/ldb/include/ldb_private.h
+++ b/source4/lib/ldb/include/ldb_private.h
@@ -117,7 +117,6 @@ struct ldb_context {
int ldb_connect_backend(struct ldb_context *ldb, const char *url, const char *options[],
struct ldb_module **backend_module);
-void ldb_set_default_dns(struct ldb_context *ldb);
extern const struct ldb_module_ops ldb_objectclass_module_ops;