Problem: Samba Replication Error with "WERR_BAD_NET_RESP"

Problem: Samba Replication Error with “WERR_BAD_NET_RESP”

You might notice errors in Nagios monitoring, diagnose module or by executing samba-tool drs showrepl:

        Default-First-Site-Name\SDC via RPC
                DSA object GUID: 0a989f75-b8b8-4ae4-a6d3-b1a66fa1f895
                Last attempt @ Mon Dec  7 11:58:50 2015 CET failed, result 58 (WERR_BAD_NET_RESP)


WERR_BAD_NET_RESP usually is a hint to a failed network connection between the two servers. Try to replicate again after you have verified network is fine:

samba-tool drs replicate <TARGET_SRV_NAME> <SOURCE_SRV_NAME> <CN=Configuration,DC=mydomain,DC=lan> --full-sync

Please choose your defect partition to replicate! In this example we sync the configuration partition!

Additional Hint

Also other, less common, reasons may lead into this situation. To analyze further have a look into your /var/log/samba/log.samba and search for any Traceback or Error.

  • A deleted object might block the actual replication due to a conflicting tombstone object. This happens most if a deleted object is restored. In order to repair the replication you have to delete the conflicting object.
ldbdel -H /var/lib/samba/private/sam.ldb <DN-of-conflicting-object> [--relax]