title: Use Net::LDAP with a /etc/*.conf ldap text editable configuration file
body: <p>In order to list the users which finally have access to one service which is authenticated through <strong>pam.d</strong>, I would like to <strong>connect to my LDAP (perl Net::LDAP) using a conf file</strong> and not by mentioning ldap-ipaddress, port, password or anything except the name of the conf file which is used in <code>/etc/pam.d/myservice</code>, let us name this <code>/etc/ldap.myservice.conf</code>.</p>
  
  <p>Is there a open-source or free software project which aim at using perl module <code>Net::LDAP</code> with a conf file for pam.d module instead of mentioning connection credentials?  Or may be I have to parse myself this file?</p>
  
  <pre><code>#! /usr/bin/perl
  use Net::LDAP ; # dreamed late at night
  my $connection = new Net::LDAP( '/etc/myservice.ldap.conf' ) ; 
  (...)
  </code></pre>
  
  <p>I browsed the Internet and found nothing. I feel that this feature could  give more versatility and integration to most of systems. </p>