-
Hi, In Overleaf's share menu, I'd like to make all LDAP users available as contact (findable by name or email) for all other LDAP users. Apologies if I'm making basic configuration mistakes, but this is my attempt at configuring this contact relation:
When I try this out, an error is thrown by this line of code in the application:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Try the following filter instead:
It seems that one of the entries in your search results has an undefined mail attribute, and the code incorrectly assumed that this wouldn’t happen. I'll resolve this by skipping such entries from the search results. However, please note that having a mail attribute is essential — all users and contacts must have an email address defined, as it is used as an ID in the Overleaf database. |
Beta Was this translation helpful? Give feedback.
-
I cannot fix this; my code only builds a list of LDAP contacts, while displaying the contacts is managed by the main code. Just a small note: when you type a letter in the empty input field, it searches for contacts containing that letter. After pressing backspace (input field is empty again), it shows the full list of all contacts, though I have a window with a scrollbar where I can only see 8 contacts at a time. I also noticed something in the upstream code mentioning a limit of 50 contacts. Probably, the code may show you 50 contacts initially, and then another 50 after the next backspace. I'm not sure—just a guess. Additionally, I have a general thought: typically, a person has a limited number of potential collaborators, often from the same department. I believe it would be beneficial to structure the LDAP database so that people from the same department share the same group ID or something similar. This way, a filter could be set up to show each user only those with the same property, keeping the contacts list manageable. |
Beta Was this translation helpful? Give feedback.
Try the following filter instead:
It seems that one of the entries in your search results has an undefined mail attribute, and the code incorrectly assumed that this wouldn’t happen. I'll resolve this by skipping such entries from the search results. However, please note that having a mail attribute is essential — all users and contacts must have an email address defined, as it is used as an ID in the Overleaf database.