LDAP Integration

Install and configure FormaLMS and DoceboCE
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

LDAP Integration

Post by zercomsystems »

Hello all.

Please we have been trying to integrate LDAP to our FormaLMS but it doesn't work as expected. Once we entered the LDAP credentials in the and try to login with the LDAP credentials, the app throws a 500 error.

Can anyone assist with this. Thanks.
alfa24
Senior Boarder
Posts: 2020
Joined: Fri Nov 24, 2017 8:45 am

Re: LDAP Integration

Post by alfa24 »

Hi,
please provide the server logs, alongside with your forma and php versions.
Per supporto GRATUITO contattatemi in privato qui
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

Code: Select all

[Mon Feb 19 08:24:10.041523 2024] [php:warn] [pid 413020] [client 102.89.41.201:14423] PHP Warning:  Undefined array key "" in /var/www/html/enterprise/lib/lib.usermanager.php on line 1073, referer: http>
[Mon Feb 19 08:30:32.177628 2024] [php:warn] [pid 412967] [client 41.184.234.144:57640] PHP Warning:  Undefined array key "" in /var/www/html/enterprise/lib/lib.usermanager.php on line 1073, referer: htt>
[Mon Feb 19 08:32:15.641016 2024] [mpm_prefork:notice] [pid 412961] AH00170: caught SIGWINCH, shutting down gracefully
[Mon Feb 19 08:32:15.767263 2024] [ssl:warn] [pid 414132] AH01909: tangerine365.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  Module "ldap" is already loaded in Unknown on line 0
[Mon Feb 19 08:32:15.801892 2024] [ssl:warn] [pid 414133] AH01909: tangerine365.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Feb 19 08:32:15.808600 2024] [mpm_prefork:notice] [pid 414133] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Mon Feb 19 08:32:15.808628 2024] [core:notice] [pid 414133] AH00094: Command line: '/usr/sbin/apache2'
[Mon Feb 19 08:32:21.251226 2024] [php:warn] [pid 414136] [client 66.249.66.5:53494] PHP Warning:  Undefined global variable $framework in /var/www/html/lib/layout/lib.layout.php on line 399
[Mon Feb 19 08:32:21.251308 2024] [php:warn] [pid 414136] [client 66.249.66.5:53494] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/lib/layout/lib.layout.php on line 3>
[Mon Feb 19 08:32:23.243009 2024] [php:warn] [pid 414136] [client 66.249.66.5:53494] PHP Warning:  Undefined global variable $framework in /var/www/html/lib/layout/lib.layout.php on line 399
[Mon Feb 19 08:32:23.243049 2024] [php:warn] [pid 414136] [client 66.249.66.5:53494] PHP Warning:  Trying to access array offset on value of type null in /var/www/html/lib/layout/lib.layout.php on line 3>
PHP Version - 8.1
Forma 4
alfa24
Senior Boarder
Posts: 2020
Joined: Fri Nov 24, 2017 8:45 am

Re: LDAP Integration

Post by alfa24 »

You should have a fatal, too.
Per supporto GRATUITO contattatemi in privato qui
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

That is all we can get for now
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

[Mon Feb 19 07:30:32.846137 2024] [php:warn] [pid 405500] [client 102.89.41.201:4665] PHP Warning: Undefined array key "" in /var/www/html/enterprise/lib/lib>
<aLms\\lib\\ldap_connect() in /var/www/html/enterprise/lib/FormaUser.php:625\nStack trace:\n#0 /var/www/html/enterprise/plugins/FormaAuth/Authentication.php(5>
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

alfa24 wrote: Mon Feb 19, 2024 9:49 am You should have a fatal, too.

Code: Select all

[Mon Feb 19 07:30:32.846137 2024] [php:warn] [pid 405500] [client 102.89.41.201:4665] PHP Warning: Undefined array key "" in /var/www/html/enterprise/lib/lib>
<aLms\\lib\\ldap_connect() in /var/www/html/enterprise/lib/FormaUser.php:625\nStack trace:\n#0 /var/www/html/enterprise/plugins/FormaAuth/Authentication.php(5>
alfa24
Senior Boarder
Posts: 2020
Joined: Fri Nov 24, 2017 8:45 am

Re: LDAP Integration

Post by alfa24 »

One should be on your instance to investigate further, sorry.
Per supporto GRATUITO contattatemi in privato qui
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

It appears as though it's the ldap extension that is missing. I have fixed the 500 error but it the ldap doesn't authenticate even though we have input the details. Is there a guide somewhere on how to fully set it up.


if the user credentials is this - 'cn=read-only-admin,ou=mathematicians,dc=example,dc=com', how we input it to match the format below.

Code: Select all

Username for LDAP users, use $user for the username.
Ex. $user@domain2.domain1 (for: W2k3)
Thanks.
zercomsystems
Newbie
Posts: 20
Joined: Wed Jan 10, 2024 4:27 pm

Re: LDAP Integration

Post by zercomsystems »

alfa24 wrote: Mon Feb 19, 2024 10:38 am One should be on your instance to investigate further, sorry.
It appears as though it's the ldap extension that is missing. I have fixed the 500 error but it the ldap doesn't authenticate even though we have input the details. Is there a guide somewhere on how to fully set it up.


if the user credentials is this - 'cn=read-only-admin,ou=mathematicians,dc=example,dc=com', how we input it to match the format below.

Username for LDAP users, use $user for the username.
Ex. $user@domain2.domain1 (for: W2k3)

Thanks.
Post Reply