Closed c0rzair1 closed 2 years ago
Hi @c0rzair1
This is related to how yml
and toml
files are parsed. I added some examples to how correctly escape searchField
in this cases and fixed plugin to handle this.
YML example:
SearchFilter: (\{\{.Attribute\}\}=\{\{.Username\}\})
TOML example:
SearchFilter = '''(\{\{.Attribute\}\}=\{\{.Username\}\})'''
The fix is in release v0.0.13
.
If you are using Pilot
, please wait a while to reflect this in Plugin page and adjust the version in your conf.
If still there is any problem, please let me know.
Thank you, @wiltonsr Now everything works as it should. Great job
Hi @wiltonsr
I just wanted to mention, that this also works:
searchFilter: ({{"{{.Attribute}}={{.Username}}"}})
Looks a bit cleaner to me :)
Regards, Dorian
I can't define searchFilter in dynamic configuration when using the File provider. When I set the config like:
Then when I run Traefik I get the error:
As a workaround, I specified my filter as the default value of an option SearchFilter in the file
ldapauth.go
: