Problems with integration with xdmod in LDAP authentication

Hi,I have set up XDMoD and simplesamlphp, and both are set up to allow login with an LDAP account.

However, after logging in to OOD and XDMoD, the OOD dashboard shows "Error: Forbidden Please ensure you are logged into Open XDMoD first, and then try again.
I am already logged into XDMoD with the same account as in OOD, but I cannot view the graphs or job details.

When I click on the job number and check the details, I get a “403 Forbidden” message on the XDMoD screen.
The following error appears in /var/log/xdmod/exception/log.

-------------------------------------------------------
2024-05-19 16:13:16 [error] Exception Code: 103
2024-05-19 16:13:16 [error] Message: access denied to ["core_time","core_time_bad","bad_core_ratio","job_count","job_count_bad","bad_job_ratio"]
2024-05-19 16:13:16 [error] Origin: /usr/share/xdmod/classes/Rest/Controllers/WarehouseControllerProvider.php (line 785)
2024-05-19 16:13:16 [error] Trace:
#0 [internal function]: Rest\Controllers\WarehouseControllerProvider->getAggregateData(Object(Symfony\Component\HttpFoundation\Request), Object(Silex\Application))
#1 /usr/share/xdmod/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Array, Array)
#2 /usr/share/xdmod/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#3 /usr/share/xdmod/vendor/silex/silex/src/Silex/Application.php(586): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#4 /usr/share/xdmod/vendor/silex/silex/src/Silex/Application.php(563): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request))
#5 /usr/share/xdmod/html/rest/index.php(25): Silex\Application->run()
#6 {main}
-------------------------------------------------------
2024-05-19 16:13:18 [error] Exception Code: 103
2024-05-19 16:13:18 [error] Message: Your user account does not have permission to view the requested data.  If you
believe that you should be able to see this information, then please select
"Submit Support Request" in the "Contact Us" menu to request access.
2024-05-19 16:13:18 [error] Origin: /usr/share/xdmod/classes/Rest/Controllers/WarehouseControllerProvider.php (line 2055)
2024-05-19 16:13:18 [error] Trace:
#0 /usr/share/xdmod/classes/Rest/Controllers/WarehouseControllerProvider.php(694): Rest\Controllers\WarehouseControllerProvider->getJobByPrimaryKey(Object(Silex\Application), Object(XDUser), 'SUPREMM', Array)
#1 [internal function]: Rest\Controllers\WarehouseControllerProvider->searchJobs(Object(Symfony\Component\HttpFoundation\Request), Object(Silex\Application))
#2 /usr/share/xdmod/vendor/symfony/http-kernel/HttpKernel.php(144): call_user_func_array(Array, Array)
#3 /usr/share/xdmod/vendor/symfony/http-kernel/HttpKernel.php(64): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#4 /usr/share/xdmod/vendor/silex/silex/src/Silex/Application.php(586): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#5 /usr/share/xdmod/vendor/silex/silex/src/Silex/Application.php(563): Silex\Application->handle(Object(Symfony\Component\HttpFoundation\Request))
#6 /usr/share/xdmod/html/rest/index.php(25): Silex\Application->run()
#7 {main}
-------------------------------------------------------

Do you know of a solution to this problem?

I’m waiting for your answer.
Thank you for always kindly replying.
Have a nice day :slight_smile:

Hello! Have you setup the supremm module? It’s possible that you may need to add users individually to the module within XDMoD, Job Performance (SUPReMM) -

If you try to select SUPReMM realm data in the Usage tab then you should see an “access denied” message box. These messages should not be seen when accessing the portal using a normal account that has user role. If desired, a user role can be added to the admin account using the “User Management” tab in the XDMoD Dashboard.

Hi hrandquist, sorry for the delay responding.
I tried to install SUPReMM, but I got a database error.

Failed to load Quick Job Lookup resource list.
(sqlstate[42s02]: No base table or view found: 1146 Table 'modw_aggregates.supremmfact_by_year' does not exist)

Where is the SQL file to add the table?
Or am I missing something important?

I can’t get the PCP prologue/epilogue to work in the slurm environment either. Do you know what error this is?

slurmd: error: prolog failed: rc:2 output:Can't locate Date/Simple.pm in @INC (you may need to install the Date::Simple module) (@INC contains: /usr/ local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /etc/slurm/prolog.d/slurm-prolog line 5.

I am a newbie and not sure. Sorry.

Hi,
I was able to display it successfully!
Thanks so much for the advice. I appreciate it.
I had to additionally include perl-CPAN and create a mongosh → mongo symlink.

Thanks!