[Samba] Re: net ads user and utf8
Alexander E. Patrakov
patrakov at ums.usu.ru
Mon Sep 27 15:29:51 GMT 2004
halemb wrote:
> hello
>
> I am using the samba 3.0.2a windows 2003 server. Samba is connected to W2K
> with security = ADS. Same user names contain non english characters.
> When I try:
> getent passwd - user names don't display correctly.
> net ads user - user names don't display correctly.
>
> What is wrong??
>
> -----------
> smb.conf
> -----------
> unix charset = UTF8
> display charset = UTF8
>
>
> ----------
> /etc/profile
> ----------
> export LANG=en
> export LC_ALL=en_GB.utf8
> export LESSCHARSET=latin1
Your use of UTF-8 is wrong. Use one of the following variants (sorry if
I mis-guessed the settings for Poland):
1) Switch to UTF-8 completely. This works in Poland only with
sufficiently new glibc (glibc 20031201 CVS aka 2.3.3 is too old,
20040701 CVS is OK). To check if this is the case, run the following
command:
LC_ALL=pl_PL.UTF-8 locale
If you get errors like:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
then your glibc is too old and doesn't officially support this locale.
-----------
smb.conf
-----------
unix charset = UTF8
display charset = UTF8
dos charset = cp852
----------
/etc/profile
----------
export LANG=pl_PL.UTF-8
# No LC_ALL or LC_ALL=pl_PL.UTF-8
# No LESSCHARSET
# A lot of broken apps, including Midnight Commander
2) Use plain old ISO-8859-2. It is simple and works well with other
applications.
-----------
smb.conf
-----------
unix charset = ISO-8859-2
display charset = ISO-8859-2
dos charset = cp852
----------
/etc/profile
----------
export LANG=pl_PL.ISO-8859-2
# No LC_ALL or LC_ALL=pl_PL.ISO-8859-2
# No LESSCHARSET
# Everything works
--
Alexander E. Patrakov
More information about the samba
mailing list