lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1916 - nss-pam-ldapd/pynslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1916 - nss-pam-ldapd/pynslcd



Author: arthur
Date: Mon Jan 14 23:11:22 2013
New Revision: 1916
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1916&view=revision

Log:
fix parsing of scope option

Modified:
   nss-pam-ldapd/pynslcd/cfg.py

Modified: nss-pam-ldapd/pynslcd/cfg.py
==============================================================================
--- nss-pam-ldapd/pynslcd/cfg.py        Mon Jan 14 22:31:01 2013        (r1915)
+++ nss-pam-ldapd/pynslcd/cfg.py        Mon Jan 14 23:11:22 2013        (r1916)
@@ -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 @@
                      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.*)' %
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/