Revert "s4:ldb_msg - Use LDB constants on results"
[ira/wip.git] / source4 / lib / ldb / common / ldb_msg.c
index 09173253d0341178168776243b0a74266449dc6e..bf607fd4e6dcd6d542f237559fd98478257a7ff8 100644 (file)
@@ -897,15 +897,16 @@ int ldb_msg_check_string_attribute(const struct ldb_message *msg, const char *na
        
        el = ldb_msg_find_element(msg, name);
        if (el == NULL) {
-               return LDB_SUCCESS;
+               return 0;
        }
 
        val.data = discard_const_p(uint8_t, value);
        val.length = strlen(value);
 
        if (ldb_msg_find_val(el, &val)) {
-               return LDB_ERR_OPERATIONS_ERROR;
+               return 1;
        }
 
-       return LDB_SUCCESS;
+       return 0;
 }
+