schnibitz has asked for the wisdom of the Perl Monks concerning the following question:
Thanks!#!/usr/bin/perl use Net::LDAP; my $uid = "cn=account,cn=users,dc=domain,dc=local"; my $bindPass = "password"; my $ldapServer = "ldap://server.domain.local"; # connect to ldap server $ldap = Net::LDAP -> new ($ldapServer) || die "Could not connect to s +erver\n"; # bind to ldap server $ldap -> bind($uid, password => $bindPass); # search for group $mesg = $ldap -> search(filter => "(&(cn=Domain Users))", base => "dc +=domain,dc=local"); $entry = $mesg -> entry; # @members = $entry -> get_value ('member;Range=0-*'); #the above entry when uncommented doesn't work either. @members = $entry -> get_value ('member'); foreach $thing (@members) { print "$thing\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: NET::LDAP not returning all results
by NetWallah (Canon) on Dec 31, 2013 at 16:00 UTC |