glpi icon indicating copy to clipboard operation
glpi copied to clipboard

Single quotation mark (apostrophe) in users email addresses makes them remove and add again on every synchronization with ldap servers

Open kabassanov opened this issue 2 years ago • 1 comments

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • [X] I have searched the existing issues

Version

9.5.8 and 10.0.2

Bug description

We noticed that users with email addresses containting apostrophes get their glpi entries updated on every synchronizations with ldap servers. This can be seen in the users history. I didn't check where it comes from for the moment, but I suppose that the character is not correctly escaped somewhere...

Relevant log output

No response

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

No response

Anything else?

No response

kabassanov avatar Aug 12 '22 08:08 kabassanov

OK, that's it... In GLPI data base, apostrophes are escaped neither in realname field (glpi_users) nor in email field (glpi_useremails), but they are when retrieved from the LDAP server. So the e-mail address is not matched during comparison in inc/user.class.php (9.5.8) and is removed than added again...

kabassanov avatar Aug 12 '22 09:08 kabassanov

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.

github-actions[bot] avatar Oct 12 '22 08:10 github-actions[bot]

The issue is still present.

kabassanov avatar Oct 12 '22 09:10 kabassanov

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.

github-actions[bot] avatar Dec 13 '22 08:12 github-actions[bot]