LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2008, 06:01 AM   #1
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
XP print to Linux SAMBA issue - cupsdAuthorize: No authentication data provided.


Hi,

I have two PCs, PC1 (Linux, printer attached) and PC2 (XP / Linux) successfully configured with CUPS so that PC1 (Linux) prints, and PC2 (Linux) prints on PC1's printer.

I now want PC2 (XP) to print on PC1.

SAMBA/CUPS is configured on PC1, as follows, and PC2 (XP) can see the printer:

smb.conf:
Code:
[global]
workgroup = Mshome
server string = Desktop
log file = /var/log/samba.%m
max log size = 50
security = share
restrict anonymous = no
domain master = no
preferred master = no
max protocol = NT
acl compatibility = winnt
ldap ssl = No
server signing = Auto
map to guest = Bad User
guest ok = yes

[Data]
hide files = $AVG8.VAULT$/5914bf7fe31e8d4044a3239d15937bea/634b5925862386df3ac547db/8de8aa1206ab2c9$
read only = no
path = /Data/
guest ok = yes

[Alex]
path = /home/Alex/
guest ok = yes
read only = no

[Mishelle]
path = /home/Mishelle/
guest ok = yes
read only = no

[Steven]
path = /home/Steven/
guest ok = yes
read only = no

[printers]
comment = All Printers
browseable = no
printable = yes
guest account = guest
guest ok = yes
public = yes
path = /var/spool/samba
printer admin = root

[HPDeskjet3550_Linux]
printable = yes
printer name = HPDeskjet3550
guest account = yes
guest ok = yes
public = yes
path = /var/spool/samba
printer admin = root
use client driver = yes
comment = HPDeskjet3550 attached to Desktop (Linux)
cupsd.conf:
Code:
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow all
  Allow From All
</Location>
<Location /admin>
  Encryption Required
  # Allow remote administration...
  Order allow,deny
  Allow all
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow all
</Location>
<Policy default>
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
#    Require user @OWNER @SYSTEM
    Allow All
    Allow From All
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
When I send a txt file containing just the characters "test" from PC2 (XP) to PC1, nothing happens. PC1's CUPS access log shows nothing, and the error log shows:

Code:
D [31/Aug/2008:11:51:06 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:06 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:06 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:06 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:06 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:06 +0100] Get-Jobs client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:06 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:06 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:27 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:27 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:27 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:27 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:27 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:27 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:27 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:27 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:27 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:27 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:27 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:27 +0100] cupsdAcceptClient: 7 from localhost (Domain)
D [31/Aug/2008:11:51:27 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:27 +0100] cupsdReadClient: 7 POST / HTTP/1.1
D [31/Aug/2008:11:51:27 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:27 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:27 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] cupsdProcessIPPRequest: 7 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:27 +0100] cupsdCloseClient: 7
D [31/Aug/2008:11:51:27 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:27 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:27 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:27 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:27 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:27 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:27 +0100] cupsdAcceptClient: 7 from localhost (Domain)
...this goes on and on and on and on and on, and ends with...

Code:
D [31/Aug/2008:11:51:31 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:31 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:31 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:31 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:31 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:31 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:31 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:31 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:31 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:31 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:31 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:31 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:31 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:31 +0100] cupsdReadClient: 6 POST / HTTP/1.1
D [31/Aug/2008:11:51:31 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:31 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:31 +0100] Get-Printer-Attributes client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:31 +0100] cupsdCloseClient: 6
D [31/Aug/2008:11:51:31 +0100] cupsdAcceptClient: 6 from localhost (Domain)
D [31/Aug/2008:11:51:31 +0100] cupsdReadClient: 6 POST /printers/HPDeskjet3550 HTTP/1.1
D [31/Aug/2008:11:51:31 +0100] cupsdAuthorize: No authentication data provided.
E [31/Aug/2008:11:51:31 +0100] Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] Discarding unused server-audit event...
D [31/Aug/2008:11:51:31 +0100] Print-Job client-error-bad-request: Unsupported character set "iso-8859-1"!
D [31/Aug/2008:11:51:31 +0100] cupsdProcessIPPRequest: 6 status_code=400 (client-error-bad-request)
D [31/Aug/2008:11:51:31 +0100] cupsdCloseClient: 6
I'm stumped (and brain dead after reading SAMBA posts for the last 2 hrs solid)!

Any help, much appreciated.
 
Old 09-20-2008, 12:23 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
Hey have you had any luck with this? I'm having the same sort of problem (trying to use IPP thought). Whenever I try to print to a shared printed, cups isn't receiving any credentials. I get username="".

This goes for both remote (windows computers) and my local computer. I have AuthType Basic specified.

If I set AuthType None - all problems are fixed.
 
Old 10-04-2008, 11:02 AM   #3
Ken-ji
LQ Newbie
 
Registered: Apr 2003
Location: Philippines
Distribution: Slackware
Posts: 19

Rep: Reputation: 0
If you haven't fixed this yet.
Try doing this in a terminal (your scripts maybe in init.d)
Code:
env LANG=en_US.UTF8 /etc/rc.d/rc.samba restart
env LANG=en_US.UTF8 /etc/rc.d/rc.cups restart
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Webdav authentication running Apache 2.2.6 on Redhat Enterprise Linux 4 psailaja Other *NIX 0 08-04-2008 06:18 PM
cupsdauthorize: no authentication data provided; debian, gnome, epson stylus d120 WorkingClassHero Linux - Hardware 2 03-16-2008 09:59 PM
Samba 3.0.22 upgrade authentication issue HighLife Linux - Networking 0 04-18-2006 01:46 AM
Authentication Issue on Gentoo Linux EmtYskY Linux - Distributions 1 04-26-2005 07:59 AM
Samba - Window/Linux RH authentication tornadoburn Linux - Networking 3 11-25-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration