title: Fetch all user information with Net::LDAP
body: <p>Currently have an small perl script what for the given <code>username</code> fetch his email address from the ActiveDirectory using Net::LDAP.</p>
  
  <p>The search part is the following:</p>
  
  <pre><code>my $user = "myuser";
  my $mesg = $ldap-&gt;search(
      base =&gt; "dc=some,dc=example,dc=com",
      filter =&gt; '(&amp;(sAMAccountName=' . $user . ')(mail=*))',   #?!?
  );
  for my $entry ($mesg-&gt;entries) {
      my $val = $entry-&gt;get_value('mail');
      say "==$val==";
  }
  </code></pre>
  
  <p>Working ok.</p>
  
  <p>How i should modify the above statement to fetch <strong>all available</strong> information for the given user <code>myuser</code>? I'm looking to get an perl-ish data structure, such something like next:</p>
  
  <pre><code>my $alldata = search(... all info for the given $user ... );
  say Dumper $alldata; #hashref with all stored informations for the $user
  </code></pre>
  
  <p>It is probably dead simple - but i'm an total AD &amp; LDAP-dumb person...</p>
  
  <p>Edit: When I dump out the <code>$msg-&gt;entries</code> (what is an LADP::Entry object) got something, but i'm not sure than it contains everything or only the part of the stored data...</p>