* Rename fsldap to efsldap

* Use gopkg.in/ini.v1 over github.com/joho/godotenv
* Fix typos

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2026-01-07 16:37:02 -03:00
parent 0677061406
commit e4d9b92061
13 changed files with 147 additions and 69 deletions

View File

@@ -8,13 +8,16 @@ import (
"github.com/lor00x/goldap/message"
ldap "github.com/vjeantet/ldapserver"
"gt.kalli.st/czar/fsldap/utils"
"git.laidback.moe/YakumoLabs/efsldap/config"
"git.laidback.moe/YakumoLabs/efsldap/utils"
)
var smtpHost = utils.Env("SMTP_HOSTNAME")
var smtpPort = utils.Env("SMTP_PORT")
var base = utils.Env("LDAP_BASE")
var smtpHostPort = fmt.Sprintf("%s:%s", smtpHost,smtpPort)
var (
base = config.Config.LDAPBase
smtpHost = config.Config.SMTPHost
smtpPort = config.Config.SMTPPort
smtpHostPort = fmt.Sprintf("%s:%s", smtpHost,smtpPort)
)
var tlsconfig = &tls.Config {
InsecureSkipVerify: true,