Problem with schema in Samba4 beta5

Carlos Miguel Bustillo Rodriguez cbustillo at uclv.edu.cu
Mon Jul 23 11:47:26 MDT 2012


Matthieu:

Congratulations!!, Its work!!!
Thank you for your time and help.

I think is necessary add this patch to master branch.

Regards, Carlos
________________________________________
From: Matthieu Patou [mat at matws.net]
Sent: Monday, July 23, 2012 11:56
To: Carlos Miguel Bustillo  Rodriguez
Subject: Re: Problem with schema in Samba4 beta5

Can you try this one:

commit c046de2138f20335281dd44db0d8a00a4495b868
Author: Matthieu Patou <mat at matws.net>
Date:   Wed Jul 18 08:33:23 2012 -0700

     drs: DN for schemaUpdateNow shouldn't be null

diff --git a/source4/dsdb/repl/replicated_objects.c
b/source4/dsdb/repl/replicated_objects.c
index ec4dffe..1e46684 100644
--- a/source4/dsdb/repl/replicated_objects.c
+++ b/source4/dsdb/repl/replicated_objects.c
@@ -650,7 +650,7 @@ WERROR dsdb_replicated_objects_commit(struct
ldb_context *ldb,
                 if (msg == 0) {
                         return WERR_NOMEM;
                 }
-               msg->dn = NULL;
+               msg->dn = ldb_dn_new(msg, ldb, "");

                 ret = ldb_msg_add_string(msg, "schemaUpdateNow", "1");



If not working I'll have to setup 2 DC and do schema change to see how
the replication problem occur.

Matthieu.

La Universidad Central "Marta Abreu" de Las Villas en su 60 Aniversario. Fundada el 30 de noviembre de 1952. Vis?tenos en:  http://www.uclv.edu.cu




More information about the samba-technical mailing list