-
Notifications
You must be signed in to change notification settings - Fork 367
Description
Description
I'm trying to get my self-hosted jitsi-installation to allow authenticating users from 2 subdomains using LDAP. In Prosody, this works:
VirtualHost "subdomain1.example.com"
authentication = "ldap";
ldap_server = "ldap.subdomain1.example.com:389";
ldap_base = "dc=example,dc=com";
ldap_filter = "(uid=$user)";
[...]
VirtualHost "subdomain2.example.com"
authentication = "ldap";
ldap_server = "ldap.subdomain2.example.com:389";
[...]
Everything is handled correctly here, I see the ldap query ending up on the right ldap server.
But it becomes a problem as soon as jicofo enters the picture:
If it is configured as
jicofo {
authentication {
enabled = true
type = XMPP
login-url = "subdomain1.example.com"
allowed-domains = [
"subdomain1.example.com",
"subdomain2.example.com"
]
[...]
it works for users from subdomain1.example.com, but not users from subdomain2.example.com (who are authenticated correctly, but then rejected as "not authorized user domain".
If I change login-url to "subdomain2.example.com", it works for users from subdomain2.example.com, but not users from subdomain1.example.com.
It would be extremely useful if jicofo had a setting to allow picking the right one - either a login-url = "${domain}" (the domain is obviously known at that time...), or a method to specify multiple options (login-url = [ "subdomain1.example.com", "subdomain2.example.com" ]).