https://github.com/lldap/lldap logo
insitefulgamer - Greetings.We're setting up J...
# troubleshooting
i
Greetings. We're setting up Jitsi Meet to use LLDAP through prosody. Our LLDAP policy is to use email addresses as usernames, e.g.
user1@domain.com
as both email and username. However, prosody does not work with usernames containing
@
. The filter
ldap_filter: (mail=%u*)
allows the part before the
@
to be used as the username and authentication successfully takes place (i.e. the user
user1@domain.com
logs in with just
user1
), but how can we modify this filter to use the full username without the
@
for authentication (i.e.
user1@domain.com
would enter
user1domain.com
)?
n
That seems like an incompatibility between prosody and your policy, I'm not sure how to help with that :/
Although, if you have a single fixed domain, you can try using
%u*yourdomain.com
in the filter
i
Multiple domains are in use unfortunately. Our workaround is to create a schema called
jitsiuid
which is just the user ID without special characters (so `user1@domain.com`'s
jitsiuid
will be
user1domaincom
), but as it stands this must be configured manually for each user. Does LLDAP have a way to dynamically set this schema?
n
Ah, I see! The answer is Soon ™
There is a plugin API that will be able to do just that (run arbitrary Lua functions on user creation, for instance), but it's not ready yet. It's a major piece of work so it takes a while, and we're all working on LLDAP for free on our own time, so it moves slowly
But it's been designed, and a PoC implemented on a branch; it's in the process of being merged step by step
i
Sounds promising - much obliged.