s3-libsmb: Remove use of cli_errstr()
[kai/samba.git] / source4 / param / share_ldb.c
index 4517661c66dfc2bda395de6e0dc5b99618bb01be..f4d02b295a3c0ca5633562713df119ba3fe0c960 100644 (file)
 */
 
 #include "includes.h"
-#include "ldb/include/ldb.h"
-#include "ldb/include/ldb_errors.h"
+#include <ldb.h>
+#include <ldb_errors.h>
 #include "auth/auth.h"
 #include "ldb_wrap.h"
 #include "param/share.h"
 #include "param/param.h"
 
+NTSTATUS share_ldb_init(void);
+
 static NTSTATUS sldb_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops, 
                          struct tevent_context *ev_ctx,
                          struct loadparm_context *lp_ctx,
@@ -41,7 +43,7 @@ static NTSTATUS sldb_init(TALLOC_CTX *mem_ctx, const struct share_ops *ops,
        }
        
        sdb = ldb_wrap_connect(*ctx, ev_ctx, lp_ctx,
-                              private_path(*ctx, lp_ctx, "share.ldb"),
+                              lpcfg_private_path(*ctx, lp_ctx, "share.ldb"),
                               system_session(lp_ctx),
                               NULL, 0);