[Samba] rpcclient addprinter error
Rui Barata
rui.barata at iestradas.pt
Wed Mar 3 19:14:40 GMT 2004
Hi
I am trying to use rpcclient's addprinter to install a printer automatically in
a large number of XP workstations (+100)
But I get the following:
1) connecting to a XP workstation works fine
rpcclient -U root sim31%xxxx
rpcclient $>
2) adddriver also works fine. Enumdrivers shows this:
rpcclient $> enumdrivers
[Windows NT x86]
Printer Driver Info 1:
Driver Name: [Generic / Text Only]
Printer Driver Info 1:
Driver Name: [Apple LaserWriter 12/640 PS]
Printer Driver Info 1:
Driver Name: [HP LaserJet 1220 Series PCL]
Printer Driver Info 1:
Driver Name: [Win2PDF]
[Windows NT x86]
Printer Driver Info 1:
Driver Name: [Generic / Text Only]
Printer Driver Info 1:
Driver Name: [Apple LaserWriter 12/640 PS]
Printer Driver Info 1:
Driver Name: [HP LaserJet 1220 Series PCL]
Printer Driver Info 1:
Driver Name: [Win2PDF]
result was WERR_INVALID_ENVIRONMENT
3) enumports also works:
rpcclient $> enumports
Port Name: [PDFFILE:]
Port Name: [COM1:]
Port Name: [COM2:]
Port Name: [COM3:]
Port Name: [COM4:]
Port Name: [FILE:]
Port Name: [LPT1:]
Port Name: [LPT2:]
Port Name: [LPT3:]
Port Name: [IR]
Port Name: [http://ieplpr1:631/printers/lpsi4]
Port Name: [http://ieplpr1:631/printers/prtsrv]
rpcclient $>
4) but addprinter fails, whatever parameters I use, always with the same
message:
rpcclient $> addprinter test test Win2PDF LPT1:
result was DOS code 0x0000001f
rpcclient $>
Please help
TIA
Rui Barata
IEP
----------------------------------------------------------------
I'm running rpcclient from a Linux RedHat 9.3 with Samba 3.0.0.
This and the XP workstation are members of a Samba domain
The smb.conf of the PDC is as follows:
----------------------------------------------------------------
# Global parameters
[global]
workgroup = IESTRADAS.PT
server string = Servidor de seguranca
encrypt passwords = Yes
log file = /var/log/samba/log.%m
log level = 0
max log size = 50
name resolve order = wins lmhosts host bcast
time server = Yes
load printers = No
logon script = entry\logon_%U.bat
logon home = \\%N\profiles
logon path = \\%N\profiles
logon drive = H
domain logons = Yes
preferred master = Yes
domain master = Yes
wins support = Yes
nis homedir = yes
homedir map = auto.home
passwd program = /var/IEP/admtools/ntdomain/bin/chgpass.sh %u
unix password sync = yes
kernel oplocks = no
os level = 65
guest account = nobody
enhanced browsing = no
server schannel = no
unix charset = iso8859-15
add machine script = /var/IEP/admtools/ntdomain/bin/addmachine.sh %m
[netlogon]
path = /etc/netlogon
browseable = No
More information about the samba
mailing list