diff options
author | Stefan Kangas <skangas@skangas.se> | 2012-05-28 02:37:42 +0200 |
---|---|---|
committer | Stefan Kangas <skangas@skangas.se> | 2012-05-28 02:37:42 +0200 |
commit | 1da4d742c4cff6f65fcc562ae74ad13c376d6152 (patch) | |
tree | f10676260651fb04835d5b8d8972f545e68b1155 | |
parent | b04c0ff1b65ab9ce87fe64e44a15c1b09ce11b0e (diff) |
searchuser: simplify output
-rwxr-xr-x | fripost-searchuser | 5 |
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(); |