LDAP issue #8046
Replies: 3 comments 1 reply
-
The logging issue might be to do with permissions. Try logging to I found an old config which I haven't used for a while:
|
Beta Was this translation helpful? Give feedback.
-
Still nothing....I changed permission for the log file to 777. FY I am using centos 7.9 |
Beta Was this translation helpful? Give feedback.
-
Just copy this to the end or your ldap_config.py
Ensure the directory /opt/netbox/logs exists (it doesn't by default) and make the netbox user the owner with -> Currently I'm in the same boat, couldn't get it working but at least logging now works |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to integrate LDAP for our netbox and have followed instructions on the website.
Installed django
REMOTE_AUTH_BACKEND = 'netbox.authentication.LDAPBackend' -> configuration file
created ldap_config.py file
But unable to login "Error: Please enter a correct username and password"
I tried to enable logging by copying the following to my configuration file
LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'file': { 'level': 'INFO', 'class': 'logging.FileHandler', 'filename': '/var/log/netbox.log', }, }, 'loggers': { 'django': { 'handlers': ['file'], 'level': 'INFO', }, }, }
and created a /var/log/netbox.log file which doesnt populate after trying to authenticate to the site. Any help would be greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions