summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-05-18 22:34:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:17:08 -0500
commit1e3147cf12913916cf29ccae1958e79a03a9e327 (patch)
treec3120b5d929bda75bad5e33f176d29b3c8a52204 /source3
parentae4a2a2b9de61696093e75348e87e33acbe40d29 (diff)
downloadsamba-1e3147cf12913916cf29ccae1958e79a03a9e327.tar.gz
samba-1e3147cf12913916cf29ccae1958e79a03a9e327.tar.bz2
samba-1e3147cf12913916cf29ccae1958e79a03a9e327.zip
r15704: Prefer LDAP error codes in ads_search_retry_sid().
Guenther (This used to be commit 6cfc65ea20793a72ff1666759bd4e8e446247071)
Diffstat (limited to 'source3')
-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,