generated from traefik/plugindemo
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support to multiple LDAP Servers
- Add support to multiple LDAP Servers using ServerList option - Updating examples to use ServerList - Updating docs
- Loading branch information
Showing
7 changed files
with
299 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
[http.middlewares] | ||
[http.middlewares.my-ldapAuth.plugin.ldapAuth] | ||
Attribute = "uid" | ||
BaseDN = "dc=example,dc=com" | ||
Enabled = "true" | ||
LogLevel = "DEBUG" | ||
Port = "389" | ||
Url = "ldap://ldap.forumsys.com" | ||
AllowedGroups = ["ou=mathematicians,dc=example,dc=com","ou=italians,ou=scientists,dc=example,dc=com"] | ||
Attribute = "uid" | ||
BaseDN = "dc=example,dc=com" | ||
AllowedGroups = [ | ||
"ou=mathematicians,dc=example,dc=com", | ||
"ou=italians,ou=scientists,dc=example,dc=com", | ||
] | ||
AllowedUsers = ["euler", "uid=euclid,dc=example,dc=com"] | ||
# SearchFilter must escape curly braces when using toml file | ||
# https://toml.io/en/v1.0.0#string | ||
# SearchFilter = '''(\{\{.Attribute\}\}=\{\{.Username\}\})''' | ||
[[http.middlewares.my-ldapAuth.plugin.ldapAuth.ServerList]] | ||
Url = "ldaps://ldap2.forumsys.com" | ||
Port = "636" | ||
Weight = 10 | ||
[[http.middlewares.my-ldapAuth.plugin.ldapAuth.ServerList]] | ||
Url = "ldap://ldap.forumsys.com" | ||
Port = "389" | ||
Weight = 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.