kcc: Give a better error message when samdb_ntds_objectGUID fails
authorAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2019 02:15:08 +0000 (15:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 7 Mar 2019 03:50:20 +0000 (03:50 +0000)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/kcc/kcc_service.c

index 4710d5bcdf5e1e8a406bfef638084cdaeded42ea..89d94f6af268e34337afc79ce02212e8d4bbfb01 100644 (file)
@@ -68,6 +68,7 @@ static WERROR kccsrv_connect_samdb(struct kccsrv_service *service, struct loadpa
 
        ntds_guid = samdb_ntds_objectGUID(service->samdb);
        if (!ntds_guid) {
+               DBG_ERR("Failed to determine own NTDS objectGUID\n");
                return WERR_DS_UNAVAILABLE;
        }