Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"requesting-user-name" and "$3 in argv" don't match in Samba/ADS/winbindd environment #460

Closed
michaelrsweet opened this issue Dec 4, 2003 · 3 comments

Comments

@michaelrsweet
Copy link
Collaborator

commented Dec 4, 2003

Version: 1.1.17
CUPS.org User: pipitas

  • Linux version "Red Hat Enterprise Linux Advanced Server release 3 (Taroon)" saying it uses CUPS-1.1.17 (but I discovered that they have quite a few backported patches in it), with Samba-3.0.0-14.3E (all Red Hat original RPMs).
  • Samba participating in an Win 2000 Active Directory Domain as a member server, using MIT Kerberos 1.3.1, and winbindd.
  • The problem is: Windows clients can't delete their own jobs.
  • I suspect the following part of the lobfile is providing a pointer:

D [01/Dec/2003:08:05:26 +0100] check_quotas:
requesting-user-name = 'MBTECH-GROUP.MILLENUX.COM_schmidt'
D [01/Dec/2003:08:05:26 +0100] print_job:
requesting-user-name = 'MBTECH-GROUP.MILLENUX.COM_schmidt'
I [01/Dec/2003:08:05:26 +0100] Job 1716
queued on 'p5922265' by 'MBTECH-GROUP.MILLENUX.COM'.
D [01/Dec/2003:08:05:26 +0100] Job 1716 hold_until = 0
D [01/Dec/2003:08:05:26 +0100] StartJob(1716, 0x8164cb8)
D [01/Dec/2003:08:05:26 +0100] StartJob() id = 1716, file = 0/1
D [01/Dec/2003:08:05:26 +0100] job-sheets=none,none
D [01/Dec/2003:08:05:26 +0100] banner_page = 0
D [01/Dec/2003:08:05:26 +0100] StartJob:
argv = p5922265","1716","MBTECH-GROUP.MILLENUX.COM",
"https://my.deutschebank.de/prot/banking/ueberweisung_3.jsp?m",\
"1","","/var/spool/cups/d01716-001"
D [01/Dec/2003:08:05:26 +0100] StartJob:
envp = "PATH=/usr/lib/cups/filter:/bin:/usr/bin","SOFTWARE=CUPS/1.1",
"USER=root","CHARSET=iso-8859-1","LANG=en_US","",
"PPD=/etc/cups/ppd/p5922265.ppd","CUPS_SERVERROOT=/etc/cups",
"RIP_MAX_CACHE=16m","TMPDIR=/var/spool/cups/tmp",
"CONTENT_TYPE=application/postscript","DEVICE_URI=lpd://11.12.13.14/PORT1",
"PRINTER=p5922265","CUPS_DATADIR=/usr/share/cups",
"CUPS_FONTPATH=/usr/share/cups/fonts","","",""

Note that...
... first "requesting-user-name" is logged by CUPS as
'MBTECH-GROUP.MILLENUX.COM_schmidt',
... while the 2nd argv (which should also be the user, no?)
is logged by CUPS as 'MBTECH-GROUP.MILLENUX.COM_schmidt' only.

In reality, the Windows users use a syntax of 'DOMAIN\username' to
authenticate, that is 'MBTECH-GROUP.MILLENUX.COM_schmidt\schmidt' in
our case.

In smb.conf the winbind separator is defined to be "" (i.e.
"windbind separator = "). Authentication against the ADS domain
works for users as expected.

It is CUPS 1.1.17 (and maybe later versions also) which seem to do
some name mangling concerning the "" character, resulting in one
case in conversion to an underscore, and in the other in a stripping
of a part of the name....

Is there a remedy in sight? Should I also ask the Samba folks for help?

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 4, 2003

CUPS.org User: pipitas

Sorry -- I have a typo in the Trouble Report above....

It should read:

##################################################################

Note that...

... first "requesting-user-name" is logged by CUPS as

'MBTECH-GROUP.MILLENUX.COM_schmidt',

... while the 2nd argv (which should also be the user, no?)

is logged by CUPS as 'MBTECH-GROUP.MILLENUX.COM' only.

##################################################################

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 5, 2003

CUPS.org User: pipitas

sigh.... still another typo! So here is another go:

--> the authenticated user is "DOMAIN\username": that is
'MBTECH-GROUP.MILLENUX.COM\schmidt' in our case.

--> error_log has a "requesting-user-name" mangled to
'MBTECH-GROUP.MILLENUX.COM_schmidt' in one case,

--> and error_log logs the environment variable for the filters
as 'MBTECH-GROUP.MILLENUX.COM' only int the other case (i.e.
it just notes the DOMAIN part and strips the username.

@michaelrsweet

This comment has been minimized.

Copy link
Collaborator Author

commented Dec 6, 2003

CUPS.org User: mike

OK, please report this to the SAMBA folks; the domain part of the username shouldn't be passed in with the job...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.