Closed pouic-lol closed 2 years ago
Sorry about the delay on this issue.
As far as I can tell, the mode
configuration setting has never existed. The way the module decides which mode it should use depends on whether the bind_dn
setting is present in the config (if it's present then search mode is used, if not then simple mode is used). I can see it is in the snippet you provided, but the indentation is wrong: in your snippet it's under attributes
, but it should be at the top level (ie under config
) - same with bind_password
. This would explain why the module is using simple mode instead of search mode.
Since this is a configuration issue and not a bug, I'm closing this. Feel free to shout if it still doesn't work after fixing the indentation.
I'm sorry, I didn't notice the indentation issue... my bad. With good yaml indentation, it works much better.
Concerning the "mode" option, maybe you can update the documentation in the README.rst
of the main page because it's specified here : Usage.
Thanks for your answer
Concerning the "mode" option, maybe you can update the documentation in the
README.rst
of the main page because it's specified here : Usage.
Good catch! I've opened https://github.com/matrix-org/matrix-synapse-ldap3/issues/158 to track this as an outstanding issue.
Describe the bug In the configuration file
homeserver.yaml
, I have set the config mode option to "search" however the ldap request seems to only be in "simple bind mode" and the authentication fails.To Reproduce Try to login to a LDAP server (Active Directory) in search mode with a bind user but the search mode is not taken into account nor the bind user.
Expected behavior A search in LDAP directory with a bind user to locate the login account and successfully authenticates this login. It was working as expected in search mode with the precedent version of matrix-synapse-py3 (version
1.28.0+buster1
packaged withmatrix_synapse_ldap3-0.1.4
) even if the option was not available in the configuration at that time.Screenshots Extract of my
homeserver.yaml
fileExtract of the
homeserver.log
fileServer side:
https://packages.matrix.org/debian/ buster main
Client applications used