summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ldap_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c
index fe0c659b04..c3074233e2 100644
--- a/source3/libads/ldap_utils.c
+++ b/source3/libads/ldap_utils.c
@@ -154,12 +154,12 @@ ADS_STATUS ads_search_retry_sid(ADS_STRUCT *ads, void **res,
sid_string = sid_binstring_hex(sid);
if (sid_string == NULL) {
- return ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
+ return ADS_ERROR(LDAP_NO_MEMORY);
}
if (!asprintf(&dn, "<SID=%s>", sid_string)) {
SAFE_FREE(sid_string);
- return ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
+ return ADS_ERROR(LDAP_NO_MEMORY);
}
status = ads_do_search_retry(ads, dn, LDAP_SCOPE_BASE,