It looks like hookenv.config("ldap_default_roles").split(",") should be `ldap_default_graylog_roles` instead.
2023-04-26 17:31:47 INFO unit.graylog/0.juju-log server.go:316 Invoking reactive handler: reactive/graylog.py:1426:configure_graylog_ldap_backend
2023-04-26 17:31:47 INFO unit.graylog/0.juju-log server.go:316 Get installed key for snap graylog
2023-04-26 17:31:47 ERROR unit.graylog/0.juju-log server.go:316 Hook error:
Traceback (most recent call last):
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
bus.dispatch(restricted=restricted_mode)
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
_invoke(other_handlers)
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
handler.invoke()
File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
self._action(*args)
File "/var/lib/juju/agents/unit-graylog-0/charm/reactive/graylog.py", line 1438, in configure_graylog_ldap_backend
ldap_default_user_roles = hookenv.config("ldap_default_roles").split(",")
AttributeError: 'NoneType' object has no attribute 'split'
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 Traceback (most recent call last):
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/charm/hooks/config-changed", line 22, in <module>
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 main()
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/__init__.py", line 74, in main
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 bus.dispatch(restricted=restricted_mode)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 390, in dispatch
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 _invoke(other_handlers)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 359, in _invoke
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 handler.invoke()
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/.venv/lib/python3.6/site-packages/charms/reactive/bus.py", line 181, in invoke
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 self._action(*args)
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 File "/var/lib/juju/agents/unit-graylog-0/charm/reactive/graylog.py", line 1438, in configure_graylog_ldap_backend
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 ldap_default_user_roles = hookenv.config("ldap_default_roles").split(",")
2023-04-26 17:31:47 WARNING unit.graylog/0.config-changed logger.go:60 AttributeError: 'NoneType' object has no attribute 'split'
2023-04-26 17:31:47 ERROR juju.worker.uniter.operation runhook.go:153 hook "config-changed" (via explicit, bespoke hook script) failed: exit status 1
latest/edge revno 69