From: Christoph Litauer on
Dear samba admins,

I have a samba/cups related problem. I am running SuSE 10.1 with cups
1.1.23 and samba 3.0.22.

The problem is, that my windows printer status boxes don't reflect the
samba printer queues.

My test scenario:
- I use "printing = SYSV" because I need to use "print command", too.
- I installed a new printer named "test", called cupsaddsmb test.
- I stopped that printer and printed a document to it:

printhost:~ # lpstat -o test
test-5760 litauer 62464 Fri Nov 10 08:08:17
2006

- I connected via smbclient to that printer and called command 'queue':

[litauer(a)somehost:~] 504> smbclient //printhost/test
Password:
Domain=[UNIKO] OS=[Unix] Server=[Samba 3.0.22-13.18-SUSE-CODE10]
smb: \> queue
smb: \>

- Increasing the loglevel of my smb-process while calling 'queue' shows
the following excerpt:

[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1073)
print_cache_expired: cache expired for queue test (last_qscan_time =
1163142568, time now = 1163142790, qcachetime = 30)
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:push_sec_ctx(256)
push_sec_ctx(14255, 1050) : sec_ctx_stack_ndx = 1
[2006/11/10 08:13:10, 3] smbd/uid.c:push_conn_ctx(393)
push_conn_ctx(101) : conn_ctx_stack_ndx = 0
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:set_sec_ctx(288)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2006/11/10 08:13:10, 3] smbd/sec_ctx.c:pop_sec_ctx(386)
pop_sec_ctx (14255, 1050) - sec_ctx_stack_ndx = 0
[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1073)
print_cache_expired: cache expired for queue test (last_qscan_time =
1163142568, time now = 1163142790, qcachetime = 30)
[2006/11/10 08:13:10, 4] printing/printing.c:print_cache_expired(1089)
print_cache_expired: message already pending for test. Accepting cache
[2006/11/10 08:13:10, 4] smbd/lanman.c:api_WPrintJobEnumerate(3182)
WPrintJobEnumerate: errorcode 0

I would expect standard sysv lpstat command be called, but that never
happens, even if I wait for some time. No other client uses printer test.

- I tried the following with no results:
o Updated samba to 3.0.23c
o Used "printing = CUPS"
o Reinstalled samba and deleted everything in /var/lib/samba
o Deleted /var/lib/samba/printing/test.tdb just before calling 'queue'
o Googled around now for 10 days .... (sigh)


Attached is my smb.conf. I would greatly appreciate any help. Thanks in
advance! Please eMail a copy to me, thank you very much!

--
Regards
Christoph
________________________________________________________________________
Christoph Litauer litauer(a)uni-koblenz.de
Uni Koblenz, Computing Center, http://www.uni-koblenz.de/~litauer
Postfach 201602, 56016 Koblenz Fon: +49 261 287-1311, Fax: -100 1311
PGP-Fingerprint: F39C E314 2650 650D 8092 9514 3A56 FBD8 79E3 27B2