The idea here is that we can provide here functions to make it
possible to hook the Samba4 context-provided loadparm into Samba3's
loadparm callers.
Andrew Bartlett
sleep(2);
}
DEBUG(0,(__location__ ": new s3compat smbd connection\n"));
+ s3replace_set_lp_ctx(conn->lp_ctx);
+
s3compat_set_server_fd(fd);
s3compat_set_event_ctx(conn->event.ctx);
tevent_re_initialise(conn->event.ctx);
{
NTSTATUS status;
const struct model_ops *model_ops;
-
+
model_ops = process_model_startup(task->event_ctx, "standard");
if (model_ops == NULL) {
{
DEBUG(2,("WARNING: krb5_princ_set_realm not implemented in s3replace\n"));
}
+
+static struct loadparm_context *s3replace_lp_ctx;
+
+void s3replace_set_lp_ctx(struct loadparm_context *lp_ctx)
+{
+ s3replace_lp_ctx = lp_ctx;
+}
+
+struct loadparm_context *s3replace_get_lp_ctx(void)
+{
+ return s3replace_lp_ctx;
+}