 	
 
 if process.env["SHARELATEX_LDAP_HOST"]
-	settings.ldap :
+	settings.ldap =
 		host: process.env["SHARELATEX_LDAP_HOST"]
 		dn: process.env["SHARELATEX_LDAP_DN"]
 		baseSearch: process.env["SHARELATEX_LDAP_BASE_SEARCH"]

# opts are from http://antelle.github.io/passfield
if process.env["SHARELATEX_PASSWORD_VALIDATION_PATTERN"] or process.env["SHARELATEX_PASSWORD_VALIDATION_MIN_LENGTH"] or process.env["SHARELATEX_PASSWORD_VALIDATION_MAX_LENGTH"]

	settings.passwordStrengthOptions:
		pattern: process.env["SHARELATEX_PASSWORD_VALIDATION_PATTERN"] or "aA$3"
		length: {min:process.env["SHARELATEX_PASSWORD_VALIDATION_MIN_LENGTH"] or 8, max: process.env["SHARELATEX_PASSWORD_VALIDATION_MAX_LENGTH"] or 50}



# Compiler
# --------
if process.env["DOCKER_IN_DOCKER"]
	clsi:
		commandRunner: "docker-runner-sharelatex"
