nsswitch: Don't enumerate all domains with wbinfo -u|-g.
authorAndreas Schneider <asn@samba.org>
Wed, 17 Jul 2013 14:13:22 +0000 (16:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2013 09:54:56 +0000 (11:54 +0200)
commit33bce26fcf2e82b9c381eeb32e1d731d3965e22f
treedbe48c4c5c67221f264806764efc41f643508036
parent7420574c74be1f5ea308c8ebfc572683d1e755d4
nsswitch: Don't enumerate all domains with wbinfo -u|-g.

By default wbinfo -u|-g should only enumerate the domain winbindd is
joined to. The command can be harmfull if you have e.g. 30 domains and
700k users. Then the parent will collect all information and the
oom-killer will kill winbind. As we still want to support it, you can
enable it the old behaviour with wbinfo --domain='*' -u. This is
a measure that sysadmins don't shoot themself.

https://bugzilla.samba.org/show_bug.cgi?id=10034

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Jul 18 11:54:58 CEST 2013 on sn-devel-104
docs-xml/manpages/wbinfo.1.xml
nsswitch/wbinfo.c