Open naranma opened 4 months ago
Hello,
I have the same problem If you have a solution, I'd love to hear from you
[Thu Feb 29 17:41:50.184133 2024] [php:error] [pid 2017] [client 10.0.15.28:58671] PHP Fatal error: Uncaught Error: Call to a member function isEnabled() on null in /var/www/html/TeamPass-3.1.1/vendor/teampassclasses/ldapextra/src/ActiveDirectoryExtra.php:132\nStack trace:\n#0 /var/www/html/TeamPass-3.1.1/sources/ldap.queries.php(170): TeampassClasses\\LdapExtra\\ActiveDirectoryExtra->userIsEnabled()\n#1 {main}\n thrown in /var/www/html/TeamPass-3.1.1/vendor/teampassclasses/ldapextra/src/ActiveDirectoryExtra.php on line 132, referer: https://teampass.aspserveur.local/index.php?page=ldap
Thx
The issue was fixed by changing from OpenLDAP to ActiveDirectory.
File on line 30: teampass/vendor/teampassclasses/ldapextra/src/ActiveDirectoryExtra.php
from
use LdapRecord\Models\OpenLDAP\User;
to
use LdapRecord\Models\ActiveDirectory\User;
Commit: 380c0f6 Link: https://github.com/nilsteampassnet/TeamPass/tree/380c0f6553a739a5d02797223b4e69654f2a7d22
Zip File: https://github.com/nilsteampassnet/TeamPass/archive/380c0f6553a739a5d02797223b4e69654f2a7d22.zip
Updating is required via the link: https://your_site/install/upgrade.php
Great, it works, I've been pulling my hair out for 2 days. Many thanks