Samba VERY SLOW RPC (Spoolss, GetStatusPrinter). Samba Bug?

Grey Karapetyan grey.karapetyan at
Fri Apr 3 16:38:34 GMT 2009

Hi Guys,
Very need help.

I have a printserver (Samba + Cups with passdb backend =
ldapsam:ldap://x.x.x.x  (another server - Fedora Directory Server))
when windows client try open shared folders\files - works FAST(2 seconds).
dosen't mater how many entires in ou=Users in Ldap server.
when same windows client try print (from Windows notepad or another
application) - getting status printer very-very-very slow(40-50 seconds)

When in ldap number entries less - performance grow (when 10 users -
printerstatus shows 2 seconds)
(when 2000 users - printerstatus shows 5-8 seconds)

WHY this may occrus? I think this Samba RPC trouble...
Help please.


        log file = /var/log/samba/samba.log.%m
        log level = 3
        domain logons = no
        domain master = no
        local master = no
        preferred master = no
        wins support = no
        dns proxy = no
        os level = 0
#       server setup ---
        netbios name = testsrv
        workgroup = TEST
        security = user
        passdb backend = ldapsam:ldap://x.x.x.x
        ldap admin dn = cn=Directory Manager
        ldap group suffix = ou=NTGroups
        ldap idmap suffix = ou=Idmap
        ldap suffix = dc=test
        ldap user suffix = ou=Users
#       print setup ---
        load printers = yes
        printing = cups
        printcap = cups
        use client driver = yes
        comment = All Printers
        path = /var/spool/samba
        readonly = no
        browseable = no
        guest ok = yes
        writable = no
        printable = yes
        comment = Printer Driver Download Area
        path = /etc/samba/drivers
        browseable = yes
        guest ok = yes
        read only = yes


uri ldap://x.x.x.x
base    dc=test

binddn cn=Directory Manager
bindpw xxxx

#pam_password    exop
#pam_filter      objectclass=sambaSamAccount

nss_base_passwd ou=Users,dc=test
nss_base_shadow ou=Users,dc=test
nss_base_group ou=NTGroups,dc=test
ssl no


passwd:     files ldap
shadow:     files ldap
group:      files ldap

hosts:      files dns wins
networks:   files dns

ethers:     files
netmasks:   files
networks:   files
protocols:  files
rpc:        files
services:   files
netgroup:   files
publickey:  files

bootparams: files
automount:  files
aliases:    files

obey pam restrictions = no
SElinux = disabled

More information about the samba-technical mailing list