I want to write some logs in the login
function of LDAP authentication functions of my installed Gitlab.
I added the required lines in the following file (Line 3):
And after that I did some login tries in the login form of the Gitlab.
But as you see above, the debug
file doesn't created.
What am I need to do? Does it require any recompile or something?
Note that I also restarted the service using the following command, but nothing changed:
# gitlab-ctl restart
It appears that you put the logging code in the wrong place. Try putting the logging in #login
instead of ::login
or look for a better hook depending on what it is you are trying to log.
See the official documentation for more information about LDAP setup and troubleshooting.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With