server icon indicating copy to clipboard operation
server copied to clipboard

fix(user_ldap): Do not block access to configuration page upon bad configuration

Open come-nc opened this issue 1 year ago • 3 comments

  • Resolve #43524

Summary

It should be possible to access configuration page with the local admin user even when LDAP configuration is not valid. This prevent ldap backend from throwing in countUsers to allow this.

Checklist

come-nc avatar Feb 12 '24 13:02 come-nc

/backport to stable28

come-nc avatar Feb 12 '24 13:02 come-nc

/backport to stable27

come-nc avatar Feb 12 '24 13:02 come-nc

/backport to stable26

come-nc avatar Feb 12 '24 13:02 come-nc

Well the method was not documented to throw anything, but is documented to return false if an error happens.

come-nc avatar Feb 19 '24 08:02 come-nc

I am not sure the throw tag was set consistently back then.

blizzz avatar Feb 19 '24 14:02 blizzz

@blizzz Is it a strong no on this one? Do you have another approach which would allow the admin to fix his configuration through GUI?

come-nc avatar Mar 12 '24 10:03 come-nc

It is not a strong no, but it would cause me stomachaches. Unfortunately without looking into the matter I have no better idea at the moment either, and it is unlikely to change in the near future. That said a pragmatic approach is to go ahead with this solution, but opening an issue to have an improvement in mind at least. And add some comments into the code to clearly state the intention and meaning of the change, for by looking at it you would not have the slightest idea about it's actual purpose.

blizzz avatar Mar 21 '24 11:03 blizzz