Closed financelurker closed 3 years ago
Assuming that the LDAP schema is visible in general, please restart the app.py
process (or Docker container, depending on your setup) and then reload the UI. The server side does not pick up any schema changes while it is running, but caches the initial version indefinitely.
Please check whether this fixes it.
Thank you - that actually worked. Would you merge a patch/PR where you can toggle this caching vía an ENV param if I created one? Because I wouldn't mind the UI always getting the schema data freshly from the OpenLDAP in the background.
What's your take on that?
Sure, that's possible. The proposed change should be made here. However, I'd prefer if the schema is not reloaded every time, a time-based caching (e.g. for 5 minutes) might be a good compromise.
Can we close this, or are you planning to create a PR?
Given that schema changes are rare, restarting the UI service may be considered as acceptable workaround.
Hi!
I've added the postfix schema (see here https://raw.githubusercontent.com/68b32/postfix-ldap-schema/master/postfix.ldif ) to my OpenLDAP instance.
A query with
ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config postfix*
listed the following output:A query with
ldapsearch -H ldap://localhost:1389 -x -s base -b "cn=subschema" +
lists the following output:Unfortunately, when refreshing the UI and opening the Schema-dropdown this postfix schema isn't listed and isn't accessible to set as objectClass on existing entries (or even new entries).
How can this be enabled? Is there some filtering within the python API service (since it's already missing when the "/api/schema" endpoint is responding)?
Thx in advance!