Last active
October 27, 2022 15:21
-
-
Save sayan3296/6ba6092e70a74f1725e77c923c66085d to your computer and use it in GitHub Desktop.
Enable debug logging for ldap authentication stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Enable debug. | |
1. Take a backup | |
# cp -pvar /etc/foreman/settings.yaml /etc/foreman/settings.yaml_orig | |
2. Look for this section on satellite, | |
~~ | |
# grep ^:logging /etc/foreman/settings.yaml -A10 | |
:logging: | |
:level: info | |
:production: | |
:type: file | |
:layout: pattern | |
# Individual logging types can be toggled on/off here | |
:loggers: | |
~~~ | |
3. Modify logging and logger sections to look like following, | |
~~~ | |
:logging: | |
:level: debug | |
:production: | |
:type: file | |
:layout: pattern | |
# Individual logging types can be toggled on/off here | |
:loggers: | |
:app: | |
:enabled: true | |
:ldap: | |
:enabled: true | |
~~~ | |
4. Restart satellite services. | |
# systemctl restart foreman httpd | |
# sleep 30 && hammer ping | |
or, | |
# foreman-maintain service restart | |
# foreman-maintain service status -b | |
# sleep 10 && hammer ping |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment