Apache-AuthzLDAP
view release on metacpan or search on metacpan
AuthzLDAP.pm view on Meta::CPAN
$r->log->debug("check_group: Recursion depth is $recursion_depth");
$r->log->debug("check_group: Parsing on $groups");
@grouplist = Text::ParseWords::parse_line('\s+', 0, $groups);
foreach $group (@grouplist) {
# Look up the group
my $filter = qq(($groupattrtype=$group));
$r->log->debug("check_group: Iterating over group $group");
$r->log->debug("check_group: Using filter: $filter");
$r->log->debug("check_group: Using base: $basedn");
# Want to just validate group's existence, not get its contents
my $msg = $ld->search(base => $basedn, filter => $filter,
attrs => [ $nestedattrtype ]);
unless ($msg->code == LDAP_SUCCESS) {
$r->note_basic_auth_failure;
$r->log_reason("user $userinfo: Could not search for $group: " .
$msg->code . " " . $msg->error, $r->uri);
next unless $requirement == 3;
return AUTH_REQUIRED;
}
( run in 0.274 second using v1.01-cache-2.11-cpan-4d50c553e7e )