Added LDAP config

This commit is contained in:
Daniel Hall
2024-04-01 10:33:59 -07:00
parent c531666eb6
commit 3cf6d0a28b
3 changed files with 28 additions and 0 deletions

No files matched your search

+11
View File
@@ -10,6 +10,17 @@ import (
"github.com/go-ldap/ldap/v3"
)
type Config struct {
BindUser string
BindPass string
BaseDN string
Filter string
FQDN string
Port uint
TLS bool
}
func CheckLDAPcreds(username string, password string, dbc *db.DB) (bool, error) {
ldapFQDN, err := dbc.GetSetting("ldap_fqdn")