aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2012-05-28 02:37:42 +0200
committerStefan Kangas <skangas@skangas.se>2012-05-28 02:37:42 +0200
commit1da4d742c4cff6f65fcc562ae74ad13c376d6152 (patch)
treef10676260651fb04835d5b8d8972f545e68b1155
parentb04c0ff1b65ab9ce87fe64e44a15c1b09ce11b0e (diff)
searchuser: simplify output
-rwxr-xr-xfripost-searchuser5
1 files changed, 2 insertions, 3 deletions
diff --git a/fripost-searchuser b/fripost-searchuser
index 549e511..83fc004 100755
--- a/fripost-searchuser
+++ b/fripost-searchuser
@@ -117,9 +117,8 @@ my %user;
$user{username} = $ARGV[0] if defined $ARGV[0];
foreach my $user ($ldap->user->search( \%user )->entries) {
- say "User: " . $user->{username};
- say "IsActive: " . $user->{isActive};
- say "--------------------------------"
+ say '' . ($user->{isActive} ? 'ACTIVE' : 'INACTIVE')
+ . ' user ' . $user->{username};
}
$ldap->unbind();