diff options
-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(); |