The Samba-Bugzilla – Bug 688
Wrong session username %U when printing from Windows Terminal Server
Last modified: 2005-11-14 09:29:51 UTC
Windows user 'a17200' which maps to UNIX user 'scheuer' prints to a Samba
printer from a Windows 2000 Terminal Server. User 'a15792', who recently logged
into the same terminal server is also printing to the same queue. Samba calls a
print script with both %U and %u on the commandline. The username translation
Windows -> Unix is ok, but the session username is wrong (=that of the user
last logged into the terminal server instead of the user who prints):
print command = /tools/tas/bin/pdfprint "%s" "%u" "%M" "%U"
Running the Command /tools/tas/bin/pdfprint
"smbprn.000290.GJaapY" "scheuer" "attwts02" "a15792' gave 0
(instead of "smbprn.000290.GJaapY" "scheuer" "attwts02" "a17200')
Sorry, but the 2.2 is not under development any longer.
If you can reproduce this bug against the latest 3.0 release,
please reopen this bug and change the version in the report.