From 1da4d742c4cff6f65fcc562ae74ad13c376d6152 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Mon, 28 May 2012 02:37:42 +0200 Subject: searchuser: simplify output --- fripost-searchuser | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'fripost-searchuser') 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(); -- cgit v1.2.3