found it...

The key to this functionality is performing a separate search for each range of multi-valued attributes. I was attempting to pull ranges 0-1499, 1500-3499, etc. all in the same search (which doesn't work).

### BEGIN code added to the paged callback sub foreach my $var (@attr_list) { if ($var =~ /;range=/) { ### $var will look like this --> "member;range=0-1499" ($var,my $range) = split /;/, $var; ($junk,$range) = split /=/, $range; my ($first,$last) = split /-/, $range; ### if $last eq "*", indicates this is the last range incre +ment, and ### we do not need to perform another supplemental search if ($last ne "*") { my $range_diff = ($last - $first) + 1; my $increment = $last + $range_diff; $last = $last + 1; my $push_line = $var."|".$last."|".$increment."|".$sub +_obj->dn; push(@supp_srch,"$push_line"); } } ### if $var matches range pattern ### END code added to the paged callback sub

The following code accomadates lines being added to @supp_srch from the secondary searches. The $last variable isn't really used below. That was included just so I could test my simple math in the callback sub code above. I added this block right after my inital search

foreach my $line (@supp_srch) { chomp($line); ($att_val,$first,$last,$dn) = split /\|/, $line; $attributes = ['cn','displayName','groupType','description', "mem +ber;range=${first}-*"]; my $mesg = LDAP_PageSearch ( $ldap, "(&(objectclass=group)(!(obje +ctclass=computer)))", $attributes , "$dn" ); }

In reply to Net::LDAP retrieval of Active Directory group members (multi-valued attributes that exceed the server side limit.) by tymm654

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.