mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Add diagnostic message for LDAP auth
This commit is contained in:
parent
0bfde82040
commit
36d7136210
1 changed files with 2 additions and 0 deletions
|
@ -273,6 +273,7 @@ func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request) {
|
|||
// Check for required fields.
|
||||
if len(username) == 0 || len(password) == 0 {
|
||||
response.WriteUnauthorizedError(w)
|
||||
h.Runtime.Log.Info("LDAP authentication aborted due to missing username/password")
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -313,6 +314,7 @@ func (h *Handler) Authenticate(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
if !ok {
|
||||
h.Runtime.Log.Info("LDAP failed login request for " + username + " @ " + dom)
|
||||
response.WriteUnauthorizedError(w)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue