Discussion:
CUPS+Samba and usernames with special characters
Nicola Ferrari (#554252)
2013-03-02 14:07:40 UTC
Permalink
Hi everybody.

I'm having a problem in my Samba+CUPS configuration.
It's a problem that affects only italian-speaking people I
think, but maybe someone has already had a similar problem and can help
me...

I have some users that have in their name special characters, i.e.
accents, quite common and used in italian language...

For example, with a user called pinco.pallinò, the situation is:

- Samba (Winbind) bind it correctly:

# wbinfo -u | grep pinco
pinco.pallinò

- But if try to print something, cups tell me (in error_log)
E [01/Mar/2013:08:52:08 +0100] [Job 1660] Unknown user pinco.pallin__
E [01/Mar/2013:08:52:08 +0100] [Job 1660] Unknown user pinco.pallin__

Why??

I put DefaultLanguage it and DefaultCharset UTF-8 in
/etc/cups/cupsd.conf, but things don't change...

If I issue the "locale" command, I get:
LANG=it_IT.UTF-8
LANGUAGE=
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

So locales seems to be correctly configured..

Where could the problem be??
Any help is approciated,

Thanks,
Nick
--
+---------------------+
| Linux User #554252 |
+---------------------+
Renaud (Ron) Olgiati
2013-03-02 14:27:08 UTC
Permalink
On Saturday 02 Mar 2013 11:07 my mailbox was graced by a message from Nicola
Post by Nicola Ferrari (#554252)
Where could the problem be??
Problem could be that in Linux user ames can only contain lowercase a through
z, 0 through 9, and _ (underscore).

Using other characters in user names (or in file names) is asking for trouble.

Cheers,

Ron.
--
To be trusted is a greater compliment than to be loved.
-- George MacDonald

-- http://www.olgiati-in-paraguay.org --
Nicola Ferrari (#554252)
2013-03-02 14:55:47 UTC
Permalink
Post by Renaud (Ron) Olgiati
On Saturday 02 Mar 2013 11:07 my mailbox was graced by a message from Nicola
Post by Nicola Ferrari (#554252)
Where could the problem be??
Problem could be that in Linux user ames can only contain lowercase a through
z, 0 through 9, and _ (underscore).
Using other characters in user names (or in file names) is asking for trouble.
Cheers,
Ron.
Hi ron, thanks for your reply...

Do you think that there's any place where to configure a sort of "string
substitution/user mapping" when the Windows client "give" Samba the
username?
(so to make samba+cups believe that the user name is pinco.pallino,
instead of pinco.pallinò)?

Thanks!
Nick
--
+---------------------+
| Linux User #554252 |
+---------------------+
Nicola Ferrari (#554252)
2013-03-02 13:40:00 UTC
Permalink
Hi everybody.

I'm having a problem in my Samba+CUPS configuration.
I thinks it's a problem that affects only people speaking italian and
other latin languages, but maybe someone has already had a similar
problem and can help me...

I have some users that have in their name special characters, i.e.
accents, quite common and used in italian language...

For example, with a user called pinco.pallinò in my Win2008 AD, the
situation is:

- Samba (Winbind) bind it correctly:

# wbinfo -u | grep pinco
pinco.pallinò

- But if try to print something, cups tell me (in error_log)
E [01/Mar/2013:08:52:08 +0100] [Job 1660] Unknown user pinco.pallin__
E [01/Mar/2013:08:52:08 +0100] [Job 1660] Unknown user pinco.pallin__

Why??

I put DefaultLanguage it and DefaultCharset UTF-8 in
/etc/cups/cupsd.conf, but things don't change...

If I issue the "locale" command, I get:
LANG=it_IT.UTF-8
LANGUAGE=
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE="it_IT.UTF-8"
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

So locales seems to be correctly configured..

Where could the problem be??
Any help is approciated,

Thanks,
Nick
--
+---------------------+
| Linux User #554252 |
+---------------------+
Loading...