Closed AntoninRoyerPID closed 1 month ago
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.
I just did a change like that... My Windows domain is a single word (like DOMAIN), and the userprincipalname fetched from LDAP is adding ".com". I'm also using the LDAP email field to login users...
So when Inventory run, it doesn't found user@DOMAIN since my email2 is configured with user@domain.com...
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
The alternate username format is incorrect because I don't have the full email address. For example, “
toto@mail.com
” is truncated to just “toto”. This issue started with version 1.9 on Windows 11 and persisted in version 1.10 on Windows 10 and 11. The problem seems to come from this functionprotected function prepareForUsers($val)
at line 244 insrc/Inventory/Asset/MainAsset.php
. I'm trying to do some logging but I didn't find anything.When importing using a full JSON file, the process works correctly, but it fails when using the agent. It appears this problem is related to the issue discussed in this ticket, which was supposedly patched.
Relevant log output
No response
Page URL
No response
Steps To reproduce
1.Install and configure agent 2.Force inventory
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
I solve it by editing the function with a default domain but this is not the rigth solution for long term scalability. Here is my code :