code: public static Map<String, String> getLdapSettingsForApp(App app) {
  		Map<String, String> ldapSettings = new HashMap<>();
  		if (app != null) {
  			ldapSettings.put("security.ldap.server_url", "ldap://localhost:8389/");
  			ldapSettings.put("security.ldap.active_directory_domain", "");
  			ldapSettings.put("security.ldap.base_dn", "dc=springframework,dc=org");
  			ldapSettings.put("security.ldap.bind_dn", "");
  			ldapSettings.put("security.ldap.bind_pass", "");
  			ldapSettings.put("security.ldap.user_search_base", "");
  			ldapSettings.put("security.ldap.user_search_filter", "(cn={0})");
  			ldapSettings.put("security.ldap.user_dn_pattern", "uid={0},ou=people");
  			ldapSettings.put("security.ldap.password_attribute", "userPassword");
  			//ldapSettings.put("security.ldap.compare_passwords", "false"); //don't remove comment
  			Map<String, Object> settings = app.getSettings();
  			for (Map.Entry<String, String> entry : ldapSettings.entrySet()) {
  				if (settings.containsKey(entry.getKey())) {
  					entry.setValue(settings.get(entry.getKey()) + "");
  				} else if (app.isRootApp()) {
  					entry.setValue(Config.getConfigParam(entry.getKey(), entry.getValue()));
  				}
  			}
  		}
  		return ldapSettings;
  	}
docs: Returns a map of LDAP configuration properties for a given app,  read from app.settings or config file.
  @param app the app in which to look for these keys
  @return a map of keys and values