Add an option to enable/disable hash lookup via the LDAP provider.
This commit is contained in:
@@ -159,6 +159,10 @@ public class LdapThreePidProvider extends LdapBackend implements IThreePidProvid
|
||||
@Override
|
||||
public Iterable<ThreePidMapping> populateHashes() {
|
||||
List<ThreePidMapping> result = new ArrayList<>();
|
||||
if (!getCfg().getIdentity().isLookup()) {
|
||||
return result;
|
||||
}
|
||||
|
||||
String filter = getCfg().getIdentity().getFilter();
|
||||
|
||||
try (LdapConnection conn = getConn()) {
|
||||
|
||||
Reference in New Issue
Block a user