[Samba] Cups printing works but status is always Access Denied

Gareth Blades list.samba at webscreen-technology.com
Tue Jun 10 11:52:49 GMT 2003


I have a RedHat 9 installation running XFS.
Cups 1.1.17-13 is installed

I have compiled and installed Samba 2.2.8a and everything appears to be
working apart from a minor printing problem.
After I have installed a printer on my Win2K workstation I can print via
samba to the cups printer using the windows PCL print driver and it works
fine.
However the printer status is always 'Access denied, unable to connect'.

I get the following entries in the log file for my machine :-

[2003/06/10 12:28:24, 0] printing/print_cups.c:cups_printername_ok(388)
  Unable to get printer status for
::{2227a280-3aea-1069-a2de-08002b30309d} - client-error-not-found
[2003/06/10 12:28:24, 0] smbd/service.c:make_connection(252)
  gb-desktop (192.168.1.250) couldn't find service
::{2227a280-3aea-1069-a2de-08002b30309d}

My samba configuration :-

[global]
workgroup = ASCOT
netbios name = DIBBLER
server string = SAMBA-LDAP PDC Server
encrypt passwords = Yes
passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u
passwd chat = *new*password* %n\n *new*password* %n\n *successfully*
unix password sync = Yes

log file = /var/log/samba/%m.log
log level = 5 ; remember to lower the log level in real life :-)
max log size = 0


socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

domain logons = Yes
os level = 80
preferred master = False
domain master = True
dns proxy = No
wins support = Yes

; SAMBA-LDAP declarations
ldap suffix = dc=ASCOT.WEBSCREEN-TECHNOLOGY,dc=COM
ldap admin dn = cn=Manager,dc=ASCOT.WEBSCREEN-TECHNOLOGY,dc=COM
ldap port = 389
ldap server = 127.0.0.1
ldap ssl = No

load printers = yes
printing = cups
printcap name = cups

; Deactivate opportunistic locks (wised)
; opLocks = False
; encoding to french
; character set = iso8859-1

; using smbldap-tools to add machines
add user script = /usr/local/sbin/smbldap-useradd.pl -w %u
; users and groups allowed to be 'Domain Admins'
domain admin group = " @"Domain Admins" "

[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No

[netlogon]
comment = Network Logon Service
path = /usr/local/samba/netlogon
guest ok = Yes

[profiles]
path = /data/profiles
writeable = yes
browseable = no
create mode = 0644
directory mode = 0755
guest ok = yes

[samba]
path=/data/samba
writable                = yes
force create mode       = 660
force directory mode    = 770
create mode             = 660
directory mode          = 770
mangle case             = yes
case sensitive          = no
default case            = lower
preserve case           = yes
short preserve case     = no
valid users             = @users
force group             = users

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


--
Gareth Blades
Webscreen Technology
Index House
St Georges Lane
Ascot, Berkshire
SL5 7EU, UK
Tel +44 (0) 1344 636339
http://www.webscreen-technology.com





More information about the samba mailing list