[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-----
Hash: SHA1

Guruswamy Namasivayam (gnamasiv) wrote:
> Hi,
>  
> 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. 
>  
> Thanks,
> Guru.
>  
> 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"
>  
>   oMaster.PrinterAdd(oPrinter)

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?






cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDMpKgIR7qMdg1EfYRAmf4AJ9hvYThW+pDtiM3ozo69Hh9qWppYwCfd/cE
nXESiP7F/etHd90wTWSQp8o=
=54IP
-----END PGP SIGNATURE-----


More information about the samba mailing list