package app.utils.config

import scala.collection.JavaConverters._
import scala.concurrent.duration._

object LDAPConfig extends ConfigProvider {

  val host = configuration.getString("ldap.host")
  val port = configuration.getInt("ldap.port")
  val ldaps = configuration.getBoolean("ldap.ldaps")
  val bindDN = configuration.getString("ldap.bindDN")
  val password = configuration.getString("ldap.password")
  val initialConnextions = configuration.getInt("ldap.initialConnextions")
  val maxConnections = configuration.getInt("ldap.maxConnections")
  val connectTimeout = configuration.getInt("ldap.connectTimeout")
  val responseTimeout = configuration.getInt("ldap.responseTimeout")
  val abandonOnTimeOut = configuration.getBoolean("ldap.abandonOnTimeOut")
  val expiryDuration: Duration = Duration(configuration.getInt("ldap.expiryDuration"), "minutes")
  val maxResults = configuration.getInt("ldap.maxResult")
  val baseDN = configuration.getString("ldap.baseDN")
  val uidAttributeName = configuration.getString("ldap.uidAttributeName")
  val administratorDN = configuration.getString("ldap.administratorDN")
  val isActiveDirectory = configuration.getBoolean("ldap.isActiveDirectory")

}

object LDAPSearchableAttributes extends ConfigProvider {

  val organization = configuration.getStringList("ldap.searchable.organization").asScala
  val user = configuration.getStringList("ldap.searchable.user").asScala
  val computer = configuration.getStringList("ldap.searchable.computer").asScala

}

package app.utils.config

import scala.collection.JavaConverters._
import scala.concurrent.duration._

object LDAPConfig extends ConfigProvider {

  val host = configuration.getString("ldap.host")
  val port = configuration.getInt("ldap.port")
  val ldaps = configuration.getBoolean("ldap.ldaps")
  val bindDN = configuration.getString("ldap.bindDN")
  val password = configuration.getString("ldap.password")
  val initialConnextions = configuration.getInt("ldap.initialConnextions")
  val maxConnections = configuration.getInt("ldap.maxConnections")
  val connectTimeout = configuration.getInt("ldap.connectTimeout")
  val responseTimeout = configuration.getInt("ldap.responseTimeout")
  val abandonOnTimeOut = configuration.getBoolean("ldap.abandonOnTimeOut")
  val expiryDuration: Duration = Duration(configuration.getInt("ldap.expiryDuration"), "minutes")
  val maxResults = configuration.getInt("ldap.maxResult")
  val baseDN = configuration.getString("ldap.baseDN")
  val uidAttributeName = configuration.getString("ldap.uidAttributeName")
  val administratorDN = configuration.getString("ldap.administratorDN")
  val isActiveDirectory = configuration.getBoolean("ldap.isActiveDirectory")

}

object LDAPSearchableAttributes extends ConfigProvider {

  val organization = configuration.getStringList("ldap.searchable.organization").asScala.toList
  val user = configuration.getStringList("ldap.searchable.user").asScala.toList
  val computer = configuration.getStringList("ldap.searchable.computer").asScala.toList

}

Change some mutable list to immutable list
Change some mutable list to immutable list
