code: def get_ldap(cls, global_options=None):
          
          # Apply global LDAP options once
          if not cls._ldap_configured and global_options is not None:
              for opt, value in global_options.items():
                  ldap.set_option(opt, value)
  
              cls._ldap_configured = True
  
          return ldap
docs: Returns the configured ldap module.