Skip to content

Commit 3705207

Browse files
authored
Do not escape password for LDAP connectors (#3470)
With the change introduced in #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>
1 parent 98980ca commit 3705207

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

connector/ldap/ldap.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ func (c *ldapConnector) Login(ctx context.Context, s connector.Scopes, username,
473473
)
474474

475475
username = ldap.EscapeFilter(username)
476-
password = ldap.EscapeFilter(password)
477476

478477
err = c.do(ctx, func(conn *ldap.Conn) error {
479478
entry, found, err := c.userEntry(conn, username)

0 commit comments

Comments
 (0)