Phone number lookups

This commit is contained in:
Maxime Dor
2017-04-03 01:17:03 +02:00
parent d53c9e4263
commit 8bd17d3ffa
4 changed files with 52 additions and 28 deletions

View File

@@ -61,7 +61,6 @@ ldap:
bindDn: 'CN=Matrix Identity Server,CN=Users,DC=example,DC=org'
bindPassword: 'password'
baseDn: 'CN=Users,DC=example,DC=org'
query: '(|(mailPrimaryAddress=%3pid)(mail=%3pid)(otherMailbox=%3pid))'
# How should we resolve the Matrix ID in case of a match using the attribute.
#
@@ -81,6 +80,17 @@ ldap:
# are typically not used.
attribute: 'sAMAccountName'
# Configure each 3PID type with a dedicated query.
mappings:
email: "(|(mailPrimaryAddress=%3pid)(mail=%3pid)(otherMailbox=%3pid))"
# Phone numbers query.
#
# Phone numbers use the MSISDN format: https://en.wikipedia.org/wiki/MSISDN
# This format does not include international prefix (+ or 00) and therefore has to be put in the query.
# Adapt this to your needs for each attribute.
msisdn: "(|(telephoneNumber=+%3pid)(mobile=+%3pid)(homePhone=+%3pid)(otherMobile=+3pid)(otherHomePhone=+%3pid)(otherTelephone=+%3pid))"
forward: