title: libldap_r-2.4.so.2 missing when importing python-ldap on AWS
body: <p>I just cant get python-ldap to work inside AWS-Lambda. I have a simple Lambda script:</p>
  <pre><code>import ldap
  
  def main():
    print(&quot;Success&quot;)
  </code></pre>
  <p>and a Layer I built on an EC2 AmazonLinux2 (which works locally). When i test the Lambda with the layer I get an Error: &quot;Unable to import module 'lambda_function': libldap_r-2.4.so.2: cannot open shared object file: No such file or directory&quot;.</p>
  <p>From what I can tell this is some OS file which is not present on my Layer zip file. I can find it on my EC2 instance under <code>/usr/lib64/libldap_r-2.4.so.2</code>. Has somebody encountered this error.</p>