Username mapping (and samba)
kurt.pfeifle at infotec.com
Thu Jun 7 09:46:46 PDT 2007
> i have the problem, that some machines write the username like FOO or
> Foo instead of foo. So my pdf printer can't put the file in Users home/foo .
> I tried via IPP from XP, but windows sends Foo. On W98, windows sends
> the username FOO (via samba).
If you use IPP to send jobs from Windows to CUPS, there is no need for Samba (at least not because of printing). There are (as add-ons) IPP clients for Win98 too.
> Is there a way, to map the username to lowercace?
Samba has *lots* of options to deal with that. See "man smb.conf" and read the explanations about "username level", "username map" and "username map script"...
However, I would advice you to use another trick: create symlinks for the different home directories which match the different spellings. That way Windows can send what it wants and the jobs will always land in the correct directory:
ln -s foo FOO
ln -s foo Foo
System & Network Printing Consultant --- Linux/Unix/Windows/Samba/CUPS
Infotec Deutschland GmbH - A RICOH Company ......... Stuttgart/Germany
More information about the cups