Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/pynslcd/cfg.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2015-04-17 20:45:51 +0200
committerArthur de Jong <arthur@arthurdejong.org>2015-04-20 21:04:12 +0200
commit96045d249eda023a0bc7b810553a5b529d2c991a (patch)
treee754b97070e2e33f36329067ebc1dc9d098ffa7b /pynslcd/cfg.py
parent530cc24c83dd5d2d347acb40d64c3ae06a43a293 (diff)
Implement nss_getgrent_skipmembers
This option allows skipping group member list retrieval to improve performance with very large groups. This option results in inconsistent group membership information being presented that may confuse some applications.
Diffstat (limited to 'pynslcd/cfg.py')
-rw-r--r--pynslcd/cfg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pynslcd/cfg.py b/pynslcd/cfg.py
index 90acbeb..f9025fb 100644
--- a/pynslcd/cfg.py
+++ b/pynslcd/cfg.py
@@ -1,7 +1,7 @@
# cfg.py - module for accessing configuration information
#
-# Copyright (C) 2010, 2011, 2012, 2013 Arthur de Jong
+# Copyright (C) 2010-2015 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -82,6 +82,7 @@ pagesize = 0 # FIXME: add support
nss_initgroups_ignoreusers = set()
nss_min_uid = 0
nss_nested_groups = False
+nss_getgrent_skipmembers = False
validnames = re.compile(r'^[a-z0-9._@$][a-z0-9._@$ \\~-]{0,98}[a-z0-9._@$~-]$', re.IGNORECASE)
pam_authz_searches = []
pam_password_prohibit_message = None
@@ -175,7 +176,7 @@ def read(filename):
globals()[m.group('keyword').lower()] = int(m.group('value'))
continue
# parse options with a single boolean argument
- m = re.match('(?P<keyword>referrals|nss_nested_groups)\s+(?P<value>%s)' %
+ m = re.match('(?P<keyword>referrals|nss_nested_groups|nss_getgrent_skipmembers)\s+(?P<value>%s)' %
'|'.join(_boolean_options.keys()),
line, re.IGNORECASE)
if m: