N
N
NNS2016-03-25 01:40:14
Helpdesk
NNS, 2016-03-25 01:40:14

GLPI error when importing users "in Russian" from LDAP, how to fix?

Here in this post someone asked, only in the form of an answer. GLPI 0.85 - how to fix Russian fonts when exporting to pdf?
error when importing users "in Russian" from LDAP.
In GLPI 0.90.1, the situation has changed, and if the username is in Russian, and the login is in English. no problems,
User: "Ivanov Ivan Ivanovich",
First name: "Ivan",
Last name: "Ivanov",
Full name: "Ivanov Ivan Ivanovich",
Login name: "[email protected]".
But if the login is in Russian ([email protected]) then GLPI writes: "Login is invalid. Unable to add user."
Also, if the user is not imported, and a connection with AD is configured, then you can log in immediately under the domain account, only if it is in Latin, if the login contains Russian letters, there will be an error.
How to fix this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mickola, 2016-03-30
@NNS

Try to replace the line in the glpi/inc/auth.class.php file
on the

return preg_match( "/^[[:alnum:]@.\-_ ]+$/iu", $login);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question