mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-29 09:50:56 +02:00
Use NewLDAP to instanciate LDAP backend
This commit is contained in:
6
main.go
6
main.go
@ -62,7 +62,11 @@ func main() {
|
||||
}
|
||||
|
||||
// Init authentification
|
||||
//authBackend := auth.New(&cfg.Auth)
|
||||
authBackend, err := auth.New(&cfg.Auth)
|
||||
if err != nil {
|
||||
log.Fatalln("Failed to load authentification backend:", err)
|
||||
}
|
||||
defer authBackend.Close()
|
||||
|
||||
// Start web server routine
|
||||
go func() {
|
||||
|
Reference in New Issue
Block a user