summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:11:22 +0000
committerArthur de Jong <arthur@arthurdejong.org>2013-01-14 22:11:22 +0000
commit4197ec3fa13ea9c3ad85ae29234b7566e9a61661 (patch)
treeb7fd0e375bf16840b4d18679d0f03b482a955a1b
parent5e0bb05ee9a1299cd1e5d60d3fc9b2f721ce8314 (diff)
fix parsing of scope option in pynslcd
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1916 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--pynslcd/cfg.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pynslcd/cfg.py b/pynslcd/cfg.py
index 33feca1..53ec29f 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 Arthur de Jong
+# Copyright (C) 2010, 2011, 2012, 2013 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
@@ -216,7 +216,7 @@ def read(filename):
line, re.IGNORECASE)
if m:
mod = maps[str(m.group('map')).lower()]
- mod.scope = _scope_options[m.group('keyword').lower()]
+ mod.scope = _scope_options[m.group('value').lower()]
continue
# map <MAP> <ATTRIBUTE> <ATTMAPPING>
m = re.match('map\s+(?P<map>%s)\s+(?P<attribute>\S+)\s+(?P<value>\S.*)' %