Started LDAP support

This commit is contained in:
2023-10-24 22:15:58 +02:00
parent 4a9a913d66
commit 7bcd00c97b
11 changed files with 669 additions and 82 deletions

12
util/util.go Normal file
View File

@@ -0,0 +1,12 @@
package util
import "os"
func GetEnvDefault(name string, def string) string {
env, exist := os.LookupEnv(name)
if exist {
return env
} else {
return def
}
}