Hi,
I'm having a strange problem with cupsaddsmb ... it fails whenever I
try to use it while using the rpcclient command ... the "addriver"
command just fails (like below). Does anyone know what is wrong with
the command cupsaddsmb is passing to rpcclient? Adding drivers
through the windows point and print works fine ... this is samba
2.2.8a, Windows PDC. As far as I can tell, what cupsaddsmb is passing
to rpcclient is valid, it just doesn't work (nor does it work manually
using the "adddriver" command).
Running command: smbclient //localhost/print\$ -N
-U'printadmin%<password>' -c '
mkdir W32X86;put /var/spool/cups/tmp/3fc28b076c9dc W32X86/n0216-8000-ps.ppd;put
/usr/share/cups/drivers/cupsdrvr.dll W32X86/cupsdrvr.dll;put /usr/share/cups/dri
vers/cupsui.dll W32X86/cupsui.dll;put /usr/share/cups/drivers/cups.hlp W32X86/cu
ps.hlp'
added interface ip=161.160.119.20 bcast=161.160.119.255 nmask=255.255.255.0
Domain=[NOLA] OS=[Unix] Server=[Samba 2.2.8a]
NT_STATUS_OBJECT_NAME_COLLISION making remote directory \W32X86
putting file /var/spool/cups/tmp/3fc28b076c9dc as \W32X86/n0216-8000-ps.ppd (538
03.0 kb/s) (average 53805.7 kb/s)
putting file /usr/share/cups/drivers/cupsdrvr.dll as \W32X86/cupsdrvr.dll (54370
.0 kb/s) (average 54209.5 kb/s)
putting file /usr/share/cups/drivers/cupsui.dll as \W32X86/cupsui.dll (52696.0 k
b/s) (average 53659.6 kb/s)
putting file /usr/share/cups/drivers/cups.hlp as \W32X86/cups.hlp (142340000.0 k
b/s) (average 54923.3 kb/s)
Running command: rpcclient localhost -N -U'printadmin%<password>'
-c 'adddriver
"Windows NT x86"
"n0216-8000-ps:cupsdrvr.dll:n0216-8000-ps.ppd:cupsui.dll:cups.h
lp:NULL:RAW:NULL"'
cmd = adddriver "Windows NT x86"
"n0216-8000-ps:cupsdrvr.dll:n0216-8000-ps.ppd:c
upsui.dll:cups.hlp:NULL:RAW:NULL"
result was NT_STATUS_UNSUCCESSFUL
Running command: rpcclient localhost -N -U'printadmin%<password>'
-c 'setdriver
n0216-8000-ps n0216-8000-ps'
cmd = setdriver n0216-8000-ps n0216-8000-ps
Succesfully set n0216-8000-ps to driver n0216-8000-ps.