I added debug to the cacti log and this is what I see at that time:
Code: Select all
2024-06-05 12:56:55 - AUTH LDAP: Connect using ldap://example.com:389
2024-06-05 12:56:55 - AUTH NOTE: Setting Network Timeout to 3 seconds
2024-06-05 12:56:55 - AUTH NOTE: Setting Bind Timeout to 5 seconds
2024-06-05 12:56:55 - AUTH LDAP_SEARCH: Authentication Success, DN: CN=Smith\, Frank,OU=FIN,OU=Can,DC=example,DC=com
2024-06-05 12:56:55 - AUTH LDAP_SEARCH: (/index.php[25]:include(), /include/auth.php[167]:require_once(), /auth_login.php[99]:ldap_login_process(), /lib/auth.php[3721]:cacti_ldap_search_dn(), /lib/ldap.php[175]:Ldap->Search(), /lib/ldap.php[813]:LdapError::GetErrorDetails(), /lib/ldap.php[367]:cacti_debug_backtrace())
2024-06-05 12:56:55 - AUTH LDAP: Connect using ldap://example.com:389
2024-06-05 12:56:55 - AUTH NOTE: Setting Network Timeout to 3 seconds
2024-06-05 12:56:55 - AUTH NOTE: Setting Bind Timeout to 5 seconds
2024-06-05 12:56:55 - AUTH LDAP: Binding with "CN=Smith\, Frank,OU=FIN,OU=Can,DC=example,DC=com"
2024-06-05 12:56:55 - ERROR PHP ERROR: Uncaught TypeError: ldap_first_entry(): Argument #2 ($result) must be of type LDAP\Result, bool given in /var/www/html/cacti/lib/ldap.php:678 Stack trace: #0 /var/www/html/cacti/lib/ldap.php(678): ldap_first_entry() #1 /var/www/html/cacti/lib/ldap.php(95): Ldap->Authenticate() #2 /var/www/html/cacti/lib/auth.php(3735): cacti_ldap_auth() #3 /var/www/html/cacti/auth_login.php(99): ldap_login_process() #4 /var/www/html/cacti/include/auth.php(167): require_once('...') #5 /var/www/html/cacti/index.php(25): include('...') #6 {main} thrown in file: /var/www/html/cacti/lib/ldap.php on line: 678
2024-06-05 12:56:55 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler())
Code: Select all
$first_entry = ldap_first_entry($ldap_conn, $true_dn_result);
I'm stuck at this point, any help would be appreciated...