[Samba] smbclient queue command issue
Jeremy Allison
jra at samba.org
Tue Jun 22 14:29:12 MDT 2010
On Tue, Jun 22, 2010 at 02:57:52PM -0400, Eric Rowell wrote:
> Help or suggestions please:
>
> When using smbclient to handle printing from a AIX system to a windows
> print queue somethings work and others do not. I have been able to
> print without issues to the windows print queue. But I cannot get a
> listing of the print jobs in a print queue. This is important so the
> UNIX users can take action on thier print jobs.
>
> I'm not sure which why to turn at this point as it appears to be an
> error but it is too generic to easly solve. I'm going to be working
> with my windows addmistrators but I need a direction to go.
>
> The following is the configuration, commands, and debug for this problem.
>
> Running Samba 3.5.3 on AIX - pware64
> Domain controller is Windows 2003
> Printer Server is Windows 2003
>
>
> The AIX server had joined the domain successfully using "net ads join
> -U someadministrator at DOMAIN.COM
> The "net printer info PRINTER_GP42K2 -S PRINTQUEUESRV" will provide
> details about the print queue.
> I have given the test user account full access to windows print queue.
> This hasn't changed the issue.
>
> This has been tried using the Kerberos ticket as well as password
> challenge. Neither work for the queue command (both can print).
>
> Windows Client Command works using same account:
> ####################
> C:\>net print \\CORPPRINTSRV\ITD_HP4250
> Printers at \\CORPPRINTSRV
> Name Job # Size Status
> -------------------------------------------------------------------------------
> ITD_HP4250 Queue 3 jobs *Printer error*
> testacct 404 85200 Error
> testacct 601 37340 Waiting
> ERowell 1735 9905 Waiting
> The command completed successfully.
> ####################
>
> The following is the commands and a debug 10.
>
> cmd>export PATH=/opt/pware64/bin:/opt/pware64/sbin:/usr/bin:/bin:/etc:/usr/bin:/usr/etc:/usr/lib:/usr/local/bin:.:/usr/local/bin:/usr/vac/bin://bin:/usr/bin/X11:/sbin:/usr/informix/bin://bin:.
>
> cmd>kinit
> Password for erowell at DOMAIN.COM:
>
> cmd>klist
> Ticket cache: FILE:/tmp/krb5cc_35102
> Default principal: erowell at DOMAIN.COM
>
> Valid starting Expires Service principal
> 06/22/10 14:18:55 06/23/10 00:18:59 krbtgt/DOMAIN.COM at DOMAIN.COM
> renew until 06/23/10 00:18:55
>
> unset LIBPATH
>
> ####################
> # Without Debug
> ####################
> cmd>/opt/pware64/bin/smbclient "\\\\PRINTQUEUESRV\\PRINTER_GP42K2" -k
> OS=[Windows Server 2003 R2 3790 Service Pack 2] Server=[Windows Server
> 2003 R2 5.2]
> smb: \> queue
> smb: \> exit
Hmmm. Looks like the Windows server isn't replying to the
old RAP method of enumerating a print queue. Try using rpcclient
instead, with the "enumjobs <printer>" command. That uses the
more modern DCE-RPC interface into the printer subsystem.
Jeremy.
More information about the samba
mailing list