From: Giovanni Gherdovich Date: Tue, 2 Nov 2010 11:01:36 +0000 (+0100) Subject: plus sign (+) in user login converted into underscore (_) to get the hrn X-Git-Tag: sfa-1.0-8~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=791c8efa0cd94dc38092bce0300825c35e758782;p=sfa.git plus sign (+) in user login converted into underscore (_) to get the hrn --- diff --git a/sfa/plc/sfa-import-plc.py b/sfa/plc/sfa-import-plc.py index 637109ae..c5ccbded 100755 --- a/sfa/plc/sfa-import-plc.py +++ b/sfa/plc/sfa-import-plc.py @@ -217,7 +217,7 @@ def main(): site = sites_dict[login_base] for person in persons: tmp_username = person['email'].split("@")[0] - alt_username = person['email'].split("@")[0].replace(".", "_") + alt_username = person['email'].split("@")[0].replace(".", "_").replace("+", "_") if username in [tmp_username, alt_username] and \ site['site_id'] in person['site_ids'] and \ person['person_id'] == record['pointer']: