[Samba] Problem adding printer using MSRPC
Gerald (Jerry) Carter
jerry at samba.org
Thu Sep 22 11:16:48 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Guruswamy Namasivayam (gnamasiv) wrote:
> When I try to add a printer using APW, the printer gets added
> successfully. However, when I try to add a printer using the MS_RPC
> addprinter command, the script fails with access denied. Please let me
> know if I am doing anything wrong.
> The addprinter vbscript
> dim oMaster, oPrinter
> set oMaster = CreateObject("PrintMaster.PrintMaster.1")
> set oPrinter = CreateObject("Printer.Printer.1")
> oPrinter.ServerName = "\\abc.xyz.com"
> oPrinter.PrinterName = "Apple"
> oPrinter.DriverName = "Apple LaserWriter 8500"
> oPrinter.PortName = "Samba printer port"
> oPrinter.shareName = "Apple"
> oPrinter.Location = "odi-lab"
You're probably going to have to look at a level 10 smbd debug
log to see what is failing. What error code is being returned?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba