Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insufficent LDAP log #9448

Open
1 of 3 tasks
finkr opened this issue Dec 20, 2019 · 2 comments
Open
1 of 3 tasks

Insufficent LDAP log #9448

finkr opened this issue Dec 20, 2019 · 2 comments
Labels
topic/authentication type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@finkr
Copy link

finkr commented Dec 20, 2019

  • Gitea version : 1.11

  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

    2019/12/20 18:46:51 ...es/auth/ldap/ldap.go:101:findUserDN() [D] Failed search using filter[(objectCategory=user)%!(EXTRA string=jdoe)]: LDAP Result Code 201 "Filter Compile Error": ldap: finished compiling filter with extra at end: %!(EXTRA string=jdoe)
    2019/12/20 18:46:51 ...dels/login_source.go:797:UserSignIn() [W] Failed to login 'jdoe' via 'MYDOMAIN': user does not exist [uid: 0, name: jdoe, keyid: 0]
    

Description

I had hard time to diagnose the issue an LDAP configuration error, because the LDAP error message aren't shown in the log in level "LEVEL=info". Actually there was no error message at all. I had to set "LEVEL=debug" in the file app.ini.

Could you add an entry in the log when there's an LDAP error.

It would be nice to include the LDAP error message in the log, or explain that one have to switch to LEVEL=debug to get the full error message.

I love Gitea, Thanks !

@lunny lunny added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label Dec 21, 2019
@eNBeWe
Copy link

eNBeWe commented Feb 4, 2021

Even tough it is not often that you need to tinker aroiudn with the ldap connections, I stumbled into some problem today. I would have expected to find some errors in my log when the request didn't go through.

@zeripath
Copy link
Contributor

zeripath commented Feb 7, 2021

OK, So there are a few issues here.

Various different LDAP providers will return different errors when there is normal functioning - it's not a very well defined standard.

So... If you want this improved ... we're going to need to see what those errors are. For example What kind of error is returned with failure of SimpleBind? What kind of error is returned when a user can't be found?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/authentication type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

5 participants