(username string)
| 175 | } |
| 176 | |
| 177 | func (auth *AuthService) GetLocalUser(username string) config.User { |
| 178 | for _, user := range auth.config.Users { |
| 179 | if user.Username == username { |
| 180 | return user |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | tlog.App.Warn().Str("username", username).Msg("Local user not found") |
| 185 | return config.User{} |
| 186 | } |
| 187 | |
| 188 | func (auth *AuthService) GetLdapUser(userDN string) (config.LdapUser, error) { |
| 189 | if !auth.ldap.IsConfigured() { |
no outgoing calls
no test coverage detected