server/sources/ldapuser.py
changeset 2633 bc9386c3b2c9
parent 1977 606923dff11b
child 2699 1025300249d2
--- a/server/sources/ldapuser.py	Sat Aug 01 16:20:08 2009 +0200
+++ b/server/sources/ldapuser.py	Sat Aug 01 16:21:52 2009 +0200
@@ -23,7 +23,7 @@
 
 from base64 import b64decode
 
-from logilab.common.textutils import get_csv
+from logilab.common.textutils import splitstrip
 from rql.nodes import Relation, VariableRef, Constant, Function
 
 import ldap
@@ -131,10 +131,10 @@
         self.host = source_config['host']
         self.user_base_dn = source_config['user-base-dn']
         self.user_base_scope = globals()[source_config['user-scope']]
-        self.user_classes = get_csv(source_config['user-classes'])
+        self.user_classes = splitstrip(source_config['user-classes'])
         self.user_login_attr = source_config['user-login-attr']
-        self.user_default_groups = get_csv(source_config['user-default-group'])
-        self.user_attrs = dict(v.split(':', 1) for v in get_csv(source_config['user-attrs-map']))
+        self.user_default_groups = splitstrip(source_config['user-default-group'])
+        self.user_attrs = dict(v.split(':', 1) for v in splitstrip(source_config['user-attrs-map']))
         self.user_rev_attrs = {'eid': 'dn'}
         for ldapattr, cwattr in self.user_attrs.items():
             self.user_rev_attrs[cwattr] = ldapattr