INSERT IGNORE INTO oc_appconfig (appid, configkey, configvalue, type, lazy)
VALUES
  ("user_ldap", "background_sync_interval", "43200", 2, 0),
  ("user_ldap", "background_sync_offset", "0", 2, 0),
  ("user_ldap", "background_sync_prefix", "s01", 2, 0),
  ("user_ldap", "cleanUpJobOffset", "0", 2, 0),
  ("user_ldap", "enabled", "yes", 2, 0),
  ("user_ldap", "installed_version", "1.20.0", 2, 0),
  ("user_ldap", "types", "authentication", 2, 0),
  ("user_ldap", "s01_lastChange", "1729585245", 2, 0),
  ("user_ldap", "s01has_memberof_filter_support", "1", 2, 0),
  ("user_ldap", "s01home_folder_naming_rule", "", 2, 0),
  ("user_ldap", "s01last_jpegPhoto_lookup", "0", 2, 0),
  ("user_ldap", "s01ldap_admin_group", "admin_2", 2, 0),
  ("user_ldap", "s01ldap_attr_address", "", 2, 0),
  ("user_ldap", "s01ldap_attr_biography", "", 2, 0),
  ("user_ldap", "s01ldap_attr_fediverse", "", 2, 0),
  ("user_ldap", "s01ldap_attr_headline", "", 2, 0),
  ("user_ldap", "s01ldap_attr_organisation", "", 2, 0),
  ("user_ldap", "s01ldap_attr_phone", "", 2, 0),
  ("user_ldap", "s01ldap_attr_role", "", 2, 0),
  ("user_ldap", "s01ldap_attr_twitter", "", 2, 0),
  ("user_ldap", "s01ldap_attr_website", "", 2, 0),
  ("user_ldap", "s01ldap_attributes_for_group_search", "", 2, 0),
  ("user_ldap", "s01ldap_attributes_for_user_search", "", 2, 0),
  ("user_ldap", "s01ldap_background_host", "", 2, 0),
  ("user_ldap", "s01ldap_background_port", "", 2, 0),
  ("user_ldap", "s01ldap_backup_host", "", 2, 0),
  ("user_ldap", "s01ldap_backup_port", "636", 2, 0),
  ("user_ldap", "s01ldap_base", "dc=social-grow,dc=tech", 2, 0),
  ("user_ldap", "s01ldap_base_groups", "cn=cloud,ou=groups,dc=social-grow,dc=tech", 2, 0),
  ("user_ldap", "s01ldap_base_users", "ou=users,dc=social-grow,dc=tech", 2, 0),
  ("user_ldap", "s01ldap_cache_ttl", "600", 2, 0),
  ("user_ldap", "s01ldap_configuration_active", "1", 2, 0),
  ("user_ldap", "s01ldap_connection_timeout", "15", 2, 0),
  ("user_ldap", "s01ldap_default_ppolicy_dn", "", 2, 0),
  ("user_ldap", "s01ldap_display_name", "cn", 2, 0),
  ("user_ldap", "s01ldap_dn", "cn=cloud,ou=system,ou=users,dc=social-grow,dc=tech", 2, 0),
  ("user_ldap", "s01ldap_dynamic_group_member_url", "", 2, 0),
  ("user_ldap", "s01ldap_email_attr", "mail", 2, 0),
  ("user_ldap", "s01ldap_experienced_admin", "0", 2, 0),
  ("user_ldap", "s01ldap_expert_username_attr", "mail", 2, 0),
  ("user_ldap", "s01ldap_expert_uuid_group_attr", "", 2, 0),
  ("user_ldap", "s01ldap_expert_uuid_user_attr", "mail", 2, 0),
  ("user_ldap", "s01ldap_ext_storage_home_attribute", "", 2, 0),
  ("user_ldap", "s01ldap_gid_number", "gidNumber", 2, 0),
  ("user_ldap", "s01ldap_group_display_name", "cn", 2, 0),
  ("user_ldap", "s01ldap_group_filter", "(objectClass=groupOfNames)", 2, 0),
  ("user_ldap", "s01ldap_group_filter_mode", "1", 2, 0),
  ("user_ldap", "s01ldap_group_member_assoc_attribute", "member", 2, 0),
  ("user_ldap", "s01ldap_groupfilter_groups", "", 2, 0),
  ("user_ldap", "s01ldap_groupfilter_objectclass", "", 2, 0),
  ("user_ldap", "s01ldap_host", "ldaps://ldap.social-grow.tech", 2, 0),
  ("user_ldap", "s01ldap_login_filter", "(&(objectclass=inetOrgPerson)(owncloudQuota=*)(mail=%uid))", 2, 0),
  ("user_ldap", "s01ldap_login_filter_mode", "1", 2, 0),
  ("user_ldap", "s01ldap_loginfilter_attributes", "", 2, 0),
  ("user_ldap", "s01ldap_loginfilter_email", "0", 2, 0),
  ("user_ldap", "s01ldap_loginfilter_username", "1", 2, 0),
  ("user_ldap", "s01ldap_mark_remnants_as_disabled", "0", 2, 0),
  ("user_ldap", "s01ldap_matching_rule_in_chain_state", "unknown", 2, 0),
  ("user_ldap", "s01ldap_nested_groups", "0", 2, 0),
  ("user_ldap", "s01ldap_override_main_server", "", 2, 0),
  ("user_ldap", "s01ldap_paging_size", "500", 2, 0),
  ("user_ldap", "s01ldap_port", "636", 2, 0),
  ("user_ldap", "s01ldap_quota_attr", "owncloudQuota", 2, 0),
  ("user_ldap", "s01ldap_quota_def", "1GB", 2, 0),
  ("user_ldap", "s01ldap_tls", "0", 2, 0),
  ("user_ldap", "s01ldap_turn_off_cert_check", "0", 2, 0),
  ("user_ldap", "s01ldap_turn_on_pwd_change", "0", 2, 0),
  ("user_ldap", "s01ldap_user_avatar_rule", "default", 2, 0),
  ("user_ldap", "s01ldap_user_display_name_2", "", 2, 0),
  ("user_ldap", "s01ldap_user_filter_mode", "1", 2, 0),
  ("user_ldap", "s01ldap_userfilter_groups", "", 2, 0),
  ("user_ldap", "s01ldap_userfilter_objectclass", "person", 2, 0),
  ("user_ldap", "s01ldap_userlist_filter", "(&(objectclass=inetOrgPerson)(owncloudQuota=*))", 2, 0),
  ("user_ldap", "s01use_memberof_to_detect_membership", "1", 2, 0)
ON DUPLICATE KEY UPDATE
  appid = VALUES(appid),
  configkey = VALUES(configkey),
  configvalue = VALUES(configvalue),
  type = VALUES(type),
  lazy = VALUES(lazy);

