Configure saml and openwisp-radius

87 views
Skip to first unread message

HÒA TRẦN VĂN

unread,
Nov 6, 2021, 11:04:03 AM11/6/21
to OpenWISP
Hello everyone,

I am configuring saml login and logout based on openwisp-wifi-login-page and openwisp-radius instructions: https://github.com/openwisp/openwisp-radius/blob/e7e8c76afd11bc23401000b0a21d29f703928fdf/docs/source/user/saml.rst

I am having the following problem. Can you show me how to solve it?  Thank you.

[ERROR 2021-11-06 21:31:34,893] module: log, process: 517427, thread: 140325495674752
Internal Server Error: /radius/saml2/login/
Traceback (most recent call last):
  File "/opt/openwisp2/env/lib/python3.8/site-packages/django/core/handlers/exception.py", line 47, in inner
    response = get_response(request)
  File "/opt/openwisp2/env/lib/python3.8/site-packages/django/core/handlers/base.py", line 181, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/openwisp2/env/lib/python3.8/site-packages/django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "/opt/openwisp2/env/lib/python3.8/site-packages/django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "/opt/openwisp-radius/openwisp_radius/saml/views.py", line 115, in get
    return super().get(request, *args, **kwargs)
  File "/opt/openwisp2/env/lib/python3.8/site-packages/djangosaml2/views.py", line 217, in get
    configured_idps = available_idps(conf)
  File "/opt/openwisp2/env/lib/python3.8/site-packages/djangosaml2/utils.py", line 43, in available_idps
    for metadata_name, metadata in config.metadata.metadata.items():
AttributeError: 'NoneType' object has no attribute 'metadata'

Best Reqard,
Hoa

Federico Capoano

unread,
Nov 6, 2021, 4:00:39 PM11/6/21
to OpenWISP
It seems your django settings miss key configuration needed to configure the SAML Single Sign-On.
Please refer to the documentation of djangosaml2.

Best regards
Federico

HÒA TRẦN VĂN

unread,
Nov 8, 2021, 9:41:35 AM11/8/21
to OpenWISP

Thank you very much. I will learn more about it.

Regards,
Hoa

Vào lúc 03:00:39 UTC+7 ngày Chủ Nhật, 7 tháng 11, 2021, federico...@gmail.com đã viết:
Reply all
Reply to author
Forward
0 new messages