mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 10:20:39 +00:00
Merge branch 'dev' of github.com:gogits/gogs into dev
This commit is contained in:
commit
861a20f464
2 changed files with 5 additions and 4 deletions
|
@ -316,7 +316,7 @@ func NewConfigContext() {
|
|||
// load LDAP authentication configuration if present
|
||||
LdapAuth = Cfg.MustBool("security", "LDAP_AUTH", false)
|
||||
if LdapAuth {
|
||||
log.Debug("LDAP AUTHENTICATION activated")
|
||||
qlog.Debug("LDAP AUTHENTICATION activated")
|
||||
nbsrc := 0
|
||||
for _, v := range Cfg.GetSectionList() {
|
||||
if matched, _ := regexp.MatchString("(?i)^LDAPSOURCE.*", v); matched {
|
||||
|
@ -329,15 +329,15 @@ func NewConfigContext() {
|
|||
ldapmsadsaformat := Cfg.MustValue(v, "MSADSAFORMAT", "%s")
|
||||
ldap.AddSource(ldapname, ldaphost, ldapport, ldapbasedn, ldapattribute, ldapfilter, ldapmsadsaformat)
|
||||
nbsrc += 1
|
||||
log.Debug("%s added as LDAP source", ldapname)
|
||||
qlog.Debug("%s added as LDAP source", ldapname)
|
||||
}
|
||||
}
|
||||
if nbsrc == 0 {
|
||||
log.Debug("No valide LDAP found, LDAP AUTHENTICATION NOT activated")
|
||||
qlog.Debug("No valide LDAP found, LDAP AUTHENTICATION NOT activated")
|
||||
LdapAuth = false
|
||||
}
|
||||
} else {
|
||||
log.Debug("LDAP AUTHENTICATION NOT activated")
|
||||
qlog.Debug("LDAP AUTHENTICATION NOT activated")
|
||||
}
|
||||
|
||||
PictureService = Cfg.MustValue("picture", "SERVICE")
|
||||
|
|
1
serve.go
1
serve.go
|
@ -53,6 +53,7 @@ func newLogger(execDir string) {
|
|||
}
|
||||
|
||||
qlog.SetOutput(f)
|
||||
//qlog.SetOutputLevel(qlog.Ldebug)
|
||||
qlog.Info("Start logging serv...")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue