Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
use Net::LDAP;
$ldap = Net::LDAP->new('server_name:port_no') or die "$@";
# works only with authentication
$rc = $ldap->bind('domain\user', password => 'pwd');
die $rc->error if $rc->code;
my $base = "ou=Organizations,ou=Groups,dc=my_region,dc=my_company,dc=com";
my $scope = "subtree";
$groups = "myGroups";
my $filter = "(cn=$groups)";
$mesg = $ldap->search(
base => $base,
scope => $scope,
filter => $filter
);
$mesg->code && die $mesg->error;
$i = 0;
foreach $entry ($mesg->all_entries)
{
@uid = $entry->get('cn');
print $uid[0] . "\n";
}
$ldap->unbind;