75 Commits
Author SHA1 Message Date
Yarden ShohamandGitHub 90fd51b81e feat(ldap): allow specifying multiple attributes on username input (#4061)
In some use-cases, one would like to login using either their username or email. Administrators now don't have to choose a single field but may specify multiple fields to count as "username".

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
2026-03-17 11:19:31 +01:00
Maksim NabokikhandGitHub 47e84dba69 feat(connector): add compile-time checks for connector interfaces (#4591)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
2026-02-26 16:43:17 +01:00
Maksim NabokikhandGitHub 489e37d07a fix: suppress deprecation warning for userAttr when not set (#4539)
Signed-off-by: maksim.nabokikh <max.nabokih@gmail.com>
2026-02-13 13:19:20 +01:00
EthanDieterichandGitHub 7208747072 Add LDAP parent groups search, Active Directory Hierarchy (#4113)
This commit enables universal nested group search support across a
variety of LDAP server implementations.  It updates the code to allow
recursive group membership discovery during user authentication and
provides CI tests to validate the functionality.

Based on @paroque’s original https://github.com/dexidp/dex/pull/1058
PR.

- Removed `Recursive` boolean flag from config and logic
- Made recursion behavior dependant on presence of `RecursionGroupAttr`
- Updated log messages to reflect changes and follow `slog` structured format

Signed-off-by: Ethan Dieterich <ethandieterich@gmail.com>
2025-06-21 12:08:11 +02:00
Oleksandr RedkoandGitHub 9891daa585 refactor: simplify tests by using slog.DiscardHandler (#4058)
Signed-off-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
2025-04-03 09:56:18 +02:00
Maksim NabokikhandGitHub d2928d394b Fix scheme for DialURL ldap connection (#3677)
* Use scheme without :// suffix
* Make test ldap server listen on custom ports to avoid stepping into go-ldap defaults

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-08-06 07:57:51 +02:00
Maksim NabokikhandGitHub 63f4410ac1 Update dependencies before Dex v2.41 (#3637)
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-07-26 08:37:56 +02:00
Sean LiaoandGitHub 0b6a78397e use slog for structured logging (#3502)
Signed-off-by: Sean Liao <sean+git@liao.dev>
2024-06-01 20:15:58 +04:00
Maksim NabokikhandGitHub 3705207f01 Do not escape password for LDAP connectors (#3470)
With the change introduced in https://github.com/dexidp/dex/pull/3372 Dex declines passwords that contain special characters. Since password is not passed to any kind of filters, it is safe to pass a password as is. No LDAP query injections are possible.

This commit is a revert of password escaping.

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2024-04-09 13:05:06 +02:00
hsinhoyehandGitHub 77333d619c fix: add sanitizer to ldap account and password (#3372)
Signed-off-by: hsinhoyeh <yhh92u@gmail.com>
2024-03-11 22:46:11 +01:00
Márk Sági-KazárandGitHub 43836ef2fc Merge pull request #2829 from deckhouse/ldap-case-insensitive-dn
LDAP case-insensitive DN attribute
2023-05-12 22:05:42 +02:00
Josh Soref acc568be4b spelling: running
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-27 09:02:32 -04:00
Josh Soref 8fdc29da34 spelling: missing
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-27 09:02:32 -04:00
m.nabokikh 777e162c0c feat: LDAP case-insensitive DN attribute
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-02-15 23:20:15 +01:00
Mark Sagi-Kazar a02f2e8fac chore: fix lint violations
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2022-05-25 11:17:34 +02:00
Maksim NabokikhandGitHub 9d3471e39b Merge pull request #2026 from flant/ldap-groups-user-matcher-warning
chore: warning about deprecated LDAP groupSearch fields
2021-12-11 13:26:30 +04:00
Eng Zer Jun f0186ff265 refactor: move from io/ioutil to io and os package
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-09-17 14:12:39 +08:00
Mark Sagi-Kazar 215c3160f8 fix(connector/ldap): explicit anonymus ldap bind
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-06-28 17:49:47 +02:00
m.nabokikh dea1d3383c Deprecation warning log message
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-05-24 19:40:28 +04:00
m.nabokikh 13a83d9bba chore: warning about deprecated LDAP groupSearch fields
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-05-24 19:08:13 +04:00
Salman Ahmed bbd8b3b3cd connector/ldap: use go-ldap version v3
Signed-off-by: Salman Ahmed <salman.ahmed@weidmueller.com>
2021-03-22 16:17:47 +01:00
m.nabokikh 84a07a7805 Do not run LDAP tests if DEX_LDAP_HOST is not set
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-02-20 17:05:41 +04:00
m.nabokikh 1f2771b57e fix: do not run LDAP tests locally by default
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2021-02-20 12:55:52 +04:00
Mark Sagi-Kazar 6f70272bc3 test(connector/ldap): remove ldap test gate
Now that the ldap tests don't create containers on the fly
they can run the same way as other integration tests.

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-02-15 16:46:43 +01:00
Mark Sagi-Kazar f11db50369 test(connector/ldap): rewrite tests to use a single server instance
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2021-02-15 16:37:03 +01:00