Univention Bugzilla – Bug 43041
wait_for_drs_replication(): skip if no domain found
Last modified: 2017-04-04 18:29:21 CEST
Created attachment 8239 [details] patch I often have the problem when starting a UCS@school test script on a UCS@school Multiserver DC Master. If these test scripts contain wait_for_drs_replication() they always wait 5 minutes in each call with the same dump error message: Waiting for DRS replication, filter: 'foo=bar' Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' . Error during samdb.search: ldb_search: invalid basedn '(null)' … We should either ignore this and return immediately or raise an Exception. Patch for the first one is attached. @Arvid: Do you have an opinion about this?
Ok, I think is UCS@school we solved this by running samba-tool drs showrepl "$ldap_master" || exit 0 or something along that line, which fails if there is no DRS replication with the "$ldap_master". Actually that should better be the host which advertises "univentionService=S4 Connector", in the odd case, where it's run on a DC Backup.
ucs-test (7.0.6-47): r75733 | Bug #43041: stupid samba lib return string 'None' r75732 | Bug #43041: skip wait_for_drs_replication if no samba domain is found. otherwise this takes ages
OK, looks good.
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".