Commit 4a988a1e authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Avoid printing elabinelab attributes that look like passwords.

parent 5db0e2af
......@@ -276,6 +276,11 @@ if ($shownodes) {
my $lastrole = "";
while (my ($role,$key,$value) = $attributes_result->fetchrow_array()) {
# Do not print anything that looks like a password.
if ($key =~ /password/i ||
$key =~ /community/i) {
$value = "**********"
}
if ($role ne $lastrole) {
printf "%-15s %-20s %s\n", $role, $key, $value;
$lastrole = $role;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment