1
0
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:
Alexandre Iooss
2020-09-22 14:16:52 +02:00
parent 07c8dc6ca1
commit c1de814a2a
3 changed files with 30 additions and 11 deletions

View File

@ -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() {