Problem with schema in Samba4 beta5

Carlos Miguel Bustillo Rodriguez cbustillo at uclv.edu.cu
Mon Jul 23 08:40:08 MDT 2012


Matthieu:

 I applied the patch but don't work.

Regards, Carlos
________________________________________
From: Matthieu Patou [mat at matws.net]
Sent: Wednesday, July 18, 2012 10:35
To: samba-technical at lists.samba.org
Subject: Re: Problem with schema in Samba4 beta5

Hello,

Can you try this patch:

commit 41ade7ffbe6834a344f9666d9f2f673c1f1719ca
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..5f339f5 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 = "";

                 ret = ldb_msg_add_string(msg, "schemaUpdateNow", "1");
                 if (ret != LDB_SUCCESS) {




On 07/17/2012 08:33 AM, Carlos Miguel Bustillo Rodriguez wrote:
> I am using Samba version 4.0.0beta5-GIT-db33ef7
>
> I joined successfully to my Windows Server 2003 DC, but when I run: "samba -i -M single -d2" I get:
>
> Schema update now failed: Invalid DN syntax
> Commit failed: Invalid DN syntax
> Failed to commit objects: WERR_DS_INTERNAL_FAILURE/NT_STATUS_INVALID_NETWORK_RESPONSE
>
> What does this error?? The error appeared when I upgraded Samba4 beta2 to Samba4 beta4 o beta5. But the replication is working between two DCs. However the replication of schema not work:
> ==== INBOUND NEIGHBORS ====
> [...]
> CN=Schema,CN=Configuration,DC=uclv4,DC=cu
>          Default-First-Site-Name\WIN2K3 via RPC
>          DSA object GUID: 469a3ad5-bf32-406b-9fe6-4946f4737a9b
>          Last attempt @ Tue Jul 17 11:26:16 2012 CDT failed, result 58 (WERR_BAD_NET_RESP)
>          44 consecutive failure(s).
>          Last success @ Fri Jul  6 10:19:40 2012 CDT
> [...]
>
> Regards, Carlos
>
> 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
>
>




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