Revision 5650
Added by walbridge about 14 years ago
ldapweb.cgi | ||
---|---|---|
763 | 763 |
$foundAccounts = ""; |
764 | 764 |
my $entry; |
765 | 765 |
foreach $entry ($mesg->all_entries) { |
766 |
$foundAccounts .= "<p>\n<b><u>Account:</u> "; |
|
767 |
$foundAccounts .= $entry->dn(); |
|
768 |
$foundAccounts .= "</b><br />\n"; |
|
769 |
foreach my $attribute ($entry->attributes()) { |
|
770 |
$foundAccounts .= "$attribute: "; |
|
771 |
$foundAccounts .= $entry->get_value($attribute); |
|
772 |
$foundAccounts .= "<br />\n"; |
|
773 |
} |
|
774 |
$foundAccounts .= "</p>\n"; |
|
766 |
# a fix to ignore 'ou=Account' properties which are not usable accounts within Metacat. |
|
767 |
# this could be done directly with filters on the LDAP connection, instead. |
|
768 |
if ($entry->dn !~ /ou=Account/) { |
|
769 |
$foundAccounts .= "<p>\n<b><u>Account:</u> "; |
|
770 |
$foundAccounts .= $entry->dn(); |
|
771 |
$foundAccounts .= "</b><br />\n"; |
|
772 |
foreach my $attribute ($entry->attributes()) { |
|
773 |
my $value = $entry->get_value($attribute); |
|
774 |
$foundAccounts .= "$attribute: "; |
|
775 |
$foundAccounts .= $value; |
|
776 |
$foundAccounts .= "<br />\n"; |
|
777 |
} |
|
778 |
$foundAccounts .= "</p>\n"; |
|
779 |
} |
|
775 | 780 |
} |
776 | 781 |
} |
777 | 782 |
$ldap->unbind; # take down session |
Also available in: Unified diff
filter ou=Account parameters as per #5244