Dear all,
I’ve tried to configure the SAML authentication with Keycloack as SSO.
In Keycloack if in Role List I set the Single Role Attribute as false I obtein a blank page with an error Found an Attribute element with duplicated Name in logs
Fri Oct 25 13:05:35 2019 [29086][-none-][FATAL] Exception handling in /opt/SuiteCRM-7.11.8/include/MVC/Controller/SugarController.php:400
Fri Oct 25 13:05:35 2019 [29086][-none-][FATAL] Exception in Controller: Found an Attribute element with duplicated Name
Fri Oct 25 13:05:35 2019 [29086][-none-][FATAL] backtrace:
#0 /opt/SuiteCRM-7.11.8/vendor/onelogin/php-saml/src/Saml2/Response.php(765): OneLogin\Saml2\Response->_getAttributesByKeyName(‘Name’)
#1 /opt/SuiteCRM-7.11.8/vendor/onelogin/php-saml/src/Saml2/Auth.php(227): OneLogin\Saml2\Response->getAttributes()
#2 /opt/SuiteCRM-7.11.8/modules/Users/authentication/SAML2Authenticate/SAML2Authenticate.php(83): OneLogin\Saml2\Auth->processResponse(NULL)
#3 /opt/SuiteCRM-7.11.8/modules/Users/Login.php(46): SAML2Authenticate->pre_login()
#4 /opt/SuiteCRM-7.11.8/include/MVC/View/SugarView.php(834): include_once(’/opt/SuiteCRM-7…’)
#5 /opt/SuiteCRM-7.11.8/include/MVC/View/views/view.classic.php(72): SugarView->includeClassicFile(‘modules/Users/L…’)
#6 /opt/SuiteCRM-7.11.8/include/MVC/View/SugarView.php(226): ViewClassic->display()
#7 /opt/SuiteCRM-7.11.8/include/MVC/Controller/SugarController.php(435): SugarView->process()
#8 /opt/SuiteCRM-7.11.8/include/MVC/Controller/SugarController.php(375): SugarController->processView()
#9 /opt/SuiteCRM-7.11.8/include/MVC/SugarApplication.php(113): SugarController->execute()
#10 /opt/SuiteCRM-7.11.8/index.php(52): SugarApplication->execute()
Otherwise if in Keycloack I set the Single Role Attribute as true I will get stuck in a redirect loop and the logs appears like this
Fri Oct 25 13:04:45 2019 [29086][-none-][FATAL] SECURITY: User authentication for [USER] failed
Fri Oct 25 13:04:45 2019 [29086][-none-][FATAL] SECURITY: User authentication for [USER] failed
Fri Oct 25 13:04:45 2019 [29086][-none-][FATAL] SECURITY: User authentication for [USER] failed
Fri Oct 25 13:04:45 2019 [29086][-none-][FATAL] SECURITY: User authentication for [USER] failed
Fri Oct 25 13:04:45 2019 [29086][-none-][FATAL] SECURITY: User authentication for [USER] failed
Can anyone help me?
Thank you
Dipi