Printer dialogue box slow to pop up

Melissa Meyer melissa at ginormus.com
Fri Jul 8 23:21:17 GMT 2005


Hi, we're in the process of rolling out Samba on Suse Enterprise Server v
9 in an environment of Windows 98, 2000, and XP computers (samba v
3.0.14a).  The samba server is replacing a Windows 2000 domain controller.
 The computers switched over to using the samba server as the domain
controller are not experiencing any issues logging onto the domain,
initializing their logon batch script, or changing their passwords.  We
were able to add functioning printer queues using samba and cups.  The
computers are able to download the printer drivers and print successfully.
 The issue right now is that there is a good minute delay when opening the
printer dialogue box and when the dialogue box pops up on the computer
(one of the samba printers is set up as the default printer on each
computer).  This problem is consistent for all versions of Windows.  We
are having trouble pinpointing what could be the cause of this.  Does
anyone have any idea what to look for here?  Also, could you please CC us
(melissa at ginormus.com and leigh.riley at crownwms.com) in the reply as we are
not members of the list?

----------------------------------------------

Here is the current smb.conf:

# Global parameters
[global]
        smb ports = 139
        workgroup = CRN_LINUX
        server string = Samba SUSE
        min password length = 4
        map to guest = Bad User
        use sendfile = no
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password: %n\n *Re-enter*new*password: %n\n
*changed*
        unix password sync = Yes
        log level = 5
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=8192
SO_SNDBUF=8192
        log file = /var/log/samba/%m
        debug pid = Yes
        debug uid = Yes
        printcap cache time = 750
        printcap name = cups
        add user script = /usr/sbin/useradd -s /bin/false -g users %u
        delete user script = /usr/sbin/userdel -r %u
        add group script = /usr/sbin/groupadd %g
        delete group script = /usr/sbin/groupdel %g
        add user to group script = /usr/sbin/usermod -G %g %u
        add machine script = /usr/sbin/useradd -s /bin/false -g machines %u
        logon script = logon.bat
        logon path =
        logon home =
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        ldap ssl = no
        invalid users = bin, daemon
        admin users = root, @ntadmin, lriley, @print
        printer admin = root, administrator, @print
        create mask = 0664
        force create mode = 0664
        directory mask = 0775
        force directory mode = 0775

[printers]
        comment = All Printers
        path = /var/spool/samba
        printer admin = @print
        guest ok = Yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /var/lib/samba/drivers
        admin users = root, @print
        write list = root, @users, @print
        ##force group = users
        guest ok = Yes

[apps]
        comment = Applications
        path = /Apps/
        read only = No

[public]
        comment = Public Drive
        path = /Public/
        force group = users
        read only = No

[userdata]
        comment = Userdata
        path = /Userdata/
        read only = No

[netlogon]
        comment = Logon Scripts
        path = /netlogon
        browseable = No


------------------------------------------------------

Here is the /etc/printcap file:

AccntingCanon|CANON im.Runner 330s gimp-print:rm=LnxPrint:rp=AccntingCanon:
BigLabel|HP DesignJet 430:rm=LnxPrint:rp=BigLabel:
ClaimsDispatch|CANON im.Runner 330s gimp-print:rm=LnxPrint:rp=ClaimsDispatch:
Dispatch|CANON imageRunner 330s ljet4:rm=LnxPrint:rp=Dispatch:
HPAccounting|HP LaserJet 4050 ljet4 Accounting:rm=LnxPrint:rp=HPAccounting:
SalesColor|CANON imageRunner 330s hpijs:rm=LnxPrint:rp=SalesColor:
ServiceBack|ServiceBack:rm=LnxPrint:rp=ServiceBack:

and in the cupsd.conf, the Servername is set to LnxPrint which is an entry
in the /etc/hosts file I added for 127.0.0.1

/var/spool/samba currently has 777 permissions

every user who accesses the printers is a member of the print group

------------------------------------------------------------------

using rpcclient, the command enumdrivers gives the message:

0024 status: WERR_OK

the command enumprinters lists the contents of the printcap file but
before it lists the contents, it gives the error:

0024 status: WERR_INSUFFICIENT_BUFFER

-------------------------------------------------------------------

Looking at the level 5 log output of the computer mamba (winxp) accessing
the printer AccntingCannon, we see the errors:

15594 status: WERR_UNKNOWN_LEVEL

Namely:

[2005/07/08 16:00:56, 4, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_spoolss_nt.c:_spoolss_getprin
terdriver2(5605)
  _spoolss_getprinterdriver2
[2005/07/08 16:00:56, 4, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_lsa_hnd.c:find_policy_by_hnd_
internal(162)
  Found policy hnd[0] [000] 00 00 00 00 8D 02 00 00  00 00 00 00 A8 05 CF
42  ........ .......B
  [010] 3B 6C 00 00                                       ;l..
[2005/07/08 16:00:56, 4, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_lsa_hnd.c:find_policy_by_hnd_
internal(162)
  Found policy hnd[0] [000] 00 00 00 00 8D 02 00 00  00 00 00 00 A8 05 CF
42  ........ .......B
  [010] 3B 6C 00 00                                       ;l..
[2005/07/08 16:00:56, 4, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_spoolss_nt.c:get_printer_snum
(452)
  short name:AccntingCanon
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_debug(82)
  000000 spoolss_io_r_getprinterdriver2
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_uint32(642)
          0000 ptr: 00df1008
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_uint32(642)
          0004 size: 00015580
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_uint32(642)
      15588 needed: 00000000
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_uint32(642)
      1558c servermajorversion: 00000000
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_uint32(642)
      15590 serverminorversion: 00000000
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_parse/parse_prs.c:prs_werror(702)
      15594 status: WERR_UNKNOWN_LEVEL
[2005/07/08 16:00:56, 5, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_pipe.c:api_rpcTNP(1578)
  api_rpcTNP: called spoolss successfully
[2005/07/08 16:00:56, 3, pid=27707, effective(0, 1000), real(0, 0)]
rpc_server/srv_pipe_hnd.c:free_pipe_context(
542)
  free_pipe_context: destroying talloc pool of size 82







More information about the samba-technical mailing list