[Samba] cupsaddsmb - tree connect failed: NT_STATUS_BAD_NETWORK_NAME
Ryan Suarez
ryan.suarez at sheridanc.on.ca
Wed Mar 24 13:53:47 GMT 2004
Greetings Admin,
I'm trying to setup samba 2.2.8a, with domain authentication, to
interface with CUPS 1.1.20 on debian linux.
I'm having problems running the cupsaddsmb command to copy the CUPS
drivers to the samba [print$] share. I am getting a "tree connect
failed: NT_STATUS_BAD_NETWORK_NAME" error.
Could someone please let me know how to fix this?
much appreciated,
Ryan
HERE IS THE ERROR
cups:/usr/local/samba/bin# cupsaddsmb -v -H printserv -U SOMEUID -a
Password for itadmin required to access cups via SAMBA:
Running command: smbclient //cups/print\$ -N -U'SOMEUID%SOMEPASSWORD'
-c 'mkdir W32X8
6;put /var/spool/cups/tmp/4060b6407542b W32X86/oa-c152-e1.ppd;put
/usr/share/cup
s/drivers/cupsdrv5.dll W32X86/cupsdrv5.dll;put
/usr/share/cups/drivers/cupsui5.d
ll W32X86/cupsui5.dll;put /usr/share/cups/drivers/cups5.hlp
W32X86/cups5.hlp'
added interface ip=142.55.100.54 bcast=142.55.100.255
nmask=255.255.255.0
Got a positive name query response from 142.55.100.62 ( 142.55.100.54)
Domain=[SHERNET] OS=[Unix] Server=[Samba 2.2.8a]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
HERE IS MY SMB.CONF
[global]
workgroup = SHERNET
netbios name = printserv
log file = /usr/local/samba/logs/%m.log
max log size = 50000
debug level = 1
name resolve order = wins host bcast
wins server = win2k.sheridanc.ca
wins proxy = no
wins support = no
dns proxy = yes
local master = no
preferred master = no
domain master = no
os level = 0
security = domain
encrypt passwords = true
password server = *
interfaces = 142.55.100.54/24
allow hosts = 142.55. localhost
hosts deny = 142.55.27.201
printing = cups
printcap = cups
load printers = yes
socket options = TCP_NODELAY
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
public = yes
writeable = no
printable = yes
printer admin = pc
create mode = 0700
[print$]
comment = Printer Drivers
path = /usr/local/samba/drivers
browseable = yes
guest ok = no
read only = yes
write list = root
More information about the samba
mailing list