(username string, password string, guiCfg config.GUIConfiguration)
| 236 | } |
| 237 | |
| 238 | func authStatic(username string, password string, guiCfg config.GUIConfiguration) bool { |
| 239 | return guiCfg.CompareHashedPassword(password) == nil && username == guiCfg.User |
| 240 | } |
| 241 | |
| 242 | func authLDAP(username string, password string, cfg config.LDAPConfiguration) bool { |
| 243 | address := cfg.Address |