shelldap
changeset 101 cb4de2ecc7ab
parent 99 2a7a3072d76c
child 102 e92cb378144d
--- a/shelldap	Mon Apr 15 14:18:12 2019 -0700
+++ b/shelldap	Sun Apr 28 21:40:06 2019 +0200
@@ -1437,7 +1437,7 @@
 {
 	my $self  = shift;
 	my $dn    = shift;
-	my @attrs = (@_) ? @_ : ('*');
+	my @attrs = (@_) ? @_ : @{$conf->{'attributes'}};
 
 	$self->display( $dn, \@attrs, 0 );
 }
@@ -2381,6 +2381,7 @@
 	'binddn|D=s',
 	'basedn|b=s',
 	'cacheage=i',
+	'attributes=s@',
 	'paginate=i',
 	'promptpass|W',
 	'timeout=i',
@@ -2413,8 +2414,9 @@
 
 # defaults
 $conf->{'configfile'} ||= "$ENV{'HOME'}/.shelldap.rc";
-$conf->{'cacheage'} ||= 300;
-$conf->{'timeout'}  ||= 10;
+$conf->{'cacheage'}   ||= 300;
+$conf->{'timeout'}    ||= 10;
+$conf->{'attributes'} ||= ['*'];
 
 # create and enter shell loop
 my $shell = LDAP::Shell->new();