Skip to content

Commit

Permalink
auth/ldap: Send empty username by default when doing unauthenticated …
Browse files Browse the repository at this point in the history
…bind

Requested by maldridge to match ldapsearch behavior.
  • Loading branch information
foxcpp committed Sep 11, 2022
1 parent f8bad12 commit d54237f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/auth/ldap/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func readBindDirective(c *config.Map, n config.Node) (interface{}, error) {
}, nil
}
return func(c *ldap.Conn) error {
return c.UnauthenticatedBind("maddy-auth")
return c.UnauthenticatedBind("")
}, nil
case "plain":
if len(n.Args) != 3 {
Expand Down

0 comments on commit d54237f

Please sign in to comment.