Port default configuration values

This commit is contained in:
Max Dor
2018-12-25 20:25:56 +01:00
parent 05493da27c
commit d160a44509
22 changed files with 297 additions and 444 deletions

View File

@@ -59,9 +59,30 @@ public abstract class LdapConfig {
public static class Attribute {
private UID uid;
private String name;
private String name = "displayName";
private Map<String, List<String>> threepid = new HashMap<>();
public Attribute() {
uid = new UID();
uid.setType("uid");
uid.setValue("saMAccountName");
threepid.put("email", Arrays.asList(
"mailPrimaryAddress",
"mail",
"otherMailbox"
));
threepid.put("msisdn", Arrays.asList(
"telephoneNumber",
"mobile",
"homePhone",
"otherTelephone",
"otherMobile",
"otherHomePhone"
));
}
public UID getUid() {
return uid;
}
@@ -104,9 +125,9 @@ public abstract class LdapConfig {
public static class Connection {
private boolean tls;
private boolean tls = false;
private String host;
private int port;
private int port = 389;
private String bindDn;
private String bindPassword;
private String baseDn;
@@ -212,7 +233,7 @@ public abstract class LdapConfig {
public static class Identity {
private String filter;
private String token;
private String token = "%3pid";
private Map<String, String> medium = new HashMap<>();
public String getFilter() {