Winbind group lookup painfully slow
Posted
by
Marty
on Super User
See other posts from Super User
or by Marty
Published on 2013-12-04T15:03:06Z
Indexed on
2014/06/04
15:32 UTC
Read the original article
Hit count: 693
I am running winbind on an RHEL 6 system. Everything works fine except group lookups, so many commands (including sudo
) are painfully slow. I did an strace
which shows that winbind looks up every group and every user within each group for the current user. Some of these groups have 20000+ users so a simple sudo
can take 60 seconds to complete.
I really only care about speeding up the sudo command. Ideal solutions would make it so either:
- groups with more than X number of users will not be looked up, or
- sudo bypasses group lookups altogether.
Here is my current "smb.conf" for winbind:
workgroup = EXAMPLE
password server = AD1.EXAMPLE.ORG
realm = EXAMPLE.ORG
security = ads
idmap uid = 10000-19999
idmap gid = 10000-19999
idmap config EXAMPLE:backend = rid
idmap config EXAMPLE:range = 10000000-19999999
winbind enum users = no
winbind enum groups = no
winbind separator = +
template homedir = /home/%U
template shell = /bin/bash
winbind use default domain = yes
winbind offline logon = false
© Super User or respective owner