def to_h
      {
          enable_db_auth: enable_db_auth?,
          enable_ldap_auth: enable_ldap_auth?,
          ldap_host: ldap_host.to_s,
          ldap_port: ldap_port.to_s.to_i,
          ldap_ssl: ldap_ssl?,
          ldap_base_dn: ldap_base_dn.to_s,
          ldap_browse_user: ldap_browse_user.to_s,
          ldap_browse_password: ldap_browse_password.to_s,
          ldap_auto_activate: ldap_auto_activate?,
          ldap_system_admin_groups: ldap_system_admin_groups.to_s,
      }
    end
def to_h
      {
          enable_db_auth: enable_db_auth?,
          enable_ldap_auth: enable_ldap_auth?,
          ldap_host: ldap_host.to_s,
          ldap_port: ldap_port.to_s.to_i,
          ldap_ssl: ldap_ssl?,
          ldap_base_dn: ldap_base_dn.to_s,
          ldap_browse_user: ldap_browse_user.to_s,
          ldap_browse_password: ldap_browse_password.to_s,
          ldap_auto_activate: ldap_auto_activate?,
          ldap_system_admin_groups: ldap_system_admin_groups.to_s,
      }
    end
Converts the configuration to a hash.