(merge from 3.0)
authorAndrew Bartlett <abartlet@samba.org>
Sun, 8 Feb 2004 11:46:32 +0000 (11:46 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 8 Feb 2004 11:46:32 +0000 (11:46 +0000)
Bug found by gd - the new range-reterival code did still had 'member'
hardcoded into it.

This didn't matter, as we only use it for 'member' so far...

Andrew Bartlett
(This used to be commit a813d4b6aac655909541966d2d343fe2b55ed188)

source3/libads/ldap.c

index 79f267a6a8fc744ef7664d3f0eaae9f6c3393ef5..20a36dfdf5c3da29688654ebe280382b00ce8d47 100644 (file)
@@ -1655,7 +1655,7 @@ char **ads_pull_strings_range(ADS_STRUCT *ads,
        }
        if (!attr) {
                ber_free(ptr, 0);
-               /* nothing here - this feild is just empty */
+               /* nothing here - this field is just empty */
                *more_strings = False;
                return NULL;
        }
@@ -1714,7 +1714,8 @@ char **ads_pull_strings_range(ADS_STRUCT *ads,
 
        if (*more_strings) {
                *next_attribute = talloc_asprintf(mem_ctx,
-                                                 "member;range=%d-*", 
+                                                 "%s;range=%d-*", 
+                                                 field,
                                                  *num_strings);
                
                if (!*next_attribute) {