diff options
-rw-r--r-- | source3/libads/ads_proto.h | 13 | ||||
-rw-r--r-- | source3/libads/ldap_utils.c | 17 |
2 files changed, 16 insertions, 14 deletions
diff --git a/source3/libads/ads_proto.h b/source3/libads/ads_proto.h index b9240346f6..6fbd3aa13f 100644 --- a/source3/libads/ads_proto.h +++ b/source3/libads/ads_proto.h @@ -130,19 +130,6 @@ ADS_STATUS ads_ranged_search(ADS_STRUCT *ads, const char *range_attr, char ***strings, size_t *num_strings); -ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads, - TALLOC_CTX *mem_ctx, - int scope, - const char *base, - const char *filter, - const char **attrs, - void *args, - const char *range_attr, - char ***strings, - size_t *num_strings, - uint32 *first_usn, - int *num_retries, - bool *more_values); /* The following definitions come from libads/ndr.c */ diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c index 4ed78a0aad..ab77abdd16 100644 --- a/source3/libads/ldap_utils.c +++ b/source3/libads/ldap_utils.c @@ -24,6 +24,21 @@ #include "ads.h" #ifdef HAVE_LDAP + +static ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads, + TALLOC_CTX *mem_ctx, + int scope, + const char *base, + const char *filter, + const char **attrs, + void *args, + const char *range_attr, + char ***strings, + size_t *num_strings, + uint32 *first_usn, + int *num_retries, + bool *more_values); + /* a wrapper around ldap_search_s that retries depending on the error code this is supposed to catch dropped connections and auto-reconnect @@ -263,7 +278,7 @@ ADS_STATUS ads_ranged_search(ADS_STRUCT *ads, return status; } -ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads, +static ADS_STATUS ads_ranged_search_internal(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, int scope, const char *base, |