diff options
author | Gerald Carter <jerry@samba.org> | 2005-11-22 17:15:28 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2005-11-22 17:15:28 +0000 |
commit | a72cdbb11f911095781538563bb20e9dc920ff8b (patch) | |
tree | 48036fc1454698d456425770574e9ab867a5f6ef /source/libads | |
parent | 0ade59d7b16bf9a209a9eaa8a20da25321cef020 (diff) | |
download | samba-a72cdbb11f911095781538563bb20e9dc920ff8b.tar.gz samba-a72cdbb11f911095781538563bb20e9dc920ff8b.tar.xz samba-a72cdbb11f911095781538563bb20e9dc920ff8b.zip |
r11863: BUG 3196: patch from Alex Deiter <tiamat@komi.mts.ru> to compile against the Sun LDAP client libs. But not for AD support; just ldap support
Diffstat (limited to 'source/libads')
-rw-r--r-- | source/libads/ldap.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index bf402b3499e..6d1ca245378 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -577,8 +577,10 @@ ADS_STATUS ads_do_search_all(ADS_STRUCT *ads, const char *bind_path, status = ads_do_paged_search(ads, bind_path, scope, expr, attrs, res, &count, &cookie); - if (!ADS_ERR_OK(status)) return status; + if (!ADS_ERR_OK(status)) + return status; +#ifdef HAVE_LDAP_ADD_RESULT_ENTRY while (cookie) { void *res2 = NULL; ADS_STATUS status2; @@ -598,6 +600,10 @@ ADS_STATUS ads_do_search_all(ADS_STRUCT *ads, const char *bind_path, /* note that we do not free res2, as the memory is now part of the main returned list */ } +#else + DEBUG(0, ("no ldap_add_result_entry() support in LDAP libs!\n")); + status = ADS_ERROR_NT(NT_STATUS_UNSUCCESSFUL); +#endif return status; } |