code: def _connect(**kwargs):
      '''
      Instantiate LDAP Connection class and return an LDAP connection object
      '''
      connargs = {}
      for name in ['uri', 'server', 'port', 'tls', 'no_verify', 'binddn',
                   'bindpw', 'anonymous']:
          connargs[name] = _config(name, **kwargs)
  
      return _LDAPConnection(**connargs).ldaf _connect(**kwargs):
      '''
      Instantiate LDAP Connection class and return an LDAP connection object
      '''
      connargs = {}
      for name in ['uri', 'server', 'port', 'tls', 'no_verify', 'binddn',
                   'bindpw', 'anonymous']:
          connargs[name] = _config(name, **kwargs)
  
      return _LDAPConnection(**connargs).ldap
docs: Instantiate LDAP Connection class and return an LDAP connection object