Customer User Backend and LDAP

HI All! I use for storage of Customer Users LDAP (openldap). Records in LDAP are stored in the coding utf-8. When the user having entered the a login and the password is included into system, it sees a line: Welcome "givenname" "sn" (e-mail address) "givenname" and "sn" are in the coding utf-8, though $Self->{DefaultLanguage} = 'ru'; $Self->{DefaultCharset} = 'cp1251'; I.e. "givenname" and "sn" it is not dependent from DefaultCharset have the coding utf-8. How to make, what "givenname" and "sn" at a conclusion to the screen changed the coding on DefaultCharset? Please help me. Regards, Mikhail Kravchuk Entri ltd.

Hi Mikhail, On Sat, Feb 21, 2004 at 01:08:47AM +0200, Mikhail Kravchuk wrote:
I use for storage of Customer Users LDAP (openldap). Records in LDAP are stored in the coding utf-8.
When the user having entered the a login and the password is included into system, it sees a line: Welcome "givenname" "sn" (e-mail address)
"givenname" and "sn" are in the coding utf-8, though $Self->{DefaultLanguage} = 'ru'; $Self->{DefaultCharset} = 'cp1251';
I.e. "givenname" and "sn" it is not dependent from DefaultCharset have the coding utf-8.
How to make, what "givenname" and "sn" at a conclusion to the screen changed the coding on DefaultCharset?
There are two ways. a) use utf-8 as default charset for your system ($Self->{DefaultCharset} = 'utf-8'; b) Update Kernel/System/CustomerUser/LDAP.pm from CVS and see http://doc.otrs.org/cvs/en/html/customer-user-backend.html#AEN775 There are SourceCharset and DestCharset with the current cvs Kernel/System/CustomerUser/LDAP.pm module. $Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => 'bay.csuhayward.edu', [...] # if your frontend is e. g. iso-8859-1 and the charset of your # ldap server is utf-8, use this options (if not, ignore it) SourceCharset => 'utf-8', DestCharset => 'iso-8859-1', [...] }, # customer uniq id CustomerKey => 'uid', [...]
Regards, Mikhail Kravchuk Entri ltd.
Martin Edenhofer -- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!

Hi Martin! Thanks you for the answer. Martin Edenhofer wrote:
%<-----------
There are two ways.
a) use utf-8 as default charset for your system ($Self->{DefaultCharset} = 'utf-8';
It is a good way, but unfortunately I cannot take advantage of him, because as soon as I set $Self-> {DefaultCharset} = 'utf8', I receive a mistake from a server Usage: Apache::RequestRec::BINMODE(r) at /opt/otrs//Kernel/System/Encode.pm line 224.
b) Update Kernel/System/CustomerUser/LDAP.pm from CVS and see http://doc.otrs.org/cvs/en/html/customer-user-backend.html#AEN775
There are SourceCharset and DestCharset with the current cvs Kernel/System/CustomerUser/LDAP.pm module.
$Self->{CustomerUser} = { Name => 'LDAP Backend', Module => 'Kernel::System::CustomerUser::LDAP', Params => { # ldap host Host => 'bay.csuhayward.edu', [...] # if your frontend is e. g. iso-8859-1 and the charset of your # ldap server is utf-8, use this options (if not, ignore it) SourceCharset => 'utf-8', DestCharset => 'iso-8859-1', [...] }, # customer uniq id CustomerKey => 'uid', [...]
It's work. Thanks you.
Martin Edenhofer
-- ((otrs.de)) :: OTRS GmbH :: Norsk-Data-Str. 1 :: 61352 Bad Homburg http://www.otrs.de/ :: Manage your communication!
-- Regards, Mikhail Kravchuk Entri ltd.
participants (2)
-
Martin Edenhofer
-
Mikhail Kravchuk