Problem: Samba DRS Replication Fails With "The operation cannot be performed"

Problem

Errors are reported when running
samba-tool drs showrepl

Error might be:

  1. ERROR(runtime): DsReplicaGetInfo of type 0 failed - (-1073610699, 'The operation cannot be performed.')
  2. Samba DRS CRITICAL: (3221356597, 'The operation cannot be performed.')

→ 1. Environment

UCS 4.2

→ 2. Environment

UCS 4.3, 4.4

Solution

  1. Install UCS 4.2 errata update 497 based on this bug.
  2. Check /var/log/samba/log.samba for deleted or tombstone objects that remains. To fix this issue remove these objects via ldbdel

Investigation

Due to some incompatibilities the only command to restart Samba-related services is
/etc/init.d/samba restart
All other commands are not working.
The scheduled password renewal procedure in UCS used still the wrong commands so the replication failed because the services where not restarted.