feat(auth): authenticate users via ldap

This commit is contained in:
kolaente
2025-01-27 14:40:09 +01:00
committed by konrad
parent 522f1cb596
commit 38bb8de4f1
8 changed files with 219 additions and 6 deletions

View File

@@ -26,7 +26,10 @@ import (
"xorm.io/xorm"
)
const IssuerLocal = `local`
const (
IssuerLocal = `local`
IssuerLDAP = `ldap`
)
// CreateUser creates a new user and inserts it into the database
func CreateUser(s *xorm.Session, user *User) (newUser *User, err error) {