diff --git a/docs/MSC2140_MSC2134.md b/docs/MSC2140_MSC2134.md index 4d6d672..1661c57 100644 --- a/docs/MSC2140_MSC2134.md +++ b/docs/MSC2140_MSC2134.md @@ -136,5 +136,11 @@ exec: hashEnabled: true # enable the hash lookup (defaults is false) ``` +For ldap providers: +```.yaml +ldap: + lookup: true +``` + NOTE: Federation requests work only with `none` algorithms. diff --git a/ma1sd.example.yaml b/ma1sd.example.yaml index 9aaeaa4..7acf4d0 100644 --- a/ma1sd.example.yaml +++ b/ma1sd.example.yaml @@ -131,6 +131,25 @@ threepid: # lookup: # query: 'select user_id as mxid, medium, address from user_threepids' # query for retrive 3PIDs for hashes. +### hash lookup for ldap provider (with example of the ldap configuration) +# ldap: +# enabled: true +# lookup: true # hash lookup +# connection: +# host: 'ldap.domain.tld' +# port: 389 +# bindDn: 'cn=admin,dc=domain,dc=tld' +# bindPassword: 'Secret' +# baseDNs: +# - 'dc=domain,dc=tld' +# attribute: +# uid: +# type: 'uid' # or mxid +# value: 'cn' +# name: 'displayName' +# identity: +# filter: '(objectClass=inetOrgPerson)' + #### MSC2140 (Terms) #policy: # policies: