s4: Correct renamed constants
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 31 Jul 2009 16:15:39 +0000 (18:15 +0200)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 31 Jul 2009 16:15:39 +0000 (18:15 +0200)
source4/dsdb/repl/drepl_service.c
source4/rpc_server/netlogon/dcerpc_netlogon.c

index 152bbec4d5f28a99ee86ed5a4d98c09118f1db94..53e4aec7c2a58bb541ba7ed375be5ca1cd0160f4 100644 (file)
@@ -53,12 +53,12 @@ static WERROR dreplsrv_connect_samdb(struct dreplsrv_service *service, struct lo
 
        service->samdb = samdb_connect(service, service->task->event_ctx, lp_ctx, service->system_session_info);
        if (!service->samdb) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        ntds_guid = samdb_ntds_objectGUID(service->samdb);
        if (!ntds_guid) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        service->ntds_guid = *ntds_guid;
index 2095bf6fa5e47814a4d82943fd301cd4d439b752..30c7ccda5548923cef1aff3b55e65892a9695ebe 100644 (file)
@@ -860,13 +860,13 @@ static WERROR dcesrv_netr_GetDcName(struct dcesrv_call_state *dce_call, TALLOC_C
                                dce_call->conn->dce_ctx->lp_ctx,
                                dce_call->conn->auth_state.session_info);
        if (sam_ctx == NULL) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        domain_dn = samdb_domain_to_dn(sam_ctx, mem_ctx,
                                       r->in.domainname);
        if (domain_dn == NULL) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        ret = gendb_search_dn(sam_ctx, mem_ctx,
@@ -1245,7 +1245,7 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call, TA
 
        sam_ctx = samdb_connect(mem_ctx, dce_call->event_ctx, dce_call->conn->dce_ctx->lp_ctx, dce_call->conn->auth_state.session_info);
        if (sam_ctx == NULL) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        /* Win7-beta will send the domain name in the form the user typed, so we have to cope
@@ -1257,7 +1257,7 @@ static WERROR dcesrv_netr_DsRGetDCNameEx2(struct dcesrv_call_state *dce_call, TA
 
        domain_dn = ldb_get_default_basedn(sam_ctx);
        if (domain_dn == NULL) {
-               return WERR_DS_SERVICE_UNAVAILABLE;
+               return WERR_DS_UNAVAILABLE;
        }
 
        ret = gendb_search_dn(sam_ctx, mem_ctx,