I'm trying to share a CUPS printer using samba (and with point and
print working),
but rpcclient setdriver keeps giving me the error "WERR_ACCESS_DENIED".

I already used adddriver in rpcclient successfully:
adddriver "Windows NT x86"
"xphaserscript5.dll:xrx4500n.ppds5ui.dllscript.hlp:NULL:RAWscript.ntf,xrx4500n.opt,pscout.dll,pscout.exe,
ps4500ui.dll,xntutilu.dll,xrx4500.cab,xpandcab.dll ,xrxutilu.dll,x4500l.dll,x4500p.dll,x4500ps.dll,x4 500ps.ini,
x4500ui.dll,xps4ren.dll,xrx4500.cfg,xrx4500.chm,xr x4500.dat,xrxsnmpu.dll,xrxui.dll,xrxupdt.dll"
Printer Driver xphaser successfully installed.

Here are all my system details:
Samba version: 3.0.23c
# smb.conf
[global]
security = share
load printers = yes
printing = cups
printcap = cups
max log size = 20000
log level = 3
printer admin = Administrator,root
disable spoolss = No
[public]
path=/var/www/html
read only=no
guest ok=yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
show add printer wizard = Yes
public = yes
guest ok = yes
writable = no
printable = yes
#printer admin = root
create mode = 0777
[print$]
comment = Printer Driver Download Area
path = /etc/samba/drivers
browseable = no
guest ok = yes
read only = no
#write list = Administrator, root
create mask = 0664
directory mask = 0775

# smbclient -U 'root' -L tc34
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.23c]

Sharename Type Comment
--------- ---- -------
IPC$ IPC IPC Service (Samba 3.0.23c)
public Disk
photon Printer xerox-ps
phat Printer phat printer

Server Comment
--------- -------
TC34-TEST Samba 3.0.23c


# rpcclient -U'root' 10.10.10.34
Password:
Connecting to host=10.10.10.34
Connecting to 10.10.10.34 at port 445
rpc_pipe_bind: Remote machine 10.10.10.34 pipe \lsarpc fnum 0x75c1 bind
request returned ok.
lsa_io_sec_qos: length c does not match size 8
rpcclient $> enumprinters
rpc_pipe_bind: Remote machine 10.10.10.34 pipe \spoolss fnum 0x75c2
bind request returned ok.
flags:[0x800000]
name:[\\tc34-test\photon]
description:[\\tc34-test\photon,,xerox-ps]
comment:[xerox-ps]

flags:[0x800000]
name:[\\tc34-test\phat]
description:[\\tc34-test\phat,,phat printer]
comment:[phat printer]

rpcclient $> enumdrivers
rpc_pipe_bind: Remote machine 10.10.10.34 pipe \spoolss fnum 0x75c3
bind request returned ok.

[Windows NT x86]
Printer Driver Info 1:
Driver Name: [xphaser]

Printer Driver Info 1:
Driver Name: [photon]

rpcclient $> setdriver phat xphaser
rpc_pipe_bind: Remote machine 10.10.10.34 pipe \spoolss fnum 0x75c4
bind request returned ok.
result was WERR_ACCESS_DENIED

FYI: My cups printer works fine from my server using lpr etc..
The printer is a "xerox phaser 4500n", cups uses
"socket://10.10.10.92:9100"
to print to it, but all that shouldn't matter.

Any help/clues would be appreciated,
Thanks Dano.