diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-24 19:59:34 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-03-24 22:48:13 +0100 |
commit | b1b7648169d0f3b3c88dea3e6642422a29ad373c (patch) | |
tree | 21a74b6cbf580e71683ea810c897dd7e8b231a8e /pynslcd/cfg.py | |
parent | d6a6e8b436fc2b3aabc8a6edd62ad60bd70e0c4c (diff) |
Implement a nss_nested_groups configuration option
This option can be used in both nslcd and pynslcd to enable recursive group
member lookups. By default the functionality is disabled. This also updates
the documentation.
Diffstat (limited to 'pynslcd/cfg.py')
-rw-r--r-- | pynslcd/cfg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pynslcd/cfg.py b/pynslcd/cfg.py index 57a1be2..b03b8c7 100644 --- a/pynslcd/cfg.py +++ b/pynslcd/cfg.py @@ -85,6 +85,7 @@ tls_key = None pagesize = 0 nss_initgroups_ignoreusers = set() nss_min_uid = 0 +nss_nested_groups = 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 @@ -176,7 +177,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)\s+(?P<value>%s)' % + m = re.match('(?P<keyword>referrals|nss_nested_groups)\s+(?P<value>%s)' % '|'.join(_boolean_options.keys()), line, re.IGNORECASE) if m: |