Closed calmettesj closed 1 year ago
As requested, please use english only.
Since the upgrade on 10.0.2 LDAP is not working anymore (link to Microsoft Active Directory) The LDAP configuration is the same as in 10.0.1 When I check the configuration and make a test it tells connection Ok But nor syncrhonization, import or connection is possible
Here is AuthLDAP.php line 3374
if ($result = ldap_search($ds, $values['basedn'], $filter, $ldap_parameters)) {
and the 3390 throw new \RuntimeException('Something went wrong searching in LDAP directory');
Hi, Does someone have a solution? It is impossible to manage more than 2000 users without LDAP :-(
I got this message in error logs AH01071: Got error 'PHP message: PHP Warning: ldap_search(): Search: Operations error in /var/www/glpi-support/src/AuthLDAP.php on line 3372
Hi @calmettesj Unhappily I don't have a solution for you. But I believe you can help me. I also have a problem. LDAP in my GLPI has just stopped working for no reason (Test just returns a generic error). I can't get the logs to debug, as php-erros.log is empty. I was using 9.5. and then installed the 10.0.2, nothing changed. How do you managed to debug LDAP in GLPI?
Hi I still have the problem and no informations from the dev... You can find logs in /GLPI_Directory/fies/_log/ SQL error and Php error logs You can also find error logs depending the configuration you have (IIS, Apache etc...)
@calmettesj Yes, that's the problem. I activated the debug mode and I can't see anything helpful. My logs in the files/ directory don't show anything related to LDAP. Apache logs don't help either, any error related to LDAP is shown. Is there a way to enable a debug/verbose mode for the logs?
I have the same issue here. The message in the UI and the one in the log are not really helpfull. As i do not have a subscription for LDAP tools by Techlib' i cannot identify if it comes from my side or another. I'm going to try an 9.x version and see the differences. If i have enough revelant information, i'll put it here
I have the same issue here. The message in the UI and the one in the log are not really helpfull. As i do not have a subscription for LDAP tools by Techlib' i cannot identify if it comes from my side or another. I'm going to try an 9.x version and see the differences. If i have enough revelant information, i'll put it here
That's what I'm suspecting. I've used past GLPI versions and any problem I had with LDAP I could flawlessly debug it. No, it seems to be impossible.
Are you using anonymous connection ?
Have you tested this new option ?
Best regards
So, before doing much more tests, as far as i know, here is the context :
I have the same errors :
[2022-09-13 14:54:31] glpiphplog.WARNING: *** PHP Warning (2): ldap_search(): Search: Operations error in C:\glpi\src\AuthLDAP.php at line 3372
Backtrace :
src\AuthLDAP.php:3372 ldap_search()
src\AuthLDAP.php:2770 AuthLDAP::searchUserDn()
src\AuthLDAP.php:2696 AuthLDAP::ldapImportUserByServerId()
front\user.form.php:117 AuthLDAP::forceOneUserSynchronization()
[2022-09-13 14:54:31] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Something went wrong searching in LDAP directory in C:\glpi\src\AuthLDAP.php at line 3388
Backtrace :
src\AuthLDAP.php:2770 AuthLDAP::searchUserDn()
src\AuthLDAP.php:2696 AuthLDAP::ldapImportUserByServerId()
front\user.form.php:117 AuthLDAP::forceOneUserSynchronization()
It does not come from AD LDAP I have the same application and same settings on 10.0.1 and it works (same server, same AD...) So seems that the problem comes from GLPI 10.0.2 I tried to check the difference between files in 10.0.1 and 10.0.2 but I have not enough time...
@stonebuzz : yes, i have tried and change nothing :-(
Ok so, to not spam here : i made some tests with the 10.0.1 and 10.0.2. After a "lot" of trials, i can now see my users. I can still have some errors during import if i use the "simple" mode. If i use the expert mode, i have a correct paginated list. Also the expert mode helped me with the configuration.
Right now, without further tricks, the configuration is quite out-of-the-box :
(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))
dc
samaccountname
objectguid
I'll try to keep you updated with everything i can see with my other trials and (21) Active Directories
Same problem with theses informations I have tried to fill exactly the same informations but i could not connect to GLPI using LDAP and could not import/sync users
PS : I am in 10.0.2 Same configuration works in 10.0.1
I haven't seen a modification on this purpose on 10.0.3 so I have not upgrade
I have found a part of the problem Two points
I have found a part of the problem Two points
- During migration the auth_ldap files had a problem (i have resintall all 10.0.2 files like a new/fresh update)
- The password stored for the AD request was corrupted (I use the same between my 2 GLPI and in database the password was different. I have check my database backup before upgrade and it was the same than my other GLPI ...)
During installation/update, if encryption key file is not present on file system, GLPI generates a new random encryption key, resulting in the impossibility to decrypt content that was stored using previous key. It seems that you did not update your GLPI instance using expected process. See https://glpi-install.readthedocs.io/en/latest/update.html for expected update process.
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.2
Bug description
Hi Since the upgrade on 10.0.2 LDAP is not working anymore (link to Microsoft Active Directory) The LDAP configuration is the same as in 10.0.1 When I check the configuration and make a test it tells connection Ok But nor syncrhonization, import or connection is possible
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Informations sur le système, l'installation et la configuration
Server
GLPI constants
Libraries
LDAP directories
SQL replicas
Notifications
Plugins list
Anything else?
No response