We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d7ed4 commit 489e37dCopy full SHA for 489e37d
connector/ldap/ldap.go
@@ -198,7 +198,9 @@ func userMatchers(c *Config, logger *slog.Logger) []UserMatcher {
198
return c.GroupSearch.UserMatchers
199
}
200
201
- logger.Warn(`use "groupSearch.userMatchers" option instead of "userAttr/groupAttr" fields`, "deprecated", true)
+ if c.GroupSearch.UserAttr != "" || c.GroupSearch.GroupAttr != "" {
202
+ logger.Warn(`use "groupSearch.userMatchers" option instead of "userAttr/groupAttr" fields`, "deprecated", true)
203
+ }
204
return []UserMatcher{
205
{
206
UserAttr: c.GroupSearch.UserAttr,
0 commit comments